diff options
author | Alexey Rusakov <Kitsune-Ral@users.sf.net> | 2021-08-09 22:58:21 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-09 22:58:21 +0200 |
commit | 5d9443fccf2d336f16d6beacb5e1775c79123c02 (patch) | |
tree | fe5ba377808dfa7c3564dbe013e9894035c303f4 /lib/csapi/definitions | |
parent | bf6303c41264d913ca049009034aa948464b8f30 (diff) | |
parent | e5a760371a158bec6a70353b96614611adecc4bc (diff) | |
download | libquotient-5d9443fccf2d336f16d6beacb5e1775c79123c02.tar.gz libquotient-5d9443fccf2d336f16d6beacb5e1775c79123c02.zip |
Merge pull request #492 from quotient-im/kitsune-qurl-in-csapi
Use QUrl in CS API backend
Diffstat (limited to 'lib/csapi/definitions')
-rw-r--r-- | lib/csapi/definitions/public_rooms_response.h | 2 | ||||
-rw-r--r-- | lib/csapi/definitions/request_token_response.h | 2 | ||||
-rw-r--r-- | lib/csapi/definitions/wellknown/homeserver.h | 2 | ||||
-rw-r--r-- | lib/csapi/definitions/wellknown/identity_server.h | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/lib/csapi/definitions/public_rooms_response.h b/lib/csapi/definitions/public_rooms_response.h index 34b447d2..2938b4ec 100644 --- a/lib/csapi/definitions/public_rooms_response.h +++ b/lib/csapi/definitions/public_rooms_response.h @@ -36,7 +36,7 @@ struct PublicRoomsChunk { bool guestCanJoin; /// The URL for the room's avatar, if one is set. - QString avatarUrl; + QUrl avatarUrl; /// The room's join rule. When not present, the room is assumed to /// be `public`. Note that rooms with `invite` join rules are not diff --git a/lib/csapi/definitions/request_token_response.h b/lib/csapi/definitions/request_token_response.h index f9981100..d5fbbadb 100644 --- a/lib/csapi/definitions/request_token_response.h +++ b/lib/csapi/definitions/request_token_response.h @@ -25,7 +25,7 @@ struct RequestTokenResponse { /// will happen without the client's involvement provided the homeserver /// advertises this specification version in the `/versions` response /// (ie: r0.5.0). - QString submitUrl; + QUrl submitUrl; }; template <> diff --git a/lib/csapi/definitions/wellknown/homeserver.h b/lib/csapi/definitions/wellknown/homeserver.h index 5cfaca24..b7db4182 100644 --- a/lib/csapi/definitions/wellknown/homeserver.h +++ b/lib/csapi/definitions/wellknown/homeserver.h @@ -10,7 +10,7 @@ namespace Quotient { /// Used by clients to discover homeserver information. struct HomeserverInformation { /// The base URL for the homeserver for client-server connections. - QString baseUrl; + QUrl baseUrl; }; template <> diff --git a/lib/csapi/definitions/wellknown/identity_server.h b/lib/csapi/definitions/wellknown/identity_server.h index 3bd07bd1..885e3d34 100644 --- a/lib/csapi/definitions/wellknown/identity_server.h +++ b/lib/csapi/definitions/wellknown/identity_server.h @@ -10,7 +10,7 @@ namespace Quotient { /// Used by clients to discover identity server information. struct IdentityServerInformation { /// The base URL for the identity server for client-server connections. - QString baseUrl; + QUrl baseUrl; }; template <> |