diff options
Diffstat (limited to 'framework/src/keyring.h')
-rw-r--r-- | framework/src/keyring.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/framework/src/keyring.h b/framework/src/keyring.h index ee9c3577..ce4e137d 100644 --- a/framework/src/keyring.h +++ b/framework/src/keyring.h | |||
@@ -24,12 +24,22 @@ namespace Kube { | |||
24 | class Keyring : public QObject { | 24 | class Keyring : public QObject { |
25 | Q_OBJECT | 25 | Q_OBJECT |
26 | public: | 26 | public: |
27 | Keyring(const QByteArray &accountId, QObject *parent = nullptr); | 27 | Keyring(); |
28 | Q_INVOKABLE bool isUnlocked(const QByteArray &accountId); | ||
29 | |||
30 | private: | ||
31 | Q_DISABLE_COPY(Keyring); | ||
32 | }; | ||
33 | |||
34 | class AccountKeyring : public QObject { | ||
35 | Q_OBJECT | ||
36 | public: | ||
37 | AccountKeyring(const QByteArray &accountId, QObject *parent = nullptr); | ||
28 | void storePassword(const QByteArray &resourceId, const QString &password); | 38 | void storePassword(const QByteArray &resourceId, const QString &password); |
29 | void unlock(); | 39 | void unlock(); |
30 | 40 | ||
31 | private: | 41 | private: |
32 | Q_DISABLE_COPY(Keyring); | 42 | Q_DISABLE_COPY(AccountKeyring); |
33 | 43 | ||
34 | QByteArray mAccountIdentifier; | 44 | QByteArray mAccountIdentifier; |
35 | }; | 45 | }; |