aboutsummaryrefslogtreecommitdiff
path: root/jobs/syncjob.h
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2016-10-13 09:07:15 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2016-10-15 14:50:53 +0900
commit4943cbea505aacdd33bf93c3365588ba73785d4d (patch)
tree35cd89970af3ecbb953a8347117094999cd5f46d /jobs/syncjob.h
parent6536124821c1df791a69a58de21a71322d9363f6 (diff)
downloadlibquotient-4943cbea505aacdd33bf93c3365588ba73785d4d.tar.gz
libquotient-4943cbea505aacdd33bf93c3365588ba73785d4d.zip
BaseJob: Use saved parameters instead of overriding apiPath(), query() and data() in each job class
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..36aaf504 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 filter, int timeout,
+ QString since = {}, 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: