Create new Account Switcher

This commit is contained in:
Tobias Fella
2022-11-13 15:54:42 +00:00
parent cfe3825d63
commit 90cbe37a92
5 changed files with 220 additions and 14 deletions

View File

@@ -41,6 +41,7 @@ class Controller : public QObject
Q_PROPERTY(bool hasWindowSystem READ hasWindowSystem CONSTANT)
Q_PROPERTY(bool isOnline READ isOnline NOTIFY isOnlineChanged)
Q_PROPERTY(bool encryptionSupported READ encryptionSupported CONSTANT)
Q_PROPERTY(int activeConnectionIndex READ activeConnectionIndex CONSTANT)
public:
static Controller &instance();
@@ -73,6 +74,8 @@ public:
bool saveAccessTokenToFile(const Quotient::AccountSettings &account, const QByteArray &accessToken);
bool saveAccessTokenToKeyChain(const Quotient::AccountSettings &account, const QByteArray &accessToken);
int activeConnectionIndex() const;
enum PasswordStatus {
Success,
Wrong,