diff options
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. |