Error Handling and some fixes
This commit is contained in:
parent
00e36b6068
commit
ffa61095b8
5 changed files with 144 additions and 102 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue