-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.cpp
48 lines (38 loc) · 1.16 KB
/
settings.cpp
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
48
#include "settings.h"
Settings::Settings(QObject *parent)
: QObject(parent)
{
productName = QString("meemblr");
configName = QString("config");
sets = new QSettings(productName, configName, this);
}
void Settings::setUsername(QString username) {
sets->setValue("username", username);
}
QVariant Settings::getUsername() {
return sets->value("username","").toString();
}
void Settings::setThemeInverted(QVariant inverted) {
sets->setValue("themeInverted", inverted);
}
QVariant Settings::getThemeInverted() {
return sets->value("themeInverted", false);
}
void Settings::setAccessToken(QString token) {
sets->setValue("token", token);
}
QString Settings::getAccessToken() {
return sets->value("token", "").toString();
}
void Settings::setAccessTokenSecret(QString tokenSecret) {
sets->setValue("tokenSecret", tokenSecret);
}
QString Settings::getAccessTokenSecret() {
return sets->value("tokenSecret", "").toString();
}
QString Settings::getConsumerKey() {
return "KhJM28EMcP1iEeUomSnFbpwI1YmzPVEYxh1xl07Rlr5AQfbKEj";
}
QString Settings::getConsumerSecret() {
return "ouPTiEiAU7mUXbkRlDZkD3FlXEAOREWyffmtVuo5bQSanf7UFb";
}