From 34050a0c87ff606b3ee56fe83dfdab0afde67a7d Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Sat, 30 Mar 2013 00:33:23 +0100 Subject: Managing sessions, first bits This code is based on the patch from mayank jha about session saving. Will be used as "first part" of the session saving support in rekonq. CCMAIL: mjnovice@gmail.com --- src/sessionmanager.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/sessionmanager.h') diff --git a/src/sessionmanager.h b/src/sessionmanager.h index 6d6bef26..22665dc4 100644 --- a/src/sessionmanager.h +++ b/src/sessionmanager.h @@ -77,11 +77,9 @@ public Q_SLOTS: // This method restores session // on restart when restore at startup is chosen bool restoreSessionFromScratch(); - // This method restores (eventually) the tabs present // if there are NO pinned tabs to restore, it returns FALSE... bool restoreJustThePinnedTabs(); - void saveSession(); private Q_SLOTS: @@ -89,9 +87,11 @@ private Q_SLOTS: // after a crash void restoreCrashedSession(); + bool saveYourSession(); + bool restoreYourSession(); + private: QString m_sessionFilePath; - bool m_safe; bool m_isSessionEnabled; -- cgit v1.2.1