•All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Properties Friends Modules Pages
#include <CookieJar.h>
Public Slots | |
void | loadFromDisk () |
void | reset () |
void | scheduleSaveToDisk () |
Public Member Functions | |
FcCookieJar (QObject *parent=nullptr) | |
The default cookiejar of qt does not implement saving and restoring of cookies to disk. More... | |
virtual bool | setCookiesFromUrl (const QList< QNetworkCookie > &, const QUrl &) |
virtual | ~FcCookieJar () |
FcCookieJar::FcCookieJar | ( | QObject * | parent = nullptr | ) |
The default cookiejar of qt does not implement saving and restoring of cookies to disk.
So we extend it here, and make it save and restore cookies to a simple text file saved in the FreeCAD user folder. adapted from https://github.com/adobe/webkit/blob/master/Tools/QtTestBrowser
References draftgeoutils.intersections::connect(), Base::FileInfo::filePath(), App::Application::getUserAppDataDir(), and loadFromDisk().
|
virtual |
|
slot |
Referenced by FcCookieJar().
|
slot |
References scheduleSaveToDisk().
Referenced by draftguitools.gui_trackers.gridTracker::set().
|
slot |
Referenced by reset(), and setCookiesFromUrl().
|
virtual |
References scheduleSaveToDisk().