1 files changed, 14 insertions, 2 deletions
diff --git a/src/DeviceVerificationFlow.h b/src/DeviceVerificationFlow.h
index 71c40cd5..c7701196 100644
--- a/src/DeviceVerificationFlow.h
+++ b/src/DeviceVerificationFlow.h
@@ -1,5 +1,6 @@
#pragma once
+#include <MatrixClient.h>
#include <QObject>
class QTimer;
@@ -8,6 +9,9 @@ class DeviceVerificationFlow : public QObject
{
Q_OBJECT
// Q_CLASSINFO("RegisterEnumClassesUnscoped", "false")
+ Q_PROPERTY(QString userId READ getUserId WRITE setUserId)
+ Q_PROPERTY(QString deviceId READ getDeviceId WRITE setDeviceId)
+ Q_PROPERTY(Method method READ getMethod WRITE setMethod)
public:
enum Method
@@ -18,6 +22,12 @@ public:
Q_ENUM(Method)
DeviceVerificationFlow(QObject *parent = nullptr);
+ QString getUserId();
+ QString getDeviceId();
+ Method getMethod();
+ void setUserId(QString userID);
+ void setDeviceId(QString deviceID);
+ void setMethod(Method method_);
public slots:
//! sends a verification request
@@ -38,9 +48,11 @@ signals:
void verificationCanceled();
private:
- //! generates a unique transaction id
- std::string generate_txn_id();
+ QString userId;
+ QString deviceId;
+ Method method;
QTimer *timeout = nullptr;
std::string transaction_id;
+ mtx::identifiers::User toClient;
};
|