aboutsummaryrefslogtreecommitdiff
path: root/lib/events/encryptionevent.h
diff options
context:
space:
mode:
authorAlexey Rusakov <Kitsune-Ral@users.sf.net>2022-05-08 19:08:57 +0200
committerGitHub <noreply@github.com>2022-05-08 19:08:57 +0200
commit3458fdf7b416fe64b82ec9b99553c7b2aa299e4c (patch)
treeb3b1bce3ebf0631597aa6d8451e62d198a42c2be /lib/events/encryptionevent.h
parent272cb01b05529971ea38e09bf75d8d8f194a9dd8 (diff)
parentc42d268db0b40cdba06381fc64a6966a72c90709 (diff)
downloadlibquotient-3458fdf7b416fe64b82ec9b99553c7b2aa299e4c.tar.gz
libquotient-3458fdf7b416fe64b82ec9b99553c7b2aa299e4c.zip
Merge #548: Streamline usage of event types, part 1
Diffstat (limited to 'lib/events/encryptionevent.h')
-rw-r--r--lib/events/encryptionevent.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/events/encryptionevent.h b/lib/events/encryptionevent.h
index 124ced33..5b5420ec 100644
--- a/lib/events/encryptionevent.h
+++ b/lib/events/encryptionevent.h
@@ -4,12 +4,11 @@
#pragma once
-#include "eventcontent.h"
#include "stateevent.h"
#include "quotient_common.h"
namespace Quotient {
-class QUOTIENT_API EncryptionEventContent : public EventContent::Base {
+class QUOTIENT_API EncryptionEventContent {
public:
enum EncryptionType : size_t { MegolmV1AesSha2 = 0, Undefined };
@@ -20,13 +19,12 @@ public:
{}
explicit EncryptionEventContent(const QJsonObject& json);
+ QJsonObject toJson() const;
+
EncryptionType encryption;
QString algorithm;
int rotationPeriodMs;
int rotationPeriodMsgs;
-
-protected:
- void fillJson(QJsonObject* o) const override;
};
using EncryptionType = EncryptionEventContent::EncryptionType;