-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsettings.h
47 lines (34 loc) · 890 Bytes
/
settings.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
38
39
40
41
42
43
44
45
46
47
#ifndef SETTINGS_H
#define SETTINGS_H
#include <QObject>
#include "edam/UserStore.h"
#include "edam/UserStore_constants.h"
#include "edam/NoteStore.h"
#include "edam/NoteStore_constants.h"
#include "edam/NoteStore_types.h"
#include "db/databaseconstants.h"
#include "db/databasemanager.h"
using namespace evernote::edam;
class Settings : public QObject
{
Q_OBJECT
public:
static Settings* instance();
Settings(QObject *parent = 0);
~Settings();
signals:
public slots:
static void drop();
void setPassword(const QString& password);
QString getPassword();
void setUsername(const QString& username);
QString getUsername();
bool areCredentialsSaved();
void setAuthToken(const QString& token);
QString getAuthToken();
void setUser(User user);
User getUser();
private:
static Settings* m_instance;
};
#endif // SETTINGS_H