summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-11-11 02:14:26 +0100
committerAndrea Diamantini <adjam7@gmail.com>2009-11-13 02:50:36 +0100
commit04a0850cb6f7750859a10ea3fe3c7a48e94728dc (patch)
tree9cba4c0b947e1b6b155f57ea2a80b56e547f080c /src/mainwindow.cpp
parentFinally remembered to fix urlbar (diff)
downloadrekonq-04a0850cb6f7750859a10ea3fe3c7a48e94728dc.tar.xz
Moving to kdewebkit.
First step
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 7a9e3ad6..43031446 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -37,8 +37,6 @@
#include "application.h"
#include "settings.h"
#include "history.h"
-#include "cookiejar.h"
-#include "networkaccessmanager.h"
#include "bookmarks.h"
#include "webview.h"
#include "mainview.h"
@@ -89,6 +87,9 @@
#include <QtGui/QPrintPreviewDialog>
#include <QtGui/QFontMetrics>
+#include <QtDBus/QDBusInterface>
+#include <QtDBus/QDBusReply>
+
#include <QtWebKit/QWebHistory>
@@ -1033,12 +1034,13 @@ void MainWindow::clearPrivateData()
if(clearWidget.clearCookies->isChecked())
{
- Application::cookieJar()->clear();
+ QDBusInterface kcookiejar("org.kde.kded", "/modules/kcookiejar", "org.kde.KCookieServer");
+ QDBusReply<void> reply = kcookiejar.call( "deleteAllCookies" );
}
if(clearWidget.clearCachedPages->isChecked())
{
- Application::networkAccessManager()->resetDiskCache();
+ // TODO implement me!
}
if(clearWidget.clearWebIcons->isChecked())