diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2009-09-10 21:59:09 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2009-09-10 21:59:09 +0200 |
commit | cfbfe4ba48c747772e86018df41f6970fc007b11 (patch) | |
tree | 6bafe57c475a724866afa0b807b22508f3be9d6f /src/application.h | |
parent | Webkit -> WebKit (diff) | |
download | rekonq-cfbfe4ba48c747772e86018df41f6970fc007b11.tar.xz |
Session Management (restore on crash)
This is HEAVILY based on code from Lionel and Yoram branches.
But this code behaves differently: it restores rekonq tabs (just) on crash.
Thanks to Lionel suggestions, it seems "better" than my initial idea :)
It is quite extensible. We need just to fix it better as possible and then
manage its behaviour in newInstance code.. ;)
Diffstat (limited to 'src/application.h')
-rw-r--r-- | src/application.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/application.h b/src/application.h index 60aec259..61d93b87 100644 --- a/src/application.h +++ b/src/application.h @@ -49,6 +49,7 @@ class CookieJar; class HistoryManager; class MainWindow; class NetworkAccessManager; +class SessionManager; typedef QList< QPointer<MainWindow> > MainWindowList; @@ -99,14 +100,16 @@ public: static Application *instance(); MainWindow *mainWindow(); - + MainWindowList mainWindowList(); + static KIcon icon(const KUrl &url); static HistoryManager *historyManager(); static CookieJar *cookieJar(); static NetworkAccessManager *networkAccessManager(); static BookmarkProvider *bookmarkProvider(); - + static SessionManager *sessionManager(); + public slots: /** * Save application's configuration @@ -138,7 +141,8 @@ private: static QPointer<HistoryManager> s_historyManager; static QPointer<NetworkAccessManager> s_networkAccessManager; static QPointer<BookmarkProvider> s_bookmarkProvider; - + static QPointer<SessionManager> s_sessionManager; + MainWindowList m_mainWindows; }; |