aboutsummaryrefslogtreecommitdiff
path: root/events/event.h
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2017-09-26 20:57:28 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2017-10-02 08:20:40 +0900
commit79f52e3f6142afd48d30b842618ef0867072443b (patch)
tree5fb2699ed7d3ee449a6a2b6a754e810de962abcf /events/event.h
parentfaa395c5e3b148217073dc9d2953084d68d685bd (diff)
downloadlibquotient-79f52e3f6142afd48d30b842618ef0867072443b.tar.gz
libquotient-79f52e3f6142afd48d30b842618ef0867072443b.zip
Introduce EncryptionEvent class
This allows to detect if a room has been encrypted (no room state, just an event as of yet). Closes #84.
Diffstat (limited to 'events/event.h')
-rw-r--r--events/event.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/events/event.h b/events/event.h
index 7db14100..ec993522 100644
--- a/events/event.h
+++ b/events/event.h
@@ -34,7 +34,8 @@ namespace QMatrixClient
enum class Type
{
RoomMessage, RoomName, RoomAliases, RoomCanonicalAlias,
- RoomMember, RoomTopic, Typing, Receipt, Unknown
+ RoomMember, RoomTopic, RoomEncryption, RoomEncryptedMessage,
+ Typing, Receipt, Unknown
};
explicit Event(Type type) : _type(type) { }
@@ -94,6 +95,7 @@ namespace QMatrixClient
return evs;
}
+ /** This class corresponds to m.room.* events */
class RoomEvent : public Event
{
Q_GADGET