aboutsummaryrefslogtreecommitdiff
path: root/lib/room.h
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2019-08-01 09:55:00 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2019-08-01 09:55:00 +0900
commit405271605f334ad09c7dc638fc5d6ef11849cada (patch)
treeab955483142d8b8b1ca6018a9b8533b147b1211f /lib/room.h
parent1ea94b918569dd26452f285c408e605f9dc15343 (diff)
parentf5083ee71e6fad9f28c4b835899f3ad574b426f1 (diff)
downloadlibquotient-405271605f334ad09c7dc638fc5d6ef11849cada.tar.gz
libquotient-405271605f334ad09c7dc638fc5d6ef11849cada.zip
Merge branch 'master' into kitsune-relations
Unified *Key -> *KeyL identifiers in roommessageevent.cpp along the way.
Diffstat (limited to 'lib/room.h')
-rw-r--r--lib/room.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/room.h b/lib/room.h
index 470bb7f9..12fb012c 100644
--- a/lib/room.h
+++ b/lib/room.h
@@ -24,8 +24,10 @@
#include "events/accountdataevents.h"
#include "eventitem.h"
#include "joinstate.h"
+#include "events/encryptedevent.h"
#include <QtGui/QImage>
+#include <QtCore/QJsonObject>
#include <memory>
#include <deque>
@@ -180,6 +182,10 @@ namespace QMatrixClient
int memberCount() const;
int timelineSize() const;
bool usesEncryption() const;
+ const RoomEvent *decryptMessage(EncryptedEvent* encryptedEvent) const;
+ const QString decryptMessage(QJsonObject personalCipherObject, QByteArray senderKey) const;
+ const QString sessionKey(const QString &senderKey, const QString &deviceId, const QString &sessionId) const;
+ const QString decryptMessage(QByteArray cipher, const QString& senderKey, const QString& deviceId, const QString& sessionId) const;
int joinedCount() const;
int invitedCount() const;
int totalMemberCount() const;