From 7c981aa978bea7551aec99bc3c68a23cd6c8df00 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Fri, 22 Oct 2010 00:04:47 +0200 Subject: This commit implements the new private browsign mode for rekonq: - it implements a new KAaction in the Application class to trace changes on - stops session management and save it, restoring last visited sites on restoring mormal mode - implements necessary changes to iconmanager, urlbar & application Please, note that the private browsing mode will definitely work just on KDE SC 4.6, cause of the needed changes in kdewebkit to eg handle cookies and so on.. . Hope you like it :) --- src/application.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'src/application.h') diff --git a/src/application.h b/src/application.h index 8afb956f..b30e337c 100644 --- a/src/application.h +++ b/src/application.h @@ -50,6 +50,9 @@ class MainWindow; class OpenSearchManager; class SessionManager; +class KAction; + + namespace ThreadWeaver {class Job;} @@ -107,6 +110,8 @@ public: void addDownload(const QString &srcUrl, const QString &destUrl); DownloadList downloads(); bool clearDownloadsHistory(); + + KAction *privateBrowsingAction() { return _privateBrowsingAction; }; public slots: /** @@ -124,7 +129,6 @@ public slots: void removeMainWindow(MainWindow *window); private slots: - /** * Any actions that can be delayed until the window is visible */ @@ -134,6 +138,9 @@ private slots: void updateConfiguration(); + // the general place to set private browsing + void setPrivateBrowsingMode(bool); + private: static QWeakPointer s_historyManager; static QWeakPointer s_bookmarkProvider; @@ -143,6 +150,8 @@ private: static QWeakPointer s_iconManager; MainWindowList m_mainWindows; + + KAction *_privateBrowsingAction; }; #endif // APPLICATION_H -- cgit v1.2.1