aboutsummaryrefslogtreecommitdiff
path: root/lib/room.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/room.h')
-rw-r--r--lib/room.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/room.h b/lib/room.h
index 0a0eb878..633d19dd 100644
--- a/lib/room.h
+++ b/lib/room.h
@@ -19,6 +19,7 @@
#pragma once
#include "jobs/syncjob.h"
+#include "csapi/message_pagination.h"
#include "events/roommessageevent.h"
#include "events/accountdataevents.h"
#include "eventitem.h"
@@ -95,6 +96,8 @@ namespace QMatrixClient
Q_PROPERTY(bool isFavourite READ isFavourite NOTIFY tagsChanged)
Q_PROPERTY(bool isLowPriority READ isLowPriority NOTIFY tagsChanged)
+ Q_PROPERTY(GetRoomEventsJob* eventsHistoryJob READ eventsHistoryJob NOTIFY eventsHistoryJobChanged)
+
public:
using Timeline = std::deque<TimelineItem>;
using PendingEvents = std::vector<PendingEventItem>;
@@ -126,6 +129,8 @@ namespace QMatrixClient
int timelineSize() const;
bool usesEncryption() const;
+ GetRoomEventsJob* eventsHistoryJob() const;
+
/**
* Returns a square room avatar with the given size and requests it
* from the network if needed
@@ -364,6 +369,7 @@ namespace QMatrixClient
void markAllMessagesAsRead();
signals:
+ void eventsHistoryJobChanged();
void aboutToAddHistoricalMessages(RoomEventsRange events);
void aboutToAddNewMessages(RoomEventsRange events);
void addedMessages(int fromIndex, int toIndex);