aboutsummaryrefslogtreecommitdiff
path: root/lib/settings.h
diff options
context:
space:
mode:
authorAlexey Rusakov <Kitsune-Ral@users.sf.net>2021-08-22 20:22:36 +0200
committerAlexey Rusakov <Kitsune-Ral@users.sf.net>2021-08-22 20:22:36 +0200
commit395f3758e810fed6cd276a356fd5f0e955c5477e (patch)
tree54beaa54138e3bcd62de7eee4ca928fcfcb85a98 /lib/settings.h
parent776feaa5eeaffe78773aec9a4431fef147fa95c4 (diff)
downloadlibquotient-395f3758e810fed6cd276a356fd5f0e955c5477e.tar.gz
libquotient-395f3758e810fed6cd276a356fd5f0e955c5477e.zip
Settings: no more setToken() and accessToken(); deprecate clearAccessToken()
Access tokens should be stored with Qt Keychain that's about to come; and these methods were deprecated since before 0.5.
Diffstat (limited to 'lib/settings.h')
-rw-r--r--lib/settings.h8
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/settings.h b/lib/settings.h
index 84c54802..3f4dc123 100644
--- a/lib/settings.h
+++ b/lib/settings.h
@@ -131,8 +131,6 @@ class AccountSettings : public SettingsGroup {
QTNT_DECLARE_SETTING(QString, deviceId, setDeviceId)
QTNT_DECLARE_SETTING(QString, deviceName, setDeviceName)
QTNT_DECLARE_SETTING(bool, keepLoggedIn, setKeepLoggedIn)
- /** \deprecated \sa setAccessToken */
- Q_PROPERTY(QString accessToken READ accessToken WRITE setAccessToken)
Q_PROPERTY(QByteArray encryptionAccountPickle READ encryptionAccountPickle
WRITE setEncryptionAccountPickle)
public:
@@ -147,11 +145,7 @@ public:
QUrl homeserver() const;
void setHomeserver(const QUrl& url);
- /** \deprecated \sa setToken */
- QString accessToken() const;
- /** \deprecated Storing accessToken in QSettings is unsafe,
- * see quotient-im/Quaternion#181 */
- void setAccessToken(const QString& accessToken);
+ Q_DECL_DEPRECATED_X("Access tokens are not stored in QSettings any more")
Q_INVOKABLE void clearAccessToken();
QByteArray encryptionAccountPickle();