aboutsummaryrefslogtreecommitdiff
path: root/lib/csapi/presence.h
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2020-04-17 07:42:13 +0200
committerKitsune Ral <Kitsune-Ral@users.sf.net>2020-04-17 07:49:41 +0200
commit7036ed0dcb137cb5cbb6b426dd338c5e2e4c6424 (patch)
treefa9e37d8874303bf56d5381b0844738bd516a79b /lib/csapi/presence.h
parent906699cc525e9e0be231a58cabffc31ad1f5193c (diff)
downloadlibquotient-7036ed0dcb137cb5cbb6b426dd338c5e2e4c6424.tar.gz
libquotient-7036ed0dcb137cb5cbb6b426dd338c5e2e4c6424.zip
Regenerate API files using new GTAD and refreshed templates
No functional changes.
Diffstat (limited to 'lib/csapi/presence.h')
-rw-r--r--lib/csapi/presence.h34
1 files changed, 17 insertions, 17 deletions
diff --git a/lib/csapi/presence.h b/lib/csapi/presence.h
index c5ecb987..21e57603 100644
--- a/lib/csapi/presence.h
+++ b/lib/csapi/presence.h
@@ -8,22 +8,21 @@
#include "jobs/basejob.h"
-namespace Quotient
-{
+namespace Quotient {
// Operations
-/// Update this user's presence state.
-/*!
+/*! \brief Update this user's presence state.
+ *
* This API sets the given user's presence state. When setting the status,
* the activity time is updated to reflect that activity; the client does
* not need to specify the ``last_active_ago`` field. You cannot set the
* presence state of another user.
*/
-class SetPresenceJob : public BaseJob
-{
+class SetPresenceJob : public BaseJob {
public:
- /*! Update this user's presence state.
+ /*! \brief Update this user's presence state.
+ *
* \param userId
* The user whose presence state to update.
* \param presence
@@ -35,38 +34,39 @@ public:
const QString& statusMsg = {});
};
-/// Get this user's presence state.
-/*!
+/*! \brief Get this user's presence state.
+ *
* Get the given user's presence state.
*/
-class GetPresenceJob : public BaseJob
-{
+class GetPresenceJob : public BaseJob {
public:
- /*! Get this user's presence state.
+ /*! \brief Get this user's presence state.
+ *
* \param userId
* The user whose presence state to get.
*/
explicit GetPresenceJob(const QString& userId);
- /*! Construct a URL without creating a full-fledged job object
+ /*! \brief Construct a URL without creating a full-fledged job object
*
- * This function can be used when a URL for
- * GetPresenceJob is necessary but the job
- * itself isn't.
+ * This function can be used when a URL for GetPresenceJob
+ * is necessary but the job itself isn't.
*/
static QUrl makeRequestUrl(QUrl baseUrl, const QString& userId);
-
~GetPresenceJob() override;
// Result properties
/// This user's presence.
const QString& presence() const;
+
/// The length of time in milliseconds since an action was performed
/// by this user.
Omittable<int> lastActiveAgo() const;
+
/// The state message for this user if one was set.
const QString& statusMsg() const;
+
/// Whether the user is currently active
Omittable<bool> currentlyActive() const;