diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2017-03-09 13:13:48 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-09 13:13:48 +0900 |
commit | af8f95fa0446bf377321d9f285b0e55c08fd91da (patch) | |
tree | cdd07d0df71e2f7baa87d1be73fb4e3c3473d3eb /jobs/roommessagesjob.h | |
parent | ba5ca3c88a20926f2be06872f530d9da12d5a062 (diff) | |
parent | 3524342faacd12b00fa4c3a3ebe6a68782975eac (diff) | |
download | libquotient-af8f95fa0446bf377321d9f285b0e55c08fd91da.tar.gz libquotient-af8f95fa0446bf377321d9f285b0e55c08fd91da.zip |
Merge pull request #54 from Fxrh/kitsune-call-server
Connection::callApi + Room::getPreviousMessages(limit)
Diffstat (limited to 'jobs/roommessagesjob.h')
-rw-r--r-- | jobs/roommessagesjob.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/jobs/roommessagesjob.h b/jobs/roommessagesjob.h index fd6a131d..af7d65df 100644 --- a/jobs/roommessagesjob.h +++ b/jobs/roommessagesjob.h @@ -24,15 +24,14 @@ namespace QMatrixClient { - class Room; - - enum class FetchDirectory { Backwards, Forward }; + enum class FetchDirection { Backward, Forward }; class RoomMessagesJob: public BaseJob { public: - RoomMessagesJob(ConnectionData* data, Room* room, QString from, - FetchDirectory dir = FetchDirectory::Backwards, int limit=10); + RoomMessagesJob(ConnectionData* data, QString roomId, + QString from, int limit = 10, + FetchDirection dir = FetchDirection::Backward); virtual ~RoomMessagesJob(); Events releaseEvents(); |