aboutsummaryrefslogtreecommitdiff
path: root/lib/events/encryptionevent.h
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2020-11-15 21:51:51 +0100
committerKitsune Ral <Kitsune-Ral@users.sf.net>2020-11-15 21:51:51 +0100
commit52cab4b11bdd48cd87e04c01b12c698ec4145e6d (patch)
treef8b44dd9c585606b4ac229c396ef914d5950fd47 /lib/events/encryptionevent.h
parent5b1bfc102fccd4e57893b34bf2b0a14ba6a9f577 (diff)
downloadlibquotient-52cab4b11bdd48cd87e04c01b12c698ec4145e6d.tar.gz
libquotient-52cab4b11bdd48cd87e04c01b12c698ec4145e6d.zip
Cleanup across event classes
In particular: removed unnecessary #includes, deprecated and no more used constructs, replaced stored members with dynamic generation from JSON (TypingEvent and, especially promising for performance, ReceiptEvent)
Diffstat (limited to 'lib/events/encryptionevent.h')
-rw-r--r--lib/events/encryptionevent.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/events/encryptionevent.h b/lib/events/encryptionevent.h
index cbd3ba4a..cbb6d786 100644
--- a/lib/events/encryptionevent.h
+++ b/lib/events/encryptionevent.h
@@ -48,6 +48,7 @@ public:
DEFINE_EVENT_TYPEID("m.room.encryption", EncryptionEvent)
using EncryptionType = EncryptionEventContent::EncryptionType;
+ Q_ENUM(EncryptionType)
explicit EncryptionEvent(const QJsonObject& obj = {}) // TODO: apropriate
// default value
@@ -64,9 +65,6 @@ public:
QString algorithm() const { return content().algorithm; }
int rotationPeriodMs() const { return content().rotationPeriodMs; }
int rotationPeriodMsgs() const { return content().rotationPeriodMsgs; }
-
-private:
- Q_ENUM(EncryptionType)
};
REGISTER_EVENT_TYPE(EncryptionEvent)