summaryrefslogtreecommitdiff
path: root/src/mobile/sessionmanager/sessionmanager.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mobile/sessionmanager/sessionmanager.h')
-rw-r--r--src/mobile/sessionmanager/sessionmanager.h43
1 files changed, 43 insertions, 0 deletions
diff --git a/src/mobile/sessionmanager/sessionmanager.h b/src/mobile/sessionmanager/sessionmanager.h
new file mode 100644
index 0000000..b85486e
--- /dev/null
+++ b/src/mobile/sessionmanager/sessionmanager.h
@@ -0,0 +1,43 @@
+/*********
+*
+* In the name of the Father, and of the Son, and of the Holy Spirit.
+*
+* This file is part of BibleTime's source code, http://www.bibletime.info/.
+*
+* Copyright 1999-2016 by the BibleTime developers.
+* The BibleTime source code is licensed under the GNU General Public License
+* version 2.0.
+*
+**********/
+
+#pragma once
+
+#include <QObject>
+#include <QString>
+#include <QStringList>
+
+class QQuickItem;
+
+namespace btm {
+
+class SessionManager : public QObject {
+ Q_OBJECT
+
+public:
+ SessionManager(QObject* parent = nullptr);
+ void loadDefaultSession();
+ void saveDefaultSession();
+
+private:
+ int getColorTheme();
+ int getWindowArrangementMode();
+ int getWindowCount();
+ void loadWindow(const QStringList& moduleNames, const QString& key);
+ void loadWindows();
+ void newWindow(const QString& category, const QString& moduleName, const QString& key);
+ void saveWindowStateToConfig(int windowIndex);
+
+ QQuickItem* m_windowMgr;
+};
+
+}