diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2009-11-11 02:14:26 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2009-11-13 02:50:36 +0100 |
commit | 04a0850cb6f7750859a10ea3fe3c7a48e94728dc (patch) | |
tree | 9cba4c0b947e1b6b155f57ea2a80b56e547f080c /src/mainwindow.cpp | |
parent | Finally remembered to fix urlbar (diff) | |
download | rekonq-04a0850cb6f7750859a10ea3fe3c7a48e94728dc.tar.xz |
Moving to kdewebkit.
First step
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r-- | src/mainwindow.cpp | 10 |
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()) |