-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsettings.h
More file actions
41 lines (34 loc) · 822 Bytes
/
settings.h
File metadata and controls
41 lines (34 loc) · 822 Bytes
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
38
39
40
41
#ifndef SETTINGS_H
#define SETTINGS_H
#include <QObject>
#include <QString>
#include <QApplication>
#include <QDesktopServices>
#include <QFile>
#include <QDir>
#include <QSettings>
#include <QDebug>
class Settings : public QObject
{
Q_OBJECT
public:
static Settings *instance();
static void destroy();
void setUid(const QString &uid);
void setLastUid(const QVariant &value);
void saveProfile(const QString &key, const QVariant &value);
QVariant getLastUid();
QVariant loadProfile(const QString &key, const QVariant &defaultValue);
QString homeAppDirectory();
QString homeDirectory();
QStringList profilesIds();
private:
Settings();
static Settings *aInstance;
QString home;
QString homeApp;
QString id;
signals:
public slots:
};
#endif // SETTINGS_H