diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2009-08-05 17:50:56 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2009-08-05 17:50:56 +0200 |
commit | 3c9d266d05d3721d2d8c57143c62f62b21fd7bbe (patch) | |
tree | 033c075e8687e441adf30656c3e7f577b3c89026 /src/cookiejar.cpp | |
parent | Fixed Setting Interface (diff) | |
download | rekonq-3c9d266d05d3721d2d8c57143c62f62b21fd7bbe.tar.xz |
Removing windowID settings, unuseful (for me) in a
ONE window application :)
Diffstat (limited to 'src/cookiejar.cpp')
-rw-r--r-- | src/cookiejar.cpp | 26 |
1 files changed, 11 insertions, 15 deletions
diff --git a/src/cookiejar.cpp b/src/cookiejar.cpp index df3140f5..6aceaf6a 100644 --- a/src/cookiejar.cpp +++ b/src/cookiejar.cpp @@ -2,9 +2,8 @@ * * This file is a part of the rekonq project * -* Copyright (C) 2007-2008 Trolltech ASA. All rights reserved -* Copyright (C) 2008-2009 by Andrea Diamantini <adjam7 at gmail dot com> -* Copyright (C) 2009 by Domrachev Alexandr <alexandr.domrachev@gmail.com> +* Copyright (C) 2009 by Andrea Diamantini <adjam7 at gmail dot com> +* Copyright (C) 2009 by Lionel Chauvin <megabigbug@yahoo.fr> * * * This program is free software; you can redistribute it and/or @@ -46,15 +45,12 @@ #include <QtCore/QDateTime> #include <QtCore/QString> -#include <QtGui/QSortFilterProxyModel> -#include <QtGui/QCompleter> - -#include <QtDBus> +#include <QtDBus/QDBusInterface> +#include <QtDBus/QDBusReply> CookieJar::CookieJar(QObject* parent) - : QNetworkCookieJar(parent) - , m_windowId(-1) + : QNetworkCookieJar(parent) { } @@ -71,7 +67,7 @@ QList<QNetworkCookie> CookieJar::cookiesForUrl(const QUrl & url) const if ( true ) // FIXME WebKitSettings::self()->isCookieJarEnabled()) { QDBusInterface kcookiejar("org.kde.kded", "/modules/kcookiejar", "org.kde.KCookieServer"); - QDBusReply<QString> reply = kcookiejar.call("findCookies", url.toString(), m_windowId); + QDBusReply<QString> reply = kcookiejar.call("findCookies", url.toString() ); // , m_windowId); if (reply.isValid()) { @@ -100,7 +96,7 @@ bool CookieJar::setCookiesFromUrl(const QList<QNetworkCookie> & cookieList, cons { cookieHeader = "Set-Cookie: "; cookieHeader += cookie.toRawForm(); - kcookiejar.call("addCookies", url.toString(), cookieHeader, m_windowId); + kcookiejar.call("addCookies", url.toString(), cookieHeader); //, m_windowId); //kDebug() << "url: " << url.host() << ", cookie: " << cookieHeader; } @@ -111,7 +107,7 @@ bool CookieJar::setCookiesFromUrl(const QList<QNetworkCookie> & cookieList, cons } -void CookieJar::setWindowId(qlonglong id) -{ - m_windowId = id; -} +// void CookieJar::setWindowId(qlonglong id) +// { +// m_windowId = id; +// } |