2 Situare - A location system for Facebook
3 Copyright (C) 2010 Ixonos Plc. Authors:
5 Henri Lampela - henri.lampela@ixonos.com
7 Situare is free software; you can redistribute it and/or
8 modify it under the terms of the GNU General Public License
9 version 2 as published by the Free Software Foundation.
11 Situare is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with Situare; if not, write to the Free Software
18 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
22 #ifndef NETWORKCOOKIEJAR_H
23 #define NETWORKCOOKIEJAR_H
25 #include <QNetworkCookieJar>
28 * @brief Sub-class of QNetworkCookieJar, needed for cookie saving
30 * @author Henri Lampela
32 class NetworkCookieJar : public QNetworkCookieJar
41 * @param parent Instance of parent
43 explicit NetworkCookieJar(QObject *parent = 0);
45 /*******************************************************************************
46 * BASE CLASS INHERITED AND REIMPLEMENTED MEMBER FUNCTIONS
47 ******************************************************************************/
50 * @brief Sets all network cookies
52 * @param cookieList Network cookie list
54 void setAllCookies ( const QList<QNetworkCookie> & cookieList );
57 * @brief Gets all networks cookies
59 * @return QList<QNetworkCookie> Network cookie list
61 QList<QNetworkCookie> allCookies() const;
64 * @brief Sets network cookies from url
66 * @param cookieList Network cookie list
68 * @return bool Return value
70 bool setCookiesFromUrl(const QList<QNetworkCookie> &cookieList, const QUrl &url);
73 * @brief Empty implementation
76 * @return QList<QNetworkCookie> Network cookie list
78 QList<QNetworkCookie> cookiesForUrl(const QUrl & url) const;
80 /*******************************************************************************
82 ******************************************************************************/
86 QList<QNetworkCookie> m_cookieList; ///< Placeholder for network cookies
90 #endif // NETWORKCOOKIEJAR_H