8 #include "../connection.h"
10 #include <QtCore/QObject>
11 #include <QtCore/QPointer>
17 Q_PROPERTY(Quotient::Connection* connection READ connection WRITE setConnection NOTIFY connectionChanged)
25 InvalidSignatureError,
26 UnsupportedAlgorithmError,
30 using QObject::QObject;
33 Q_INVOKABLE
void unlockSSSSWithPassphrase(
const QString& passphrase);
36 Q_INVOKABLE
void unlockSSSSFromCrossSigning();
39 Q_INVOKABLE
void unlockSSSSFromSecurityKey(
const QString& encodedKey);
41 Connection* connection()
const;
42 void setConnection(Connection* connection);
45 void keyBackupUnlocked();
46 void error(Error error);
47 void connectionChanged();
53 QPointer<Connection> m_connection;
56 QByteArray decryptKey(event_type_t keyType,
const QString& defaultKey, key_view_t decryptionKey);
58 void loadMegolmBackup(
const QByteArray& megolmDecryptionKey);
60 void unlockAndLoad(
const UnlockData& unlockData, key_view_t decryptingKey);