WebGui::FcCookieJar Class Reference
#include <CookieJar.h>
Public Slots | |
void | loadFromDisk () |
void | reset () |
void | scheduleSaveToDisk () |
Public Member Functions | |
FcCookieJar (QObject *parent=0) | |
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 () |
Constructor & Destructor Documentation
◆ FcCookieJar()
FcCookieJar::FcCookieJar | ( | QObject * | parent = 0 | ) |
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 Base::FileInfo::filePath(), App::Application::getUserAppDataDir(), and loadFromDisk().
◆ ~FcCookieJar()
|
virtual |
Member Function Documentation
◆ loadFromDisk
|
slot |
Referenced by FcCookieJar().
◆ reset
|
slot |
References scheduleSaveToDisk().
◆ scheduleSaveToDisk
|
slot |
Referenced by reset(), and setCookiesFromUrl().
◆ setCookiesFromUrl()
|
virtual |
References scheduleSaveToDisk().
The documentation for this class was generated from the following files:
- src/Mod/Web/Gui/CookieJar.h
- src/Mod/Web/Gui/CookieJar.cpp