summary refs log tree commit diff
path: root/src/Cache_p.h
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2020-12-16 22:10:09 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2020-12-16 22:10:09 +0100
commit7b46aa2a6e4fdb71632128a94b6645613631d8d4 (patch)
treedb6a8ee2e6d741399614aa98addbd1da0dea9371 /src/Cache_p.h
parentFix black cat emoji (diff)
downloadnheko-7b46aa2a6e4fdb71632128a94b6645613631d8d4.tar.xz
Store secrets in keychain
Diffstat (limited to 'src/Cache_p.h')
-rw-r--r--src/Cache_p.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Cache_p.h b/src/Cache_p.h
index fab2d964..059c1461 100644
--- a/src/Cache_p.h
+++ b/src/Cache_p.h
@@ -269,6 +269,10 @@ public:
         void saveOlmAccount(const std::string &pickled);
         std::string restoreOlmAccount();
 
+        void storeSecret(const std::string &name, const std::string &secret);
+        void deleteSecret(const std::string &name);
+        std::optional<std::string> secret(const std::string &name);
+
 signals:
         void newReadReceipts(const QString &room_id, const std::vector<QString> &event_ids);
         void roomReadStatus(const std::map<QString, bool> &status);
@@ -276,6 +280,7 @@ signals:
         void userKeysUpdate(const std::string &sync_token,
                             const mtx::responses::QueryKeys &keyQuery);
         void verificationStatusChanged(const std::string &userid);
+        void secretChanged(const std::string name);
 
 private:
         //! Save an invited room.