aboutsummaryrefslogtreecommitdiff
path: root/src/browser.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/browser.h')
-rw-r--r--src/browser.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/browser.h b/src/browser.h
new file mode 100644
index 0000000..c63d56f
--- /dev/null
+++ b/src/browser.h
@@ -0,0 +1,32 @@
+#ifndef BROWSER_H
+#define BROWSER_H
+
+#include <QObject>
+#include <QVector>
+#include <QSettings>
+
+class MainWindow;
+class Browser : public QObject
+{
+ Q_OBJECT
+
+public:
+ explicit Browser(QString configPath, QObject *parent = 0);
+ ~Browser();
+
+ QSettings* settings();
+
+ // what is windows() useful for?
+ QVector<MainWindow*> windows();
+ void addWindow(MainWindow* window);
+
+public slots:
+ void removeWindow(MainWindow* window);
+
+private:
+ QSettings *m_settings;
+ QVector<MainWindow*> m_windows;
+
+};
+
+#endif // BROWSER_H