forked from chinazhangchao/BestCommander
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setting.h
37 lines (29 loc) · 789 Bytes
/
setting.h
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
33
34
35
36
37
#ifndef SETTING_H
#define SETTING_H
#include <QObject>
#include <QSettings>
#include "singleton.hpp"
class Setting : public QObject, public Singleton<Setting>
{
Q_OBJECT
protected:
explicit Setting(QObject *parent = 0);
friend class Singleton<Setting>;
public:
QList<QString> getFavorites() const;
void removeFavorites(const QString &path);
void addFavorites(const QString &path);
QList<QString> getLeftTabs() const;
QList<QString> getRightTabs() const;
signals:
public slots:
private:
QSettings setting;
QHash<QString, QString> favoritesHash;
QHash<QString, QString> rightTabsHash;
QHash<QString, QString> leftTabsHash;
QList<QString> favorites;
QList<QString> rightTabs;
QList<QString> leftTabs;
};
#endif // SETTING_H