FacebookLoginBrowser to use cookies, re-writing NetworkCookieJar
[situare] / src / network / networkcookiejar.h
1 /*
2     Situare - A location system for Facebook
3     Copyright (C) 2010  Ixonos Plc. Authors:
4
5         Henri Lampela - henri.lampela@ixonos.com
6         Sami Rämö - sami.ramo@ixonos.com
7
8     Situare is free software; you can redistribute it and/or
9     modify it under the terms of the GNU General Public License
10     version 2 as published by the Free Software Foundation.
11
12     Situare is distributed in the hope that it will be useful,
13     but WITHOUT ANY WARRANTY; without even the implied warranty of
14     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15     GNU General Public License for more details.
16
17     You should have received a copy of the GNU General Public License
18     along with Situare; if not, write to the Free Software
19     Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301,
20     USA.
21 */
22
23 #ifndef NETWORKCOOKIEJAR_H
24 #define NETWORKCOOKIEJAR_H
25
26 #include <QNetworkCookieJar>
27
28 /**
29 * @brief Sub-class of QNetworkCookieJar, needed for cookie saving
30 *
31 * @author Henri Lampela
32 * @author Sami Rämö - sami.ramo (at) ixonos.com
33 */
34 class NetworkCookieJar : public QNetworkCookieJar
35 {
36     Q_OBJECT
37
38 public:
39     /**
40     * @brief Constructor
41     *
42     * @param parent Instance of parent
43     */
44     explicit NetworkCookieJar(QObject *parent = 0);
45
46     ~NetworkCookieJar();
47
48 /*******************************************************************************
49  * MEMBER FUNCTIONS AND SLOTS
50  ******************************************************************************/
51 private:
52     void loadCookies();
53
54     void saveCookies();
55 };
56
57 #endif // NETWORKCOOKIEJAR_H