#include <keyverificationsession.h>
|
enum | State {
INCOMING
, WAITINGFORREADY
, READY
, WAITINGFORACCEPT
,
ACCEPTED
, WAITINGFORKEY
, WAITINGFORVERIFICATION
, WAITINGFORMAC
,
CANCELED
, DONE
} |
|
enum | Error {
NONE
, TIMEOUT
, REMOTE_TIMEOUT
, USER
,
REMOTE_USER
, UNEXPECTED_MESSAGE
, REMOTE_UNEXPECTED_MESSAGE
, UNKNOWN_TRANSACTION
,
REMOTE_UNKNOWN_TRANSACTION
, UNKNOWN_METHOD
, REMOTE_UNKNOWN_METHOD
, KEY_MISMATCH
,
REMOTE_KEY_MISMATCH
, USER_MISMATCH
, REMOTE_USER_MISMATCH
, INVALID_MESSAGE
,
REMOTE_INVALID_MESSAGE
, SESSION_ACCEPTED
, REMOTE_SESSION_ACCEPTED
, MISMATCHED_COMMITMENT
,
REMOTE_MISMATCHED_COMMITMENT
, MISMATCHED_SAS
, REMOTE_MISMATCHED_SAS
} |
|
A key verification session. Listen for incoming sessions by connecting to Connection::newKeyVerificationSession. Start a new session using Connection::startKeyVerificationSession. The object is delete after finished is emitted.
Definition at line 34 of file keyverificationsession.h.
◆ Error
Enumerator |
---|
NONE | |
TIMEOUT | |
REMOTE_TIMEOUT | |
USER | |
REMOTE_USER | |
UNEXPECTED_MESSAGE | |
REMOTE_UNEXPECTED_MESSAGE | |
UNKNOWN_TRANSACTION | |
REMOTE_UNKNOWN_TRANSACTION | |
UNKNOWN_METHOD | |
REMOTE_UNKNOWN_METHOD | |
KEY_MISMATCH | |
REMOTE_KEY_MISMATCH | |
USER_MISMATCH | |
REMOTE_USER_MISMATCH | |
INVALID_MESSAGE | |
REMOTE_INVALID_MESSAGE | |
SESSION_ACCEPTED | |
REMOTE_SESSION_ACCEPTED | |
MISMATCHED_COMMITMENT | |
REMOTE_MISMATCHED_COMMITMENT | |
MISMATCHED_SAS | |
REMOTE_MISMATCHED_SAS | |
Definition at line 57 of file keyverificationsession.h.
◆ State
Enumerator |
---|
INCOMING | There is a request for verification incoming
|
WAITINGFORREADY | We sent a request for verification and are waiting for ready.
|
READY | Either party sent a ready as a response to a request; the user selects a method
|
WAITINGFORACCEPT | We sent a start and are waiting for an accept.
|
ACCEPTED | The other party sent an accept and is waiting for a key.
|
WAITINGFORKEY | We're waiting for a key
|
WAITINGFORVERIFICATION | We're waiting for the user to verify the emojis.
|
WAITINGFORMAC | We're waiting for the mac.
|
CANCELED | The session has been canceled.
|
DONE | The verification is done.
|
Definition at line 39 of file keyverificationsession.h.
◆ KeyVerificationSession() [1/4]
◆ KeyVerificationSession() [2/4]
Quotient::KeyVerificationSession::KeyVerificationSession |
( |
QString |
userId, |
|
|
QString |
deviceId, |
|
|
Connection * |
connection |
|
) |
| |
◆ KeyVerificationSession() [3/4]
Quotient::KeyVerificationSession::KeyVerificationSession |
( |
const RoomMessageEvent * |
event, |
|
|
Room * |
room |
|
) |
| |
◆ KeyVerificationSession() [4/4]
Quotient::KeyVerificationSession::KeyVerificationSession |
( |
Room * |
room | ) |
|
|
explicit |
◆ cancelVerification
void Quotient::KeyVerificationSession::cancelVerification |
( |
Error |
error | ) |
|
|
slot |
◆ error()
Error Quotient::KeyVerificationSession::error |
( |
| ) |
const |
◆ errorChanged
void Quotient::KeyVerificationSession::errorChanged |
( |
| ) |
|
|
signal |
◆ finished
void Quotient::KeyVerificationSession::finished |
( |
| ) |
|
|
signal |
◆ handleEvent()
◆ keyReceived
void Quotient::KeyVerificationSession::keyReceived |
( |
| ) |
|
|
signal |
◆ remoteDeviceId()
QString Quotient::KeyVerificationSession::remoteDeviceId |
( |
| ) |
const |
◆ sasEmojis()
QVector<EmojiEntry> Quotient::KeyVerificationSession::sasEmojis |
( |
| ) |
const |
◆ sasEmojisChanged
void Quotient::KeyVerificationSession::sasEmojisChanged |
( |
| ) |
|
|
signal |
◆ sendDone
void Quotient::KeyVerificationSession::sendDone |
( |
| ) |
|
|
slot |
◆ sendKey
void Quotient::KeyVerificationSession::sendKey |
( |
| ) |
|
|
slot |
◆ sendMac
void Quotient::KeyVerificationSession::sendMac |
( |
| ) |
|
|
slot |
◆ sendReady
void Quotient::KeyVerificationSession::sendReady |
( |
| ) |
|
|
slot |
◆ sendRequest
void Quotient::KeyVerificationSession::sendRequest |
( |
| ) |
|
|
slot |
◆ sendStartSas
void Quotient::KeyVerificationSession::sendStartSas |
( |
| ) |
|
|
slot |
◆ setRequestEventId()
void Quotient::KeyVerificationSession::setRequestEventId |
( |
const QString & |
eventId | ) |
|
◆ state()
State Quotient::KeyVerificationSession::state |
( |
| ) |
const |
◆ stateChanged
void Quotient::KeyVerificationSession::stateChanged |
( |
| ) |
|
|
signal |
◆ transactionId()
QString Quotient::KeyVerificationSession::transactionId |
( |
| ) |
const |
◆ userVerification()
bool Quotient::KeyVerificationSession::userVerification |
( |
| ) |
const |
◆ error
Error Quotient::KeyVerificationSession::error |
|
read |
◆ remoteDeviceId
QString Quotient::KeyVerificationSession::remoteDeviceId |
◆ remoteUserId
QString Quotient::KeyVerificationSession::remoteUserId |
◆ sasEmojis
QVector<EmojiEntry> Quotient::KeyVerificationSession::sasEmojis |
|
read |
◆ state
State Quotient::KeyVerificationSession::state |
|
read |
◆ userVerification
bool Quotient::KeyVerificationSession::userVerification |
|
read |
The documentation for this class was generated from the following file: