diff options
Diffstat (limited to 'include/MatrixClient.h')
-rw-r--r-- | include/MatrixClient.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/MatrixClient.h b/include/MatrixClient.h index 2627f578..8936003f 100644 --- a/include/MatrixClient.h +++ b/include/MatrixClient.h @@ -48,6 +48,9 @@ public: void versions() noexcept; void fetchRoomAvatar(const QString &roomid, const QUrl &avatar_url); void fetchUserAvatar(const QString &userId, const QUrl &avatarUrl); + void fetchCommunityAvatar(const QString &communityId, const QUrl &avatarUrl); + void fetchCommunityProfile(const QString &communityId); + void fetchCommunityRooms(const QString &communityId); void fetchOwnAvatar(const QUrl &avatar_url); void downloadImage(const QString &event_id, const QUrl &url); void downloadFile(const QString &event_id, const QUrl &url); @@ -71,6 +74,7 @@ public: public slots: void getOwnProfile() noexcept; + void getOwnCommunities() noexcept; void logout() noexcept; void setServer(const QString &server) @@ -103,12 +107,16 @@ signals: const QString &url, const QByteArray &data); void userAvatarRetrieved(const QString &userId, const QImage &img); + void communityAvatarRetrieved(const QString &communityId, const QPixmap &img); + void communityProfileRetrieved(const QString &communityId, const QJsonObject &profile); + void communityRoomsRetrieved(const QString &communityId, const QJsonObject &rooms); void ownAvatarRetrieved(const QPixmap &img); void imageDownloaded(const QString &event_id, const QPixmap &img); void fileDownloaded(const QString &event_id, const QByteArray &data); // Returned profile data for the user's account. void getOwnProfileResponse(const QUrl &avatar_url, const QString &display_name); + void getOwnCommunitiesResponse(const QList<QString> &own_communities); void initialSyncCompleted(const mtx::responses::Sync &response); void initialSyncFailed(const QString &msg); void syncCompleted(const mtx::responses::Sync &response); |