[Pkg-owncloud-commits] [owncloud-client] 13/30: Add method clearCookieJar which wipes QNAMs cookies.
Sandro Knauß
hefee-guest at moszumanska.debian.org
Sat Mar 15 21:28:29 UTC 2014
This is an automated email from the git hooks/post-receive script.
hefee-guest pushed a commit to branch master
in repository owncloud-client.
commit 4240010046e3669a16bc6dca887330e069617bb5
Author: Klaas Freitag <freitag at owncloud.com>
Date: Mon Mar 3 16:36:30 2014 +0100
Add method clearCookieJar which wipes QNAMs cookies.
---
src/mirall/account.cpp | 5 +++++
src/mirall/account.h | 2 ++
2 files changed, 7 insertions(+)
diff --git a/src/mirall/account.cpp b/src/mirall/account.cpp
index 6a15773..5cbdc4d 100644
--- a/src/mirall/account.cpp
+++ b/src/mirall/account.cpp
@@ -183,6 +183,11 @@ QList<QNetworkCookie> Account::lastAuthCookies() const
return _am->cookieJar()->cookiesForUrl(_url);
}
+void Account::clearCookieJar()
+{
+ _am->setCookieJar(new QNetworkCookieJar);
+}
+
QNetworkReply *Account::headRequest(const QString &relPath)
{
return headRequest(concatUrlPath(url(), relPath));
diff --git a/src/mirall/account.h b/src/mirall/account.h
index 6d8df04..8773c85 100644
--- a/src/mirall/account.h
+++ b/src/mirall/account.h
@@ -144,6 +144,8 @@ public:
int state() const;
void setState(int state);
+ void clearCookieJar();
+
QuotaInfo *quotaInfo();
signals:
void stateChanged(int state);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git
More information about the Pkg-owncloud-commits
mailing list