diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2017-12-06 09:10:50 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2017-12-06 09:10:50 +0900 |
commit | e6a7ca28ce03ff1277430816dc5a41d503f93555 (patch) | |
tree | e5187798c5caa927bc684d63f0c17ffd313f96fc /connection.h | |
parent | f56edce1d27d71e5568506326468af411c78e731 (diff) | |
download | libquotient-e6a7ca28ce03ff1277430816dc5a41d503f93555.tar.gz libquotient-e6a7ca28ce03ff1277430816dc5a41d503f93555.zip |
Connection: undeprecate joinRoom()
This is for the same reason as Connection::getThumbnail() - it's the only non-template (hence, supported by QML and Qt queued signal connections) way to invoke joining a room.
Diffstat (limited to 'connection.h')
-rw-r--r-- | connection.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/connection.h b/connection.h index c67328a6..ecebb2e7 100644 --- a/connection.h +++ b/connection.h @@ -182,6 +182,8 @@ namespace QMatrixClient int requestedWidth, int requestedHeight) const; + virtual JoinRoomJob* joinRoom(const QString& roomAlias); + // Old API that will be abolished any time soon. DO NOT USE. /** @deprecated Use callApi<PostMessageJob>() or Room::postMessage() instead */ @@ -190,8 +192,6 @@ namespace QMatrixClient /** @deprecated Use callApi<PostReceiptJob>() or Room::postReceipt() instead */ virtual PostReceiptJob* postReceipt(Room* room, RoomEvent* event) const; - /** @deprecated Use callApi<JoinRoomJob>() instead */ - virtual JoinRoomJob* joinRoom(const QString& roomAlias); /** @deprecated Use callApi<LeaveRoomJob>() or Room::leaveRoom() instead */ virtual void leaveRoom( Room* room ); /** @deprecated User callApi<RoomMessagesJob>() or Room::getPreviousContent() instead */ |