summaryrefslogtreecommitdiff
path: root/src/sessionmanager.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/sessionmanager.h')
-rw-r--r--src/sessionmanager.h15
1 files changed, 13 insertions, 2 deletions
diff --git a/src/sessionmanager.h b/src/sessionmanager.h
index ae6caaa2..d0d7efde 100644
--- a/src/sessionmanager.h
+++ b/src/sessionmanager.h
@@ -42,7 +42,7 @@ class TabHistory;
/**
- * Session Management
+ * Session Management: Needs clean up :)
*/
class REKONQ_TESTS_EXPORT SessionManager : public QObject
{
@@ -52,21 +52,32 @@ public:
inline void setSessionManagementEnabled(bool on)
{
- m_safe = on;
+ m_isSessionEnabled = on;
}
QList<TabHistory> closedSites();
+ // This method restores session
+ // while turning back from Private mode
+ int restoreSavedSession();
+
public Q_SLOTS:
+ // This method restores session
+ // on restart when restore at startup is chosen
bool restoreSessionFromScratch();
private Q_SLOTS:
void saveSession();
+
+ // This method restores session
+ // after a crash
void restoreCrashedSession();
private:
QString m_sessionFilePath;
+
bool m_safe;
+ bool m_isSessionEnabled;
};