summaryrefslogtreecommitdiff
path: root/src/cookiejar.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/cookiejar.cpp')
-rw-r--r--src/cookiejar.cpp14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/cookiejar.cpp b/src/cookiejar.cpp
index 324fe827..e6409f3e 100644
--- a/src/cookiejar.cpp
+++ b/src/cookiejar.cpp
@@ -86,7 +86,6 @@ QList<QNetworkCookie> CookieJar::cookiesForUrl(const QUrl & url) const
}
-
bool CookieJar::setCookiesFromUrl(const QList<QNetworkCookie> & cookieList, const QUrl & url)
{
@@ -109,7 +108,20 @@ bool CookieJar::setCookiesFromUrl(const QList<QNetworkCookie> & cookieList, cons
return false;
}
+
void CookieJar::setWindowId(qlonglong id)
{
m_windowId=id;
}
+
+
+void CookieJar::clear()
+{
+ QDBusInterface kcookiejar("org.kde.kded", "/modules/kcookiejar", "org.kde.KCookieServer", QDBusConnection::sessionBus());
+ QDBusReply<void> reply = kcookiejar.call( "deleteAllCookies" );
+ if (!reply.isValid())
+ {
+ kWarning() << "Unable to delete all the cookies as requested.";
+ return;
+ }
+} \ No newline at end of file