Changeset View
Changeset View
Standalone View
Standalone View
src/ruqolacore/rocketchataccount.cpp
Show First 20 Lines • Show All 1216 Lines • ▼ Show 20 Line(s) | 1216 | { | |||
---|---|---|---|---|---|
1217 | return settings()->userId(); | 1217 | return settings()->userId(); | ||
1218 | } | 1218 | } | ||
1219 | 1219 | | |||
1220 | QString RocketChatAccount::password() const | 1220 | QString RocketChatAccount::password() const | ||
1221 | { | 1221 | { | ||
1222 | return settings()->password(); | 1222 | return settings()->password(); | ||
1223 | } | 1223 | } | ||
1224 | 1224 | | |||
1225 | QString RocketChatAccount::twoFactorAuthenticationCode() const | ||||
1226 | { | ||||
1227 | return settings()->twoFactorAuthenticationCode(); | ||||
1228 | } | ||||
1229 | | ||||
1225 | void RocketChatAccount::setAuthToken(const QString &token) | 1230 | void RocketChatAccount::setAuthToken(const QString &token) | ||
1226 | { | 1231 | { | ||
1227 | settings()->setAuthToken(token); | 1232 | settings()->setAuthToken(token); | ||
1228 | } | 1233 | } | ||
1229 | 1234 | | |||
1230 | void RocketChatAccount::setPassword(const QString &password) | 1235 | void RocketChatAccount::setPassword(const QString &password) | ||
1231 | { | 1236 | { | ||
1232 | settings()->setPassword(password); | 1237 | settings()->setPassword(password); | ||
1233 | } | 1238 | } | ||
1234 | 1239 | | |||
1240 | void RocketChatAccount::setTwoFactorAuthenticationCode(const QString &twoFactorAuthenticationCode) | ||||
1241 | { | ||||
1242 | settings()->setTwoFactorAuthenticationCode(twoFactorAuthenticationCode); | ||||
1243 | } | ||||
1244 | | ||||
1235 | void RocketChatAccount::setUserName(const QString &username) | 1245 | void RocketChatAccount::setUserName(const QString &username) | ||
1236 | { | 1246 | { | ||
1237 | settings()->setUserName(username); | 1247 | settings()->setUserName(username); | ||
1238 | } | 1248 | } | ||
1239 | 1249 | | |||
1240 | void RocketChatAccount::setUserID(const QString &userID) | 1250 | void RocketChatAccount::setUserID(const QString &userID) | ||
1241 | { | 1251 | { | ||
1242 | settings()->setUserId(userID); | 1252 | settings()->setUserId(userID); | ||
▲ Show 20 Lines • Show All 441 Lines • Show Last 20 Lines |