aboutsummaryrefslogtreecommitdiff
path: root/jobs/postmessagejob.cpp
diff options
context:
space:
mode:
authorKitsuneRal <KitsuneRal@users.noreply.github.com>2016-06-01 20:58:25 +0900
committerKitsuneRal <KitsuneRal@users.noreply.github.com>2016-06-01 20:58:25 +0900
commit43ecbf3135687b2e5a5a604a902f992139cce428 (patch)
treed717d85e8b5d340050c317418e26addf1766a826 /jobs/postmessagejob.cpp
parentd5df4568d34487aea519ae97dd1666927dcfb62b (diff)
parent46050cd59a7af8cc7d616fab1a80db95dc8b5b35 (diff)
downloadlibquotient-43ecbf3135687b2e5a5a604a902f992139cce428.tar.gz
libquotient-43ecbf3135687b2e5a5a604a902f992139cce428.zip
Merge pull request #9 from Fxrh/code-tweaks
Code tweaks
Diffstat (limited to 'jobs/postmessagejob.cpp')
-rw-r--r--jobs/postmessagejob.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/jobs/postmessagejob.cpp b/jobs/postmessagejob.cpp
index 67c79669..cf9b94fd 100644
--- a/jobs/postmessagejob.cpp
+++ b/jobs/postmessagejob.cpp
@@ -35,7 +35,7 @@ class PostMessageJob::Private
};
PostMessageJob::PostMessageJob(ConnectionData* connection, Room* room, QString type, QString message)
- : BaseJob(connection, JobHttpType::PostJob)
+ : BaseJob(connection, JobHttpType::PostJob, "PostMessageJob")
, d(new Private)
{
d->type = type;
@@ -48,12 +48,12 @@ PostMessageJob::~PostMessageJob()
delete d;
}
-QString PostMessageJob::apiPath()
+QString PostMessageJob::apiPath() const
{
return QString("_matrix/client/r0/rooms/%1/send/m.room.message").arg(d->room->id());
}
-QJsonObject PostMessageJob::data()
+QJsonObject PostMessageJob::data() const
{
QJsonObject json;
json.insert("msgtype", d->type);
@@ -71,4 +71,4 @@ void PostMessageJob::parseJson(const QJsonDocument& data)
return;
}
emitResult();
-} \ No newline at end of file
+}