summaryrefslogtreecommitdiff
path: root/src/cookiejar.h
blob: d98d5af903c309defbc00cd928923d634af5655f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29


#ifndef RECOOKIEJAR_H
#define RECOOKIEJAR_H


// Qt Includes
#include <QtNetwork/QNetworkCookieJar>

// Forward Declarations
class QUrl;

class CookieJar : public QNetworkCookieJar
{
public:
    CookieJar(QObject* parent = 0);
    virtual ~CookieJar();

    virtual QList<QNetworkCookie> cookiesForUrl(const QUrl & url) const;
    
    virtual bool setCookiesFromUrl(const QList<QNetworkCookie> & cookieList, const QUrl & url);
    
    void setWindowId(qlonglong id);
    
private:
    qlonglong m_windowId;
};

#endif // RECOOKIEJAR_H