diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2016-10-13 09:07:15 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2016-10-15 14:50:53 +0900 |
commit | 4943cbea505aacdd33bf93c3365588ba73785d4d (patch) | |
tree | 35cd89970af3ecbb953a8347117094999cd5f46d /jobs/syncjob.h | |
parent | 6536124821c1df791a69a58de21a71322d9363f6 (diff) | |
download | libquotient-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.h | 10 |
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: |