aboutsummaryrefslogtreecommitdiff
path: root/room.h
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2017-01-11 07:41:53 +0900
committerGitHub <noreply@github.com>2017-01-11 07:41:53 +0900
commitf37874c7e55239359d02b926a65cd62d17336522 (patch)
treec14ba3abd15c380dd6430240dba46c615fc5eee8 /room.h
parent78cfe3c102b686c71a1da5cbe91a2ae42dc03825 (diff)
parentfb4127da9db32e5e18b14beaaabbee7adf9cc334 (diff)
downloadlibquotient-f37874c7e55239359d02b926a65cd62d17336522.tar.gz
libquotient-f37874c7e55239359d02b926a65cd62d17336522.zip
Merge pull request #51 from Fxrh/kitsune-traceable-events
Make events traceable
Diffstat (limited to 'room.h')
-rw-r--r--room.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/room.h b/room.h
index afa6f0ef..f8db6384 100644
--- a/room.h
+++ b/room.h
@@ -26,6 +26,8 @@
#include "jobs/syncjob.h"
#include "joinstate.h"
+#include <deque>
+
namespace QMatrixClient
{
class Event;
@@ -38,7 +40,7 @@ namespace QMatrixClient
Q_OBJECT
Q_PROPERTY(QString readMarkerEventId READ readMarkerEventId WRITE markMessagesAsRead NOTIFY readMarkerPromoted)
public:
- using Timeline = Owning<Events>;
+ using Timeline = Owning< std::deque<Event*> >;
Room(Connection* connection, QString id);
virtual ~Room();
@@ -70,7 +72,6 @@ namespace QMatrixClient
Q_INVOKABLE void updateData(SyncRoomData& data );
Q_INVOKABLE void setJoinState( JoinState state );
- Q_INVOKABLE QString lastReadEvent(User* user) const;
QString readMarkerEventId() const;
/**
* @brief Mark the event with uptoEventId as read
@@ -140,7 +141,7 @@ namespace QMatrixClient
void addNewMessageEvents(const Events& events);
void addHistoricalMessageEvents(const Events& events);
- void setLastReadEvent(User* user, QString eventId);
+ void setLastReadEvent(User* user, Event* event);
};
class MemberSorter