diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-02-25 17:24:59 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-02-26 09:06:37 +0900 |
commit | 7c10807549b2a73527bd594789d0e5b9ab58c874 (patch) | |
tree | ed624b2af356ac0e148862a3cee736d9fd894268 /events/event.h | |
parent | a2f991555bec7b317606093e95ec2b5684b0005a (diff) | |
download | libquotient-7c10807549b2a73527bd594789d0e5b9ab58c874.tar.gz libquotient-7c10807549b2a73527bd594789d0e5b9ab58c874.zip |
TagEvent: m.tag events parsing
Using them in rooms and connection comes in the next commit.
Diffstat (limited to 'events/event.h')
-rw-r--r-- | events/event.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/events/event.h b/events/event.h index 1a1b994d..4bd08b55 100644 --- a/events/event.h +++ b/events/event.h @@ -45,7 +45,7 @@ namespace QMatrixClient enum class Type : quint16 { Unknown = 0, - Typing, Receipt, + Typing, Receipt, Tag, DirectChat, RoomEventBase = 0x1000, RoomMessage = RoomEventBase + 1, RoomEncryptedMessage, Redaction, @@ -63,6 +63,7 @@ namespace QMatrixClient virtual ~Event(); Type type() const { return _type; } + QString jsonType() const; bool isStateEvent() const { return (quint16(_type) & 0x1800) == 0x1800; @@ -76,7 +77,6 @@ namespace QMatrixClient // (and in most cases it will be a combination of other fields // instead of "content" field). - protected: const QJsonObject contentJson() const; private: |