Use callbacks on MatrixClient
This commit is contained in:
parent
746e41ad1f
commit
1ac9724e60
@ -112,57 +112,7 @@ signals:
|
|||||||
void joinedRoom(const QString &room_id);
|
void joinedRoom(const QString &room_id);
|
||||||
void leftRoom(const QString &room_id);
|
void leftRoom(const QString &room_id);
|
||||||
|
|
||||||
private slots:
|
|
||||||
void onResponse(QNetworkReply *reply);
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
enum class Endpoint
|
|
||||||
{
|
|
||||||
GetOwnAvatar,
|
|
||||||
GetOwnProfile,
|
|
||||||
GetOwnCommunities,
|
|
||||||
GetProfile,
|
|
||||||
Image,
|
|
||||||
InitialSync,
|
|
||||||
ImageUpload,
|
|
||||||
Login,
|
|
||||||
Logout,
|
|
||||||
Messages,
|
|
||||||
Register,
|
|
||||||
RoomAvatar,
|
|
||||||
CommunityAvatar,
|
|
||||||
CommunityProfile,
|
|
||||||
CommunityRooms,
|
|
||||||
SendRoomMessage,
|
|
||||||
Sync,
|
|
||||||
UserAvatar,
|
|
||||||
Versions,
|
|
||||||
JoinRoom,
|
|
||||||
LeaveRoom,
|
|
||||||
};
|
|
||||||
|
|
||||||
// Response handlers.
|
|
||||||
void onGetOwnAvatarResponse(QNetworkReply *reply);
|
|
||||||
void onGetOwnProfileResponse(QNetworkReply *reply);
|
|
||||||
void onGetOwnCommunitiesResponse(QNetworkReply *reply);
|
|
||||||
void onImageResponse(QNetworkReply *reply);
|
|
||||||
void onInitialSyncResponse(QNetworkReply *reply);
|
|
||||||
void onImageUploadResponse(QNetworkReply *reply);
|
|
||||||
void onLoginResponse(QNetworkReply *reply);
|
|
||||||
void onLogoutResponse(QNetworkReply *reply);
|
|
||||||
void onMessagesResponse(QNetworkReply *reply);
|
|
||||||
void onRegisterResponse(QNetworkReply *reply);
|
|
||||||
void onRoomAvatarResponse(QNetworkReply *reply);
|
|
||||||
void onCommunityAvatarResponse(QNetworkReply *reply);
|
|
||||||
void onCommunityProfileResponse(QNetworkReply *reply);
|
|
||||||
void onCommunityRoomsResponse(QNetworkReply *reply);
|
|
||||||
void onSendRoomMessage(QNetworkReply *reply);
|
|
||||||
void onSyncResponse(QNetworkReply *reply);
|
|
||||||
void onUserAvatarResponse(QNetworkReply *reply);
|
|
||||||
void onVersionsResponse(QNetworkReply *reply);
|
|
||||||
void onJoinRoomResponse(QNetworkReply *reply);
|
|
||||||
void onLeaveRoomResponse(QNetworkReply *reply);
|
|
||||||
|
|
||||||
// Client API prefix.
|
// Client API prefix.
|
||||||
QString clientApiUrl_;
|
QString clientApiUrl_;
|
||||||
|
|
||||||
|
1056
src/MatrixClient.cc
1056
src/MatrixClient.cc
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user