23 #ifndef _TelepathyQt_captcha_authentication_h_HEADER_GUARD_ 24 #define _TelepathyQt_captcha_authentication_h_HEADER_GUARD_ 26 #ifndef IN_TP_QT_HEADER 27 #error IN_TP_QT_HEADER 30 #include <TelepathyQt/Channel> 31 #include <TelepathyQt/Connection> 33 #include <TelepathyQt/Global> 34 #include <TelepathyQt/SharedPtr> 39 class PendingCaptchaAnswer;
40 class PendingCaptchaCancel;
41 class PendingCaptchas;
52 AudioRecognitionChallenge = 2,
53 PictureQuestionChallenge = 4,
54 PictureRecognitionChallenge = 8,
55 TextQuestionChallenge = 16,
56 SpeechQuestionChallenge = 32,
57 SpeechRecognitionChallenge = 64,
58 VideoQuestionChallenge = 128,
59 VideoRecognitionChallenge = 256,
60 UnknownChallenge = 32768
62 Q_DECLARE_FLAGS(ChallengeTypes, ChallengeType)
66 ChannelPtr channel()
const;
68 bool canRetry()
const;
71 QString error()
const;
75 ChallengeTypes preferredTypes = ~ChallengeTypes(NoChallenge));
84 const QString &message = QString());
87 TP_QT_NO_EXPORT
void onPropertiesChanged(
const QVariantMap &changedProperties,
88 const QStringList &invalidatedProperties);
96 friend struct Private;
102 Q_DECLARE_OPERATORS_FOR_FLAGS(Tp::CaptchaAuthentication::ChallengeTypes)
CaptchaCancelReason
Definition: build/TelepathyQt/_gen/constants.h:2985
ChallengeType
Definition: captcha-authentication.h:49
The CaptchaAuthentication class exposes CaptchaAuthentication's features for channels implementing it...
Definition: captcha-authentication.h:43
CaptchaStatus
Definition: build/TelepathyQt/_gen/constants.h:3025
Definition: build/TelepathyQt/_gen/types.h:585
The ServerAuthenticationChannel class is a base class for all ServerAuthentication types.
Definition: server-authentication-channel.h:35
The Object class provides an object with property notification.
Definition: object.h:39
Definition: abstract-adaptor.cpp:31
The PendingCaptchas class represents an asynchronous operation for retrieving a captcha challenge fro...
Definition: pending-captchas.h:41
The Connection::ErrorDetails class represents the details of a connection error.
Definition: connection.h:96
The PendingOperation class is a base class for pending asynchronous operations.
Definition: pending-operation.h:45