From 2a60a0723257cfd6855233b9af27dc9735915435 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Fri, 22 Sep 2017 10:23:44 +0200 Subject: Keyring fixes * Avoid double free * track unlocked state * Ensure we bring up the login screen on startup and after saving the configuration. --- framework/src/keyring.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'framework/src/keyring.h') 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 @@ */ #include +#include namespace Kube { @@ -25,10 +26,13 @@ class Keyring : public QObject { Q_OBJECT public: Keyring(); + static Keyring *instance(); Q_INVOKABLE bool isUnlocked(const QByteArray &accountId); + void unlock(const QByteArray &accountId); private: Q_DISABLE_COPY(Keyring); + QSet mUnlocked; }; class AccountKeyring : public QObject { -- cgit v1.2.3