aboutsummaryrefslogtreecommitdiff
path: root/jobs/syncjob.h
diff options
context:
space:
mode:
authorKitsuneRal <Kitsune-Ral@users.sf.net>2016-10-17 07:25:30 +0900
committerGitHub <noreply@github.com>2016-10-17 07:25:30 +0900
commitb44ad3573d21c456014d7983669acc31dd6eebdf (patch)
tree9281918022181ec6eb3b28b0fe6dcbef572233e1 /jobs/syncjob.h
parent6536124821c1df791a69a58de21a71322d9363f6 (diff)
parentf2cfd4691d4830f57ebaea08b9aa9a4db3aad537 (diff)
downloadlibquotient-b44ad3573d21c456014d7983669acc31dd6eebdf.tar.gz
libquotient-b44ad3573d21c456014d7983669acc31dd6eebdf.zip
Merge pull request #43 from Fxrh/kitsune-request-params
Merged as amended.
Diffstat (limited to 'jobs/syncjob.h')
-rw-r--r--jobs/syncjob.h10
1 files changed, 2 insertions, 8 deletions
diff --git a/jobs/syncjob.h b/jobs/syncjob.h
index a9138a65..e7b23d16 100644
--- a/jobs/syncjob.h
+++ b/jobs/syncjob.h
@@ -99,20 +99,14 @@ namespace QMatrixClient
class SyncJob: public BaseJob
{
public:
- SyncJob(ConnectionData* connection, QString since=QString());
+ SyncJob(ConnectionData* connection, QString since = {}, QString filter = {},
+ int timeout = -1, QString presence = {});
virtual ~SyncJob();
- void setFilter(QString filter);
- void setFullState(bool full);
- void setPresence(QString presence);
- void setTimeout(int timeout);
-
SyncData& roomData();
QString nextBatch() const;
protected:
- QString apiPath() const override;
- QUrlQuery query() const override;
Status parseJson(const QJsonDocument& data) override;
private: