Example #1
0
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();
}
Example #2
0
TestBrowserCookieJar::~TestBrowserCookieJar()
{
    if (m_storageEnabled) {
        extractRawCookies();
        saveToDisk();
    }
}
Example #3
0
SalorCookieJar::~SalorCookieJar()
{
    qDebug() << "~SalorCookieJar(): destructing";
    if (!m_readonlyMode) {
        extractRawCookies();
        saveToDisk();
    }
}
Example #4
0
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;
}