aboutsummaryrefslogtreecommitdiff
path: root/jobs/postmessagejob.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'jobs/postmessagejob.cpp')
-rw-r--r--jobs/postmessagejob.cpp18
1 files changed, 7 insertions, 11 deletions
diff --git a/jobs/postmessagejob.cpp b/jobs/postmessagejob.cpp
index 9a102325..df30614c 100644
--- a/jobs/postmessagejob.cpp
+++ b/jobs/postmessagejob.cpp
@@ -17,33 +17,29 @@
*/
#include "postmessagejob.h"
-#include "../connectiondata.h"
#include "util.h"
-#include <QtNetwork/QNetworkReply>
-
using namespace QMatrixClient;
class PostMessageJob::Private
{
public:
- Private() {}
-
QString eventId; // unused yet
};
-PostMessageJob::PostMessageJob(ConnectionData* connection, const QString& roomId,
- const QString& type, const QString& plainText)
+PostMessageJob::PostMessageJob(const ConnectionData* connection,
+ const QString& roomId, const QString& type,
+ const QString& plainText)
: BaseJob(connection, HttpVerb::Post, "PostMessageJob",
- QString("_matrix/client/r0/rooms/%1/send/m.room.message").arg(roomId),
+ QStringLiteral("_matrix/client/r0/rooms/%1/send/m.room.message").arg(roomId),
Query(),
Data({ { "msgtype", type }, { "body", plainText } }) )
, d(new Private)
{ }
-PostMessageJob::PostMessageJob(ConnectionData* connection, const QString& roomId,
- const QString& type, const QString& plainText,
- const QString& richText)
+PostMessageJob::PostMessageJob(const ConnectionData* connection,
+ const QString& roomId, const QString& type,
+ const QString& plainText, const QString& richText)
: BaseJob(connection, HttpVerb::Post, "PostMessageJob",
QStringLiteral("_matrix/client/r0/rooms/%1/send/m.room.message").arg(roomId),
Query(),