aboutsummaryrefslogtreecommitdiff
path: root/src/browser.h
blob: c63d56f850a978ac54a182252c93a8f6ccf969f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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