aboutsummaryrefslogtreecommitdiff
path: root/lib/csapi/users.h
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2018-09-29 22:22:49 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2018-09-29 22:22:49 +0900
commitb55334ac0fe89f780776bc4eab90ffe1ca3c57bb (patch)
tree1a45c0ccfec8f5f7ba37eb4385cdc7f61afa0c97 /lib/csapi/users.h
parentf5c2e47fa1ab84fdaffe03c30ba973d7dea5ac05 (diff)
parent1e6510790dab6b9141ae52993987b406399668cd (diff)
downloadlibquotient-b55334ac0fe89f780776bc4eab90ffe1ca3c57bb.tar.gz
libquotient-b55334ac0fe89f780776bc4eab90ffe1ca3c57bb.zip
Merge branch 'cs-api-0.4.0'
Diffstat (limited to 'lib/csapi/users.h')
-rw-r--r--lib/csapi/users.h30
1 files changed, 23 insertions, 7 deletions
diff --git a/lib/csapi/users.h b/lib/csapi/users.h
index 3ff10db6..1e355b8f 100644
--- a/lib/csapi/users.h
+++ b/lib/csapi/users.h
@@ -14,16 +14,32 @@ namespace QMatrixClient
// Operations
/// Searches the user directory.
+ ///
+ /// Performs a search for users on the homeserver. The homeserver may
+ /// determine which subset of users are searched, however the homeserver
+ /// MUST at a minimum consider the users the requesting user shares a
+ /// room with and those who reside in public rooms (known to the homeserver).
+ /// The search MUST consider local users to the homeserver, and SHOULD
+ /// query remote users as part of the search.
///
- /// This API performs a server-side search over all users registered on the server.
- /// It searches user ID and displayname case-insensitively for users that you share a room with or that are in public rooms.
+ /// The search is performed case-insensitively on user IDs and display
+ /// names preferably using a collation determined based upon the
+ /// ``Accept-Language`` header provided in the request, if present.
class SearchUserDirectoryJob : public BaseJob
{
public:
// Inner data structures
- /// This API performs a server-side search over all users registered on the server.
- /// It searches user ID and displayname case-insensitively for users that you share a room with or that are in public rooms.
+ /// Performs a search for users on the homeserver. The homeserver may
+ /// determine which subset of users are searched, however the homeserver
+ /// MUST at a minimum consider the users the requesting user shares a
+ /// room with and those who reside in public rooms (known to the homeserver).
+ /// The search MUST consider local users to the homeserver, and SHOULD
+ /// query remote users as part of the search.
+ ///
+ /// The search is performed case-insensitively on user IDs and display
+ /// names preferably using a collation determined based upon the
+ /// ``Accept-Language`` header provided in the request, if present.
struct User
{
/// The user's matrix user ID.
@@ -37,10 +53,10 @@ namespace QMatrixClient
// Construction/destruction
/*! Searches the user directory.
- * \param searchTerm
+ * \param searchTerm
* The term to search for
- * \param limit
- * The maximum number of results to return (Defaults to 10).
+ * \param limit
+ * The maximum number of results to return. Defaults to 10.
*/
explicit SearchUserDirectoryJob(const QString& searchTerm, Omittable<int> limit = none);
~SearchUserDirectoryJob() override;