diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2020-12-16 22:10:09 +0100 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2020-12-16 22:10:09 +0100 |
commit | 7b46aa2a6e4fdb71632128a94b6645613631d8d4 (patch) | |
tree | db6a8ee2e6d741399614aa98addbd1da0dea9371 /src/Cache_p.h | |
parent | Fix black cat emoji (diff) | |
download | nheko-7b46aa2a6e4fdb71632128a94b6645613631d8d4.tar.xz |
Store secrets in keychain
Diffstat (limited to 'src/Cache_p.h')
-rw-r--r-- | src/Cache_p.h | 5 |
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. |