aboutsummaryrefslogtreecommitdiff
path: root/jobs/postmessagejob.h
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2017-03-08 20:22:44 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2017-03-08 20:30:27 +0900
commitde9448a65655451e1310947955dd6b341479dc23 (patch)
tree0879b1af22932751da48ef5b58d4e188a6a9f4ad /jobs/postmessagejob.h
parentba5ca3c88a20926f2be06872f530d9da12d5a062 (diff)
downloadlibquotient-de9448a65655451e1310947955dd6b341479dc23.tar.gz
libquotient-de9448a65655451e1310947955dd6b341479dc23.zip
Connection::callApi<>, a factory for all API call jobs
This call (intended to only be used within the lib) creates a job object of the passed type and passes a ConnectionData pointer to its constructor. This allows to avoid making a switchboard of methods on Connection for the whole API, leaving only those that naturally belong there - e.g. joinRoom() or sync() - and moving, e.g., postMessage() to where it belongs - Room. PostMessageJob and RoomMessagesJob were updated along the way, to unbind from the Room class (which they really don't and won't need).
Diffstat (limited to 'jobs/postmessagejob.h')
-rw-r--r--jobs/postmessagejob.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/jobs/postmessagejob.h b/jobs/postmessagejob.h
index 2e1989fd..eba3da51 100644
--- a/jobs/postmessagejob.h
+++ b/jobs/postmessagejob.h
@@ -22,11 +22,11 @@
namespace QMatrixClient
{
- class Room;
class PostMessageJob: public BaseJob
{
public:
- PostMessageJob(ConnectionData* connection, Room* room, QString type, QString message);
+ PostMessageJob(ConnectionData* connection, QString roomId,
+ QString type, QString message);
virtual ~PostMessageJob();
//bool success();