diff options
author | Alexey Andreyev <aa13q@ya.ru> | 2019-06-22 19:57:18 +0300 |
---|---|---|
committer | Alexey Andreyev <aa13q@ya.ru> | 2019-07-04 11:21:06 +0300 |
commit | 69ba71cca36b4a90328d169c845195f39c041a3a (patch) | |
tree | dfcb78bc916b03e13a54c4f8cd707e3324cb2894 /lib/settings.h | |
parent | 46a7350086e42ea3960fe54ef5c68b2207527899 (diff) | |
download | libquotient-69ba71cca36b4a90328d169c845195f39c041a3a.tar.gz libquotient-69ba71cca36b4a90328d169c845195f39c041a3a.zip |
Add EncryptionManager class. Add AccountSettings::encryptionAccountPickle logic.
Diffstat (limited to 'lib/settings.h')
-rw-r--r-- | lib/settings.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/settings.h b/lib/settings.h index 759bda35..61e5232a 100644 --- a/lib/settings.h +++ b/lib/settings.h @@ -131,6 +131,7 @@ void classname::setter(type newValue) \ QMC_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: template <typename... ArgTs> explicit AccountSettings(const QString& accountId, ArgTs... qsettingsArgs) @@ -148,5 +149,9 @@ void classname::setter(type newValue) \ * see QMatrixClient/Quaternion#181 */ void setAccessToken(const QString& accessToken); Q_INVOKABLE void clearAccessToken(); + + QByteArray encryptionAccountPickle(); + void setEncryptionAccountPickle(const QByteArray& encryptionAccountPickle); + Q_INVOKABLE void clearEncryptionAccountPickle(); }; } // namespace QMatrixClient |