-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathuserinfomodel.cpp
More file actions
193 lines (153 loc) · 3.16 KB
/
Copy pathuserinfomodel.cpp
File metadata and controls
193 lines (153 loc) · 3.16 KB
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
#include "userinfomodel.h"
UserInfoModel::UserInfoModel(QObject *parent)
: QObject(parent) {
}
QString UserInfoModel::username() const {
return m_userInfo.username;
}
QString UserInfoModel::token() const {
return m_userInfo.token;
}
int UserInfoModel::softcore_score() const {
return m_userInfo.softcore_score;
}
int UserInfoModel::hardcore_score() const {
return m_userInfo.hardcore_score;
}
QUrl UserInfoModel::pfp() const {
return m_userInfo.pfp;
}
bool UserInfoModel::hardcore() const {
return m_userInfo.hardcore;
}
QUrl UserInfoModel::link() const {
return m_userInfo.link;
}
int UserInfoModel::width() const {
return m_userInfo.width;
}
int UserInfoModel::height() const {
return m_userInfo.height;
}
bool UserInfoModel::savestates() const {
return m_userInfo.savestates;
}
bool UserInfoModel::cheats() const {
return m_userInfo.cheats;
}
bool UserInfoModel::patched() const {
return m_userInfo.patched;
}
bool UserInfoModel::autohardcore() const {
return m_userInfo.autohardcore;
}
bool UserInfoModel::compact() const {
return m_userInfo.compact;
}
bool UserInfoModel::ingamehooks() const
{
return m_userInfo.ingamehooks;
}
bool UserInfoModel::banner() const
{
return m_userInfo.banner;
}
bool UserInfoModel::icons() const
{
return m_userInfo.icons;
}
bool UserInfoModel::iconspopup() const
{
return m_userInfo.iconspopup;
}
QString UserInfoModel::theme() const
{
return m_userInfo.theme;
}
void UserInfoModel::username(const QString& u)
{
m_userInfo.username = u;
emit dataChanged();
}
void UserInfoModel::token(const QString& t)
{
m_userInfo.token = t;
emit dataChanged();
}
void UserInfoModel::softcore_score(const int& s)
{
m_userInfo.softcore_score = s;
emit dataChanged();
}
void UserInfoModel::hardcore_score(const int& hs)
{
m_userInfo.hardcore_score = hs;
emit dataChanged();
}
void UserInfoModel::pfp(const QUrl& p)
{
m_userInfo.pfp = p;
emit dataChanged();
}
void UserInfoModel::hardcore(const bool& h)
{
m_userInfo.hardcore = h;
emit dataChanged();
}
void UserInfoModel::link(const QUrl& l)
{
m_userInfo.link = l;
emit dataChanged();
}
void UserInfoModel::width(const int& w)
{
m_userInfo.width = w;
}
void UserInfoModel::height(const int& h)
{
m_userInfo.height = h;
}
void UserInfoModel::savestates(const bool& s)
{
m_userInfo.savestates = s;
}
void UserInfoModel::cheats(const bool& c)
{
m_userInfo.cheats = c;
}
void UserInfoModel::patched(const bool& p)
{
m_userInfo.patched = p;
}
void UserInfoModel::autohardcore(const bool& a)
{
m_userInfo.autohardcore = a;
emit dataChanged();
}
void UserInfoModel::compact(const bool& c)
{
m_userInfo.compact = c;
}
void UserInfoModel::ingamehooks(const bool& n)
{
m_userInfo.ingamehooks = n;
}
void UserInfoModel::banner(const bool& b)
{
m_userInfo.banner = b;
}
void UserInfoModel::icons(const bool& i)
{
m_userInfo.icons = i;
}
void UserInfoModel::iconspopup(const bool& ip)
{
m_userInfo.iconspopup = ip;
}
void UserInfoModel::theme(const QString& t)
{
m_userInfo.theme = t;
}
void UserInfoModel::clearUser() {
m_userInfo = UserInfo();
}