diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-04-02 14:08:53 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-04-02 14:08:53 +0900 |
commit | e003ffd274127a9f734f18c736d28be936a0dc89 (patch) | |
tree | 9a8764fecb1507f514e3d9ef982482f579e32000 /lib/connection.h | |
parent | 9b856f28f2745a6d1f0425b8e7ac9c91119f3f36 (diff) | |
download | libquotient-e003ffd274127a9f734f18c736d28be936a0dc89.tar.gz libquotient-e003ffd274127a9f734f18c736d28be936a0dc89.zip |
Room/Connection: accountData()/accountDataChanged()
Generic account data are at least readable now (you can get, say,
pushers from the library without it even being aware of what a pusher
is).
Diffstat (limited to 'lib/connection.h')
-rw-r--r-- | lib/connection.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/connection.h b/lib/connection.h index 016c7e3c..5a2df012 100644 --- a/lib/connection.h +++ b/lib/connection.h @@ -78,6 +78,18 @@ namespace QMatrixClient */ QHash<QPair<QString, bool>, Room*> roomMap() const; + /** Check whether the account has data of the given type + * Direct chats map is not supported by this method _yet_. + */ + bool hasAccountData(const QString& type) const; + + /** Get a generic account data event of the given type + * This returns a generic hashmap for any account data event + * stored on the server. Direct chats map cannot be retrieved + * using this method _yet_; use directChats() instead. + */ + QVariantHash accountData(const QString& type) const; + /** Get all Invited and Joined rooms grouped by tag * \return a hashmap from tag name to a vector of room pointers, * sorted by their order in the tag - details are at @@ -414,6 +426,9 @@ namespace QMatrixClient */ void createdRoom(Room* room); + /** Account data (except direct chats) have changed */ + void accountDataChanged(QString type); + /** The direct chat room is ready for using * This signal is emitted upon any successful outcome from * requestDirectChat. |