Error Handling and some fixes

This commit is contained in:
CH Chethan Reddy 2020-06-26 15:10:37 +05:30
parent 00e36b6068
commit ffa61095b8
5 changed files with 144 additions and 102 deletions

View file

@ -28,6 +28,16 @@ public:
Emoji
};
Q_ENUM(Method)
enum Error
{
UnknownMethod,
MismatchedCommitment,
MismatchedSAS,
KeyMismatch,
Timeout,
User
};
Q_ENUM(Error)
DeviceVerificationFlow(QObject *parent = nullptr);
QString getTransactionId();
@ -56,7 +66,7 @@ public slots:
//! starts the verification flow
void startVerificationRequest();
//! cancels a verification flow
void cancelVerification();
void cancelVerification(DeviceVerificationFlow::Error error_code);
//! sends the verification key
void sendVerificationKey();
//! sends the mac of the keys