void TestBrowserCookieJar::scheduleSaveToDisk() { // We extract the raw cookies here because the user may // enable/disable/clear cookies while the timer is running. extractRawCookies(); m_timer.start(); }
TestBrowserCookieJar::~TestBrowserCookieJar() { if (m_storageEnabled) { extractRawCookies(); saveToDisk(); } }
SalorCookieJar::~SalorCookieJar() { qDebug() << "~SalorCookieJar(): destructing"; if (!m_readonlyMode) { extractRawCookies(); saveToDisk(); } }
bool SalorCookieJar::setCookiesFromUrl(const QList<QNetworkCookie>& cookieList, const QUrl& url) { qDebug() << "SalorCookieJar::setCookiesFromUrl()"; bool status = QNetworkCookieJar::setCookiesFromUrl(cookieList, url); if (status && !m_readonlyMode) { extractRawCookies(); saveToDisk(); } return status; }