aboutsummaryrefslogtreecommitdiff
path: root/events/event.h
diff options
context:
space:
mode:
authorKitsuneRal <KitsuneRal@users.noreply.github.com>2016-05-26 10:49:38 +0900
committerKitsuneRal <KitsuneRal@users.noreply.github.com>2016-05-26 10:49:38 +0900
commit408853a4f327978c990cd65b071e7c6496a0b95c (patch)
tree2487f1432c45829b152e7481077ad0fb08748aa6 /events/event.h
parent1cd8802c73ee3c0cc0095f8be30a9bbf3442c3ca (diff)
parentfab6c26770827ce2b8ed8f5d06b3677b75a19cec (diff)
downloadlibquotient-408853a4f327978c990cd65b071e7c6496a0b95c.tar.gz
libquotient-408853a4f327978c990cd65b071e7c6496a0b95c.zip
Merge pull request #7 from Fxrh/event-lists
Introducing EventList class + minor fix
Diffstat (limited to 'events/event.h')
-rw-r--r--events/event.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/events/event.h b/events/event.h
index 6a8d0e89..a009aa99 100644
--- a/events/event.h
+++ b/events/event.h
@@ -25,6 +25,8 @@
#include <QtCore/QDateTime>
#include <QtCore/QJsonObject>
+class QJsonArray;
+
namespace QMatrixClient
{
enum class EventType
@@ -56,6 +58,8 @@ namespace QMatrixClient
Private* d;
};
+ QList<Event*> eventListFromJson(const QJsonArray& contents);
+
/**
* Finds a place in the timeline where a new event/message could be inserted.
* @return an iterator to an item with the earliest timestamp after