diff options
author | Tobias Fella <fella@posteo.de> | 2022-05-29 14:40:00 +0200 |
---|---|---|
committer | Tobias Fella <fella@posteo.de> | 2022-05-29 14:40:00 +0200 |
commit | 283f95e429917bd0c7fb5982ceac1602eb2af0b9 (patch) | |
tree | 70ddb589bed5a8711b25171031d156112fe6e2d3 /lib/accountregistry.h | |
parent | afcad0615b26421e60b234dc8488b6ea1150d416 (diff) | |
download | libquotient-283f95e429917bd0c7fb5982ceac1602eb2af0b9.tar.gz libquotient-283f95e429917bd0c7fb5982ceac1602eb2af0b9.zip |
Error handling
Diffstat (limited to 'lib/accountregistry.h')
-rw-r--r-- | lib/accountregistry.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/accountregistry.h b/lib/accountregistry.h index ab337303..99827b73 100644 --- a/lib/accountregistry.h +++ b/lib/accountregistry.h @@ -9,6 +9,12 @@ #include <QtCore/QAbstractListModel> +#if QT_VERSION_MAJOR >= 6 +# include <qt6keychain/keychain.h> +#else +# include <qt5keychain/keychain.h> +#endif + namespace QKeychain { class ReadPasswordJob; } @@ -69,6 +75,9 @@ public: Q_SIGNALS: void accountCountChanged(); void accountsLoadingChanged(); + + void keychainError(QKeychain::Error error); + void loginError(Connection* connection, QString message, QString details); private: QKeychain::ReadPasswordJob* loadAccessTokenFromKeychain(const QString &userId); QStringList m_accountsLoading; |