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/roommessagesjob.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/roommessagesjob.h')
-rw-r--r-- | jobs/roommessagesjob.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/jobs/roommessagesjob.h b/jobs/roommessagesjob.h index 9bedcad9..227ffac2 100644 --- a/jobs/roommessagesjob.h +++ b/jobs/roommessagesjob.h @@ -32,15 +32,14 @@ namespace QMatrixClient class RoomMessagesJob: public BaseJob { public: - RoomMessagesJob(ConnectionData* data, Room* room, QString from, FetchDirectory dir = FetchDirectory::Backwards, int limit=10); + RoomMessagesJob(ConnectionData* data, Room* room, QString from, + FetchDirectory dir = FetchDirectory::Backwards, int limit=10); virtual ~RoomMessagesJob(); Events events(); QString end(); protected: - QString apiPath() const override; - QUrlQuery query() const override; Status parseJson(const QJsonDocument& data) override; private: |