diff options
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()) |