aboutsummaryrefslogtreecommitdiff
path: root/lib/csapi/room_send.h
diff options
context:
space:
mode:
authorMarc Deop <marc@marcdeop.com>2019-03-02 12:26:57 +0100
committerMarc Deop <marc@marcdeop.com>2019-03-02 12:26:57 +0100
commitaacc4bcb4a487871daae6717f77605aaba444341 (patch)
tree4f50b6874821667ccb6b91c017e5d041e3846112 /lib/csapi/room_send.h
parentc971b924cd62822ed6fb1a0291c483ae73a3ecda (diff)
downloadlibquotient-aacc4bcb4a487871daae6717f77605aaba444341.tar.gz
libquotient-aacc4bcb4a487871daae6717f77605aaba444341.zip
style: apply .clang-format to all .cpp and .h files
Diffstat (limited to 'lib/csapi/room_send.h')
-rw-r--r--lib/csapi/room_send.h63
1 files changed, 32 insertions, 31 deletions
diff --git a/lib/csapi/room_send.h b/lib/csapi/room_send.h
index 85c298e0..38e246e1 100644
--- a/lib/csapi/room_send.h
+++ b/lib/csapi/room_send.h
@@ -8,8 +8,7 @@
#include <QtCore/QJsonObject>
-namespace QMatrixClient
-{
+namespace QMatrixClient {
// Operations
/// Send a message event to the given room.
@@ -17,44 +16,46 @@ namespace QMatrixClient
/// This endpoint is used to send a message event to a room. Message events
/// allow access to historical events and pagination, making them suited
/// for "once-off" activity in a room.
- ///
+ ///
/// The body of the request should be the content object of the event; the
/// fields in this object will vary depending on the type of event. See
/// `Room Events`_ for the m. event specification.
class SendMessageJob : public BaseJob
{
public:
- /*! Send a message event to the given room.
- * \param roomId
- * The room to send the event to.
- * \param eventType
- * The type of event to send.
- * \param txnId
- * The transaction ID for this event. Clients should generate an
- * ID unique across requests with the same access token; it will be
- * used by the server to ensure idempotency of requests.
- * \param body
- * This endpoint is used to send a message event to a room. Message events
- * allow access to historical events and pagination, making them suited
- * for "once-off" activity in a room.
- *
- * The body of the request should be the content object of the event; the
- * fields in this object will vary depending on the type of event. See
- * `Room Events`_ for the m. event specification.
- */
- explicit SendMessageJob(const QString& roomId, const QString& eventType, const QString& txnId, const QJsonObject& body = {});
- ~SendMessageJob() override;
-
- // Result properties
-
- /// A unique identifier for the event.
- const QString& eventId() const;
+ /*! Send a message event to the given room.
+ * \param roomId
+ * The room to send the event to.
+ * \param eventType
+ * The type of event to send.
+ * \param txnId
+ * The transaction ID for this event. Clients should generate an
+ * ID unique across requests with the same access token; it will be
+ * used by the server to ensure idempotency of requests.
+ * \param body
+ * This endpoint is used to send a message event to a room. Message
+ * events allow access to historical events and pagination, making them
+ * suited for "once-off" activity in a room.
+ *
+ * The body of the request should be the content object of the event;
+ * the fields in this object will vary depending on the type of event.
+ * See `Room Events`_ for the m. event specification.
+ */
+ explicit SendMessageJob(const QString& roomId, const QString& eventType,
+ const QString& txnId,
+ const QJsonObject& body = {});
+ ~SendMessageJob() override;
+
+ // Result properties
+
+ /// A unique identifier for the event.
+ const QString& eventId() const;
protected:
- Status parseJson(const QJsonDocument& data) override;
+ Status parseJson(const QJsonDocument& data) override;
private:
- class Private;
- QScopedPointer<Private> d;
+ class Private;
+ QScopedPointer<Private> d;
};
} // namespace QMatrixClient