7 #include <Quotient/e2ee/e2ee_common.h>
9 struct OlmOutboundGroupSession;
18 QOlmOutboundGroupSession();
21 QByteArray pickle(
const PicklingKey &key)
const;
24 static QOlmExpected<QOlmOutboundGroupSession> unpickle(QByteArray&& pickled,
const PicklingKey& key);
27 QByteArray encrypt(
const QByteArray& plaintext)
const;
33 uint32_t sessionMessageIndex()
const;
36 QByteArray sessionId()
const;
42 QByteArray sessionKey()
const;
44 int messageCount()
const;
45 void setMessageCount(
int messageCount);
47 QDateTime creationTime()
const;
48 void setCreationTime(
const QDateTime& creationTime);
50 OlmErrorCode lastErrorCode()
const;
51 const char* lastError()
const;
54 CStructPtr<OlmOutboundGroupSession> m_groupSession;
55 int m_messageCount = 0;
56 QDateTime m_creationTime = QDateTime::currentDateTime();
57 OlmOutboundGroupSession* olmData = m_groupSession.get();