diff options
author | KitsuneRal <KitsuneRal@users.noreply.github.com> | 2016-06-01 20:58:25 +0900 |
---|---|---|
committer | KitsuneRal <KitsuneRal@users.noreply.github.com> | 2016-06-01 20:58:25 +0900 |
commit | 43ecbf3135687b2e5a5a604a902f992139cce428 (patch) | |
tree | d717d85e8b5d340050c317418e26addf1766a826 /jobs/postmessagejob.cpp | |
parent | d5df4568d34487aea519ae97dd1666927dcfb62b (diff) | |
parent | 46050cd59a7af8cc7d616fab1a80db95dc8b5b35 (diff) | |
download | libquotient-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.cpp | 8 |
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 +} |