summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/cookiejar.cpp8
-rw-r--r--src/cookiejar.h4
2 files changed, 7 insertions, 5 deletions
diff --git a/src/cookiejar.cpp b/src/cookiejar.cpp
index 5146191d..aed1afd2 100644
--- a/src/cookiejar.cpp
+++ b/src/cookiejar.cpp
@@ -51,9 +51,9 @@
CookieJar::CookieJar(QObject* parent)
: QNetworkCookieJar(parent)
- , m_windowId(10) //m_windowId is important else doesn't connect with KCookieServer
+ , m_windowId(10) // m_windowId is important else doesn't connect with KCookieServer (yeah!)
+ , m_kcookiejar(new QDBusInterface("org.kde.kded", "/modules/kcookiejar", "org.kde.KCookieServer"))
{
- m_kcookiejar = new QDBusInterface("org.kde.kded", "/modules/kcookiejar", "org.kde.KCookieServer");
}
@@ -98,7 +98,7 @@ bool CookieJar::setCookiesFromUrl(const QList<QNetworkCookie> & cookieList, cons
void CookieJar::setWindowId(qlonglong id)
{
- m_windowId=id;
+ m_windowId = id;
}
@@ -110,4 +110,4 @@ void CookieJar::clear()
kWarning() << "Unable to delete all the cookies as requested.";
return;
}
-} \ No newline at end of file
+}
diff --git a/src/cookiejar.h b/src/cookiejar.h
index 5504cf3c..f78a9662 100644
--- a/src/cookiejar.h
+++ b/src/cookiejar.h
@@ -30,11 +30,13 @@
// Qt Includes
#include <QtNetwork/QNetworkCookieJar>
-#include <QtDBus/QtDBus>
+
+#include <QtDBus/QDBusInterface>
// Forward Declarations
class QUrl;
+
class CookieJar : public QNetworkCookieJar
{
Q_OBJECT