From 120a5f7c6d31a3bc5acdb54b19326516f8399767 Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Wed, 11 Jan 2017 10:18:08 +0100 Subject: Initial commit --- src/browser.h | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 src/browser.h (limited to 'src/browser.h') 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 +#include +#include + +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 windows(); + void addWindow(MainWindow* window); + +public slots: + void removeWindow(MainWindow* window); + +private: + QSettings *m_settings; + QVector m_windows; + +}; + +#endif // BROWSER_H -- cgit v1.2.1