aboutsummaryrefslogtreecommitdiff
path: root/jobs/roommessagesjob.h
diff options
context:
space:
mode:
Diffstat (limited to 'jobs/roommessagesjob.h')
-rw-r--r--jobs/roommessagesjob.h9
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();