diff options
-rw-r--r-- | lib/jobs/generated/administrative_contact.h | 12 | ||||
-rw-r--r-- | lib/jobs/generated/content-repo.h | 22 | ||||
-rw-r--r-- | lib/jobs/generated/create_room.h | 4 | ||||
-rw-r--r-- | lib/jobs/generated/directory.h | 8 | ||||
-rw-r--r-- | lib/jobs/generated/joining.h | 8 | ||||
-rw-r--r-- | lib/jobs/generated/leaving.h | 6 | ||||
-rw-r--r-- | lib/jobs/generated/list_joined_rooms.h | 5 | ||||
-rw-r--r-- | lib/jobs/generated/list_public_rooms.h | 16 | ||||
-rw-r--r-- | lib/jobs/generated/login.h | 2 | ||||
-rw-r--r-- | lib/jobs/generated/logout.h | 3 | ||||
-rw-r--r-- | lib/jobs/generated/message_pagination.h | 5 | ||||
-rw-r--r-- | lib/jobs/generated/notifications.h | 7 | ||||
-rw-r--r-- | lib/jobs/generated/profile.h | 15 | ||||
-rw-r--r-- | lib/jobs/generated/pusher.h | 9 | ||||
-rw-r--r-- | lib/jobs/generated/redaction.h | 2 | ||||
-rw-r--r-- | lib/jobs/generated/room_send.h | 2 | ||||
-rw-r--r-- | lib/jobs/generated/room_state.h | 4 | ||||
-rw-r--r-- | lib/jobs/generated/tags.h | 8 | ||||
-rw-r--r-- | lib/jobs/generated/users.h | 4 | ||||
-rw-r--r-- | lib/jobs/generated/versions.h | 5 | ||||
-rw-r--r-- | lib/jobs/generated/whoami.h | 5 |
21 files changed, 117 insertions, 35 deletions
diff --git a/lib/jobs/generated/administrative_contact.h b/lib/jobs/generated/administrative_contact.h index 9cb09a3c..4afd068f 100644 --- a/lib/jobs/generated/administrative_contact.h +++ b/lib/jobs/generated/administrative_contact.h @@ -25,7 +25,9 @@ namespace QMatrixClient QString address; }; - // End of inner data structures + // Construction/destruction + + explicit GetAccount3PIDsJob(); /** Construct a URL out of baseUrl and usual parameters passed to * GetAccount3PIDsJob. This function can be used when @@ -34,9 +36,10 @@ namespace QMatrixClient */ static QUrl makeRequestUrl(QUrl baseUrl); - explicit GetAccount3PIDsJob(); ~GetAccount3PIDsJob() override; + // Result properties + const QVector<ThirdPartyIdentifier>& threepids() const; protected: @@ -59,7 +62,7 @@ namespace QMatrixClient QString sid; }; - // End of inner data structures + // Construction/destruction explicit Post3PIDsJob(const ThreePidCredentials& threePidCreds, bool bind = {}); }; @@ -67,6 +70,8 @@ namespace QMatrixClient class RequestTokenTo3PIDJob : public BaseJob { public: + explicit RequestTokenTo3PIDJob(); + /** Construct a URL out of baseUrl and usual parameters passed to * RequestTokenTo3PIDJob. This function can be used when * a URL for RequestTokenTo3PIDJob is necessary but the job @@ -74,6 +79,5 @@ namespace QMatrixClient */ static QUrl makeRequestUrl(QUrl baseUrl); - explicit RequestTokenTo3PIDJob(); }; } // namespace QMatrixClient diff --git a/lib/jobs/generated/content-repo.h b/lib/jobs/generated/content-repo.h index e1e58f88..cae8e588 100644 --- a/lib/jobs/generated/content-repo.h +++ b/lib/jobs/generated/content-repo.h @@ -19,6 +19,8 @@ namespace QMatrixClient explicit UploadContentJob(QIODevice* content, const QString& filename = {}, const QString& contentType = {}); ~UploadContentJob() override; + // Result properties + const QString& contentUri() const; protected: @@ -32,6 +34,8 @@ namespace QMatrixClient class GetContentJob : public BaseJob { public: + explicit GetContentJob(const QString& serverName, const QString& mediaId); + /** Construct a URL out of baseUrl and usual parameters passed to * GetContentJob. This function can be used when * a URL for GetContentJob is necessary but the job @@ -39,9 +43,10 @@ namespace QMatrixClient */ static QUrl makeRequestUrl(QUrl baseUrl, const QString& serverName, const QString& mediaId); - explicit GetContentJob(const QString& serverName, const QString& mediaId); ~GetContentJob() override; + // Result properties + const QString& contentType() const; const QString& contentDisposition() const; QIODevice* content() const; @@ -57,6 +62,8 @@ namespace QMatrixClient class GetContentOverrideNameJob : public BaseJob { public: + explicit GetContentOverrideNameJob(const QString& serverName, const QString& mediaId, const QString& fileName); + /** Construct a URL out of baseUrl and usual parameters passed to * GetContentOverrideNameJob. This function can be used when * a URL for GetContentOverrideNameJob is necessary but the job @@ -64,9 +71,10 @@ namespace QMatrixClient */ static QUrl makeRequestUrl(QUrl baseUrl, const QString& serverName, const QString& mediaId, const QString& fileName); - explicit GetContentOverrideNameJob(const QString& serverName, const QString& mediaId, const QString& fileName); ~GetContentOverrideNameJob() override; + // Result properties + const QString& contentType() const; const QString& contentDisposition() const; QIODevice* content() const; @@ -82,6 +90,8 @@ namespace QMatrixClient class GetContentThumbnailJob : public BaseJob { public: + explicit GetContentThumbnailJob(const QString& serverName, const QString& mediaId, int width = {}, int height = {}, const QString& method = {}); + /** Construct a URL out of baseUrl and usual parameters passed to * GetContentThumbnailJob. This function can be used when * a URL for GetContentThumbnailJob is necessary but the job @@ -89,9 +99,10 @@ namespace QMatrixClient */ static QUrl makeRequestUrl(QUrl baseUrl, const QString& serverName, const QString& mediaId, int width = {}, int height = {}, const QString& method = {}); - explicit GetContentThumbnailJob(const QString& serverName, const QString& mediaId, int width = {}, int height = {}, const QString& method = {}); ~GetContentThumbnailJob() override; + // Result properties + const QString& contentType() const; QIODevice* content() const; @@ -106,6 +117,8 @@ namespace QMatrixClient class GetUrlPreviewJob : public BaseJob { public: + explicit GetUrlPreviewJob(const QString& url, qint64 ts = {}); + /** Construct a URL out of baseUrl and usual parameters passed to * GetUrlPreviewJob. This function can be used when * a URL for GetUrlPreviewJob is necessary but the job @@ -113,9 +126,10 @@ namespace QMatrixClient */ static QUrl makeRequestUrl(QUrl baseUrl, const QString& url, qint64 ts = {}); - explicit GetUrlPreviewJob(const QString& url, qint64 ts = {}); ~GetUrlPreviewJob() override; + // Result properties + qint64 matrixImageSize() const; const QString& ogImage() const; diff --git a/lib/jobs/generated/create_room.h b/lib/jobs/generated/create_room.h index 526463b0..8e38774f 100644 --- a/lib/jobs/generated/create_room.h +++ b/lib/jobs/generated/create_room.h @@ -34,11 +34,13 @@ namespace QMatrixClient QJsonObject content; }; - // End of inner data structures + // Construction/destruction explicit CreateRoomJob(const QString& visibility = {}, const QString& roomAliasName = {}, const QString& name = {}, const QString& topic = {}, const QVector<QString>& invite = {}, const QVector<Invite3pid>& invite3pid = {}, const QJsonObject& creationContent = {}, const QVector<StateEvent>& initialState = {}, const QString& preset = {}, bool isDirect = {}, bool guestCanJoin = {}); ~CreateRoomJob() override; + // Result properties + const QString& roomId() const; protected: diff --git a/lib/jobs/generated/directory.h b/lib/jobs/generated/directory.h index 87591240..e01ba024 100644 --- a/lib/jobs/generated/directory.h +++ b/lib/jobs/generated/directory.h @@ -22,6 +22,8 @@ namespace QMatrixClient class GetRoomIdByAliasJob : public BaseJob { public: + explicit GetRoomIdByAliasJob(const QString& roomAlias); + /** Construct a URL out of baseUrl and usual parameters passed to * GetRoomIdByAliasJob. This function can be used when * a URL for GetRoomIdByAliasJob is necessary but the job @@ -29,9 +31,10 @@ namespace QMatrixClient */ static QUrl makeRequestUrl(QUrl baseUrl, const QString& roomAlias); - explicit GetRoomIdByAliasJob(const QString& roomAlias); ~GetRoomIdByAliasJob() override; + // Result properties + const QString& roomId() const; const QVector<QString>& servers() const; @@ -46,6 +49,8 @@ namespace QMatrixClient class DeleteRoomAliasJob : public BaseJob { public: + explicit DeleteRoomAliasJob(const QString& roomAlias); + /** Construct a URL out of baseUrl and usual parameters passed to * DeleteRoomAliasJob. This function can be used when * a URL for DeleteRoomAliasJob is necessary but the job @@ -53,6 +58,5 @@ namespace QMatrixClient */ static QUrl makeRequestUrl(QUrl baseUrl, const QString& roomAlias); - explicit DeleteRoomAliasJob(const QString& roomAlias); }; } // namespace QMatrixClient diff --git a/lib/jobs/generated/joining.h b/lib/jobs/generated/joining.h index 76edb339..7aa3e3a2 100644 --- a/lib/jobs/generated/joining.h +++ b/lib/jobs/generated/joining.h @@ -27,11 +27,13 @@ namespace QMatrixClient QJsonObject signatures; }; - // End of inner data structures + // Construction/destruction explicit JoinRoomByIdJob(const QString& roomId, const ThirdPartySigned& thirdPartySigned = {}); ~JoinRoomByIdJob() override; + // Result properties + const QString& roomId() const; protected: @@ -60,11 +62,13 @@ namespace QMatrixClient Signed signedData; }; - // End of inner data structures + // Construction/destruction explicit JoinRoomJob(const QString& roomIdOrAlias, const ThirdPartySigned& thirdPartySigned = {}); ~JoinRoomJob() override; + // Result properties + const QString& roomId() const; protected: diff --git a/lib/jobs/generated/leaving.h b/lib/jobs/generated/leaving.h index 9bae2363..7e914dd1 100644 --- a/lib/jobs/generated/leaving.h +++ b/lib/jobs/generated/leaving.h @@ -15,6 +15,8 @@ namespace QMatrixClient class LeaveRoomJob : public BaseJob { public: + explicit LeaveRoomJob(const QString& roomId); + /** Construct a URL out of baseUrl and usual parameters passed to * LeaveRoomJob. This function can be used when * a URL for LeaveRoomJob is necessary but the job @@ -22,12 +24,13 @@ namespace QMatrixClient */ static QUrl makeRequestUrl(QUrl baseUrl, const QString& roomId); - explicit LeaveRoomJob(const QString& roomId); }; class ForgetRoomJob : public BaseJob { public: + explicit ForgetRoomJob(const QString& roomId); + /** Construct a URL out of baseUrl and usual parameters passed to * ForgetRoomJob. This function can be used when * a URL for ForgetRoomJob is necessary but the job @@ -35,6 +38,5 @@ namespace QMatrixClient */ static QUrl makeRequestUrl(QUrl baseUrl, const QString& roomId); - explicit ForgetRoomJob(const QString& roomId); }; } // namespace QMatrixClient diff --git a/lib/jobs/generated/list_joined_rooms.h b/lib/jobs/generated/list_joined_rooms.h index 768f5166..3df2d1ae 100644 --- a/lib/jobs/generated/list_joined_rooms.h +++ b/lib/jobs/generated/list_joined_rooms.h @@ -16,6 +16,8 @@ namespace QMatrixClient class GetJoinedRoomsJob : public BaseJob { public: + explicit GetJoinedRoomsJob(); + /** Construct a URL out of baseUrl and usual parameters passed to * GetJoinedRoomsJob. This function can be used when * a URL for GetJoinedRoomsJob is necessary but the job @@ -23,9 +25,10 @@ namespace QMatrixClient */ static QUrl makeRequestUrl(QUrl baseUrl); - explicit GetJoinedRoomsJob(); ~GetJoinedRoomsJob() override; + // Result properties + const QVector<QString>& joinedRooms() const; protected: diff --git a/lib/jobs/generated/list_public_rooms.h b/lib/jobs/generated/list_public_rooms.h index 8e8fddca..3e06f21a 100644 --- a/lib/jobs/generated/list_public_rooms.h +++ b/lib/jobs/generated/list_public_rooms.h @@ -17,6 +17,8 @@ namespace QMatrixClient class GetRoomVisibilityOnDirectoryJob : public BaseJob { public: + explicit GetRoomVisibilityOnDirectoryJob(const QString& roomId); + /** Construct a URL out of baseUrl and usual parameters passed to * GetRoomVisibilityOnDirectoryJob. This function can be used when * a URL for GetRoomVisibilityOnDirectoryJob is necessary but the job @@ -24,9 +26,10 @@ namespace QMatrixClient */ static QUrl makeRequestUrl(QUrl baseUrl, const QString& roomId); - explicit GetRoomVisibilityOnDirectoryJob(const QString& roomId); ~GetRoomVisibilityOnDirectoryJob() override; + // Result properties + const QString& visibility() const; protected: @@ -61,7 +64,9 @@ namespace QMatrixClient QString avatarUrl; }; - // End of inner data structures + // Construction/destruction + + explicit GetPublicRoomsJob(int limit = {}, const QString& since = {}, const QString& server = {}); /** Construct a URL out of baseUrl and usual parameters passed to * GetPublicRoomsJob. This function can be used when @@ -70,9 +75,10 @@ namespace QMatrixClient */ static QUrl makeRequestUrl(QUrl baseUrl, int limit = {}, const QString& since = {}, const QString& server = {}); - explicit GetPublicRoomsJob(int limit = {}, const QString& since = {}, const QString& server = {}); ~GetPublicRoomsJob() override; + // Result properties + const QVector<PublicRoomsChunk>& chunk() const; const QString& nextBatch() const; const QString& prevBatch() const; @@ -109,11 +115,13 @@ namespace QMatrixClient QString avatarUrl; }; - // End of inner data structures + // Construction/destruction explicit QueryPublicRoomsJob(const QString& server = {}, int limit = {}, const QString& since = {}, const Filter& filter = {}); ~QueryPublicRoomsJob() override; + // Result properties + const QVector<PublicRoomsChunk>& chunk() const; const QString& nextBatch() const; const QString& prevBatch() const; diff --git a/lib/jobs/generated/login.h b/lib/jobs/generated/login.h index 3ac955d4..8bf52d6b 100644 --- a/lib/jobs/generated/login.h +++ b/lib/jobs/generated/login.h @@ -18,6 +18,8 @@ namespace QMatrixClient explicit LoginJob(const QString& type, const QString& user = {}, const QString& medium = {}, const QString& address = {}, const QString& password = {}, const QString& token = {}, const QString& deviceId = {}, const QString& initialDeviceDisplayName = {}); ~LoginJob() override; + // Result properties + const QString& userId() const; const QString& accessToken() const; const QString& homeServer() const; diff --git a/lib/jobs/generated/logout.h b/lib/jobs/generated/logout.h index 7640ba55..1f60bd75 100644 --- a/lib/jobs/generated/logout.h +++ b/lib/jobs/generated/logout.h @@ -15,6 +15,8 @@ namespace QMatrixClient class LogoutJob : public BaseJob { public: + explicit LogoutJob(); + /** Construct a URL out of baseUrl and usual parameters passed to * LogoutJob. This function can be used when * a URL for LogoutJob is necessary but the job @@ -22,6 +24,5 @@ namespace QMatrixClient */ static QUrl makeRequestUrl(QUrl baseUrl); - explicit LogoutJob(); }; } // namespace QMatrixClient diff --git a/lib/jobs/generated/message_pagination.h b/lib/jobs/generated/message_pagination.h index b8588ad1..284895fd 100644 --- a/lib/jobs/generated/message_pagination.h +++ b/lib/jobs/generated/message_pagination.h @@ -16,6 +16,8 @@ namespace QMatrixClient class GetRoomEventsJob : public BaseJob { public: + explicit GetRoomEventsJob(const QString& roomId, const QString& from, const QString& dir, const QString& to = {}, int limit = {}, const QString& filter = {}); + /** Construct a URL out of baseUrl and usual parameters passed to * GetRoomEventsJob. This function can be used when * a URL for GetRoomEventsJob is necessary but the job @@ -23,9 +25,10 @@ namespace QMatrixClient */ static QUrl makeRequestUrl(QUrl baseUrl, const QString& roomId, const QString& from, const QString& dir, const QString& to = {}, int limit = {}, const QString& filter = {}); - explicit GetRoomEventsJob(const QString& roomId, const QString& from, const QString& dir, const QString& to = {}, int limit = {}, const QString& filter = {}); ~GetRoomEventsJob() override; + // Result properties + const QString& begin() const; const QString& end() const; RoomEvents&& chunk(); diff --git a/lib/jobs/generated/notifications.h b/lib/jobs/generated/notifications.h index d66e15be..428995ae 100644 --- a/lib/jobs/generated/notifications.h +++ b/lib/jobs/generated/notifications.h @@ -31,7 +31,9 @@ namespace QMatrixClient qint64 ts; }; - // End of inner data structures + // Construction/destruction + + explicit GetNotificationsJob(const QString& from = {}, int limit = {}, const QString& only = {}); /** Construct a URL out of baseUrl and usual parameters passed to * GetNotificationsJob. This function can be used when @@ -40,9 +42,10 @@ namespace QMatrixClient */ static QUrl makeRequestUrl(QUrl baseUrl, const QString& from = {}, int limit = {}, const QString& only = {}); - explicit GetNotificationsJob(const QString& from = {}, int limit = {}, const QString& only = {}); ~GetNotificationsJob() override; + // Result properties + const QString& nextToken() const; std::vector<Notification>&& notifications(); diff --git a/lib/jobs/generated/profile.h b/lib/jobs/generated/profile.h index 024130f5..9afc037b 100644 --- a/lib/jobs/generated/profile.h +++ b/lib/jobs/generated/profile.h @@ -21,6 +21,8 @@ namespace QMatrixClient class GetDisplayNameJob : public BaseJob { public: + explicit GetDisplayNameJob(const QString& userId); + /** Construct a URL out of baseUrl and usual parameters passed to * GetDisplayNameJob. This function can be used when * a URL for GetDisplayNameJob is necessary but the job @@ -28,9 +30,10 @@ namespace QMatrixClient */ static QUrl makeRequestUrl(QUrl baseUrl, const QString& userId); - explicit GetDisplayNameJob(const QString& userId); ~GetDisplayNameJob() override; + // Result properties + const QString& displayname() const; protected: @@ -50,6 +53,8 @@ namespace QMatrixClient class GetAvatarUrlJob : public BaseJob { public: + explicit GetAvatarUrlJob(const QString& userId); + /** Construct a URL out of baseUrl and usual parameters passed to * GetAvatarUrlJob. This function can be used when * a URL for GetAvatarUrlJob is necessary but the job @@ -57,9 +62,10 @@ namespace QMatrixClient */ static QUrl makeRequestUrl(QUrl baseUrl, const QString& userId); - explicit GetAvatarUrlJob(const QString& userId); ~GetAvatarUrlJob() override; + // Result properties + const QString& avatarUrl() const; protected: @@ -73,6 +79,8 @@ namespace QMatrixClient class GetUserProfileJob : public BaseJob { public: + explicit GetUserProfileJob(const QString& userId); + /** Construct a URL out of baseUrl and usual parameters passed to * GetUserProfileJob. This function can be used when * a URL for GetUserProfileJob is necessary but the job @@ -80,9 +88,10 @@ namespace QMatrixClient */ static QUrl makeRequestUrl(QUrl baseUrl, const QString& userId); - explicit GetUserProfileJob(const QString& userId); ~GetUserProfileJob() override; + // Result properties + const QString& avatarUrl() const; const QString& displayname() const; diff --git a/lib/jobs/generated/pusher.h b/lib/jobs/generated/pusher.h index 06a2c832..4d99d4d0 100644 --- a/lib/jobs/generated/pusher.h +++ b/lib/jobs/generated/pusher.h @@ -36,7 +36,9 @@ namespace QMatrixClient PusherData data; }; - // End of inner data structures + // Construction/destruction + + explicit GetPushersJob(); /** Construct a URL out of baseUrl and usual parameters passed to * GetPushersJob. This function can be used when @@ -45,9 +47,10 @@ namespace QMatrixClient */ static QUrl makeRequestUrl(QUrl baseUrl); - explicit GetPushersJob(); ~GetPushersJob() override; + // Result properties + const QVector<Pusher>& pushers() const; protected: @@ -68,7 +71,7 @@ namespace QMatrixClient QString url; }; - // End of inner data structures + // Construction/destruction explicit PostPusherJob(const QString& pushkey, const QString& kind, const QString& appId, const QString& appDisplayName, const QString& deviceDisplayName, const QString& lang, const PusherData& data, const QString& profileTag = {}, bool append = {}); }; diff --git a/lib/jobs/generated/redaction.h b/lib/jobs/generated/redaction.h index e3b3ff4f..974dfde5 100644 --- a/lib/jobs/generated/redaction.h +++ b/lib/jobs/generated/redaction.h @@ -18,6 +18,8 @@ namespace QMatrixClient explicit RedactEventJob(const QString& roomId, const QString& eventId, const QString& txnId, const QString& reason = {}); ~RedactEventJob() override; + // Result properties + const QString& eventId() const; protected: diff --git a/lib/jobs/generated/room_send.h b/lib/jobs/generated/room_send.h index d20ce523..370f2865 100644 --- a/lib/jobs/generated/room_send.h +++ b/lib/jobs/generated/room_send.h @@ -19,6 +19,8 @@ namespace QMatrixClient explicit SendMessageJob(const QString& roomId, const QString& eventType, const QString& txnId, const QJsonObject& body = {}); ~SendMessageJob() override; + // Result properties + const QString& eventId() const; protected: diff --git a/lib/jobs/generated/room_state.h b/lib/jobs/generated/room_state.h index 5d16b2a6..aea32263 100644 --- a/lib/jobs/generated/room_state.h +++ b/lib/jobs/generated/room_state.h @@ -19,6 +19,8 @@ namespace QMatrixClient explicit SetRoomStateWithKeyJob(const QString& roomId, const QString& eventType, const QString& stateKey, const QJsonObject& body = {}); ~SetRoomStateWithKeyJob() override; + // Result properties + const QString& eventId() const; protected: @@ -35,6 +37,8 @@ namespace QMatrixClient explicit SetRoomStateJob(const QString& roomId, const QString& eventType, const QJsonObject& body = {}); ~SetRoomStateJob() override; + // Result properties + const QString& eventId() const; protected: diff --git a/lib/jobs/generated/tags.h b/lib/jobs/generated/tags.h index 7a375527..f62bd7ad 100644 --- a/lib/jobs/generated/tags.h +++ b/lib/jobs/generated/tags.h @@ -16,6 +16,8 @@ namespace QMatrixClient class GetRoomTagsJob : public BaseJob { public: + explicit GetRoomTagsJob(const QString& userId, const QString& roomId); + /** Construct a URL out of baseUrl and usual parameters passed to * GetRoomTagsJob. This function can be used when * a URL for GetRoomTagsJob is necessary but the job @@ -23,9 +25,10 @@ namespace QMatrixClient */ static QUrl makeRequestUrl(QUrl baseUrl, const QString& userId, const QString& roomId); - explicit GetRoomTagsJob(const QString& userId, const QString& roomId); ~GetRoomTagsJob() override; + // Result properties + const QJsonObject& tags() const; protected: @@ -45,6 +48,8 @@ namespace QMatrixClient class DeleteRoomTagJob : public BaseJob { public: + explicit DeleteRoomTagJob(const QString& userId, const QString& roomId, const QString& tag); + /** Construct a URL out of baseUrl and usual parameters passed to * DeleteRoomTagJob. This function can be used when * a URL for DeleteRoomTagJob is necessary but the job @@ -52,6 +57,5 @@ namespace QMatrixClient */ static QUrl makeRequestUrl(QUrl baseUrl, const QString& userId, const QString& roomId, const QString& tag); - explicit DeleteRoomTagJob(const QString& userId, const QString& roomId, const QString& tag); }; } // namespace QMatrixClient diff --git a/lib/jobs/generated/users.h b/lib/jobs/generated/users.h index 50b8b648..fa0d4335 100644 --- a/lib/jobs/generated/users.h +++ b/lib/jobs/generated/users.h @@ -26,11 +26,13 @@ namespace QMatrixClient QString avatarUrl; }; - // End of inner data structures + // Construction/destruction explicit SearchUserDirectoryJob(const QString& searchTerm, int limit = {}); ~SearchUserDirectoryJob() override; + // Result properties + const QVector<User>& results() const; bool limited() const; diff --git a/lib/jobs/generated/versions.h b/lib/jobs/generated/versions.h index 18f6bb44..249d3de4 100644 --- a/lib/jobs/generated/versions.h +++ b/lib/jobs/generated/versions.h @@ -16,6 +16,8 @@ namespace QMatrixClient class GetVersionsJob : public BaseJob { public: + explicit GetVersionsJob(); + /** Construct a URL out of baseUrl and usual parameters passed to * GetVersionsJob. This function can be used when * a URL for GetVersionsJob is necessary but the job @@ -23,9 +25,10 @@ namespace QMatrixClient */ static QUrl makeRequestUrl(QUrl baseUrl); - explicit GetVersionsJob(); ~GetVersionsJob() override; + // Result properties + const QVector<QString>& versions() const; protected: diff --git a/lib/jobs/generated/whoami.h b/lib/jobs/generated/whoami.h index 835232ee..2b0e7375 100644 --- a/lib/jobs/generated/whoami.h +++ b/lib/jobs/generated/whoami.h @@ -15,6 +15,8 @@ namespace QMatrixClient class GetTokenOwnerJob : public BaseJob { public: + explicit GetTokenOwnerJob(); + /** Construct a URL out of baseUrl and usual parameters passed to * GetTokenOwnerJob. This function can be used when * a URL for GetTokenOwnerJob is necessary but the job @@ -22,9 +24,10 @@ namespace QMatrixClient */ static QUrl makeRequestUrl(QUrl baseUrl); - explicit GetTokenOwnerJob(); ~GetTokenOwnerJob() override; + // Result properties + const QString& userId() const; protected: |