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)