diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-07-18 18:39:56 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-07-18 18:39:56 +0900 |
commit | 5e6b4bb975fa9697a6aca001629c65db506a437f (patch) | |
tree | deeb501bd6b534dc1ce454fb03e2d91e09597770 /lib/csapi/administrative_contact.h | |
parent | 56480bc96b28356c44547cc3d9ea1afbda9f04f9 (diff) | |
download | libquotient-5e6b4bb975fa9697a6aca001629c65db506a437f.tar.gz libquotient-5e6b4bb975fa9697a6aca001629c65db506a437f.zip |
csapi: Doxy-comments thanks to the latest GTAD
Diffstat (limited to 'lib/csapi/administrative_contact.h')
-rw-r--r-- | lib/csapi/administrative_contact.h | 65 |
1 files changed, 59 insertions, 6 deletions
diff --git a/lib/csapi/administrative_contact.h b/lib/csapi/administrative_contact.h index 57d11d34..b9a5ee4b 100644 --- a/lib/csapi/administrative_contact.h +++ b/lib/csapi/administrative_contact.h @@ -13,14 +13,34 @@ namespace QMatrixClient { // Operations + /// Gets a list of a user's third party identifiers. + /// + /// Gets a list of the third party identifiers that the homeserver has + /// associated with the user's account. + /// + /// This is *not* the same as the list of third party identifiers bound to + /// the user's Matrix ID in Identity Servers. + /// + /// Identifiers in this list may be used by the homeserver as, for example, + /// identifiers that it will accept to reset the user's account password. class GetAccount3PIDsJob : public BaseJob { public: // Inner data structures + /// Gets a list of the third party identifiers that the homeserver has + /// associated with the user's account. + /// + /// This is *not* the same as the list of third party identifiers bound to + /// the user's Matrix ID in Identity Servers. + /// + /// Identifiers in this list may be used by the homeserver as, for example, + /// identifiers that it will accept to reset the user's account password. struct ThirdPartyIdentifier { + /// The medium of the third party identifier. QString medium; + /// The third party identifier address. QString address; }; @@ -28,9 +48,10 @@ namespace QMatrixClient explicit GetAccount3PIDsJob(); - /** Construct a URL out of baseUrl and usual parameters passed to - * GetAccount3PIDsJob. This function can be used when - * a URL for GetAccount3PIDsJob is necessary but the job + /*! Construct a URL without creating a full-fledged job object + * + * This function can be used when a URL for + * GetAccount3PIDsJob is necessary but the job * itself isn't. */ static QUrl makeRequestUrl(QUrl baseUrl); @@ -39,6 +60,14 @@ namespace QMatrixClient // Result properties + /// Gets a list of the third party identifiers that the homeserver has + /// associated with the user's account. + /// + /// This is *not* the same as the list of third party identifiers bound to + /// the user's Matrix ID in Identity Servers. + /// + /// Identifiers in this list may be used by the homeserver as, for example, + /// identifiers that it will accept to reset the user's account password. const QVector<ThirdPartyIdentifier>& threepids() const; protected: @@ -49,31 +78,55 @@ namespace QMatrixClient QScopedPointer<Private> d; }; + /// Adds contact information to the user's account. + /// + /// Adds contact information to the user's account. class Post3PIDsJob : public BaseJob { public: // Inner data structures + /// The third party credentials to associate with the account. struct ThreePidCredentials { + /// The client secret used in the session with the Identity Server. QString clientSecret; + /// The Identity Server to use. QString idServer; + /// The session identifier given by the Identity Server. QString sid; }; // Construction/destruction + /*! Adds contact information to the user's account. + * \param threePidCreds + * The third party credentials to associate with the account. + * \param bind + * Whether the homeserver should also bind this third party + * identifier to the account's Matrix ID with the passed identity + * server. Default: ``false``. + */ explicit Post3PIDsJob(const ThreePidCredentials& threePidCreds, bool bind = false); }; + /// Requests a validation token be sent to the given email address for the purpose of adding an email address to an account + /// + /// Proxies the identity server API ``validate/email/requestToken``, but + /// first checks that the given email address is **not** already associated + /// with an account on this Home Server. This API should be used to request + /// validation tokens when adding an email address to an account. This API's + /// parameters and response is identical to that of the HS API + /// |/register/email/requestToken|_ endpoint. 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 + /*! Construct a URL without creating a full-fledged job object + * + * This function can be used when a URL for + * RequestTokenTo3PIDJob is necessary but the job * itself isn't. */ static QUrl makeRequestUrl(QUrl baseUrl); |