summaryrefslogtreecommitdiffstats
path: root/framework/src/keyring.h
diff options
context:
space:
mode:
Diffstat (limited to 'framework/src/keyring.h')
-rw-r--r--framework/src/keyring.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/framework/src/keyring.h b/framework/src/keyring.h
index ce4e137d..df25dbff 100644
--- a/framework/src/keyring.h
+++ b/framework/src/keyring.h
@@ -18,6 +18,7 @@
18*/ 18*/
19 19
20#include <QObject> 20#include <QObject>
21#include <QSet>
21 22
22namespace Kube { 23namespace Kube {
23 24
@@ -25,10 +26,13 @@ class Keyring : public QObject {
25 Q_OBJECT 26 Q_OBJECT
26public: 27public:
27 Keyring(); 28 Keyring();
29 static Keyring *instance();
28 Q_INVOKABLE bool isUnlocked(const QByteArray &accountId); 30 Q_INVOKABLE bool isUnlocked(const QByteArray &accountId);
31 void unlock(const QByteArray &accountId);
29 32
30private: 33private:
31 Q_DISABLE_COPY(Keyring); 34 Q_DISABLE_COPY(Keyring);
35 QSet<QByteArray> mUnlocked;
32}; 36};
33 37
34class AccountKeyring : public QObject { 38class AccountKeyring : public QObject {