Home · Modules · All Classes · All Namespaces
pending-captchas.h
1 
23 #ifndef _TelepathyQt_pending_captcha_h_HEADER_GUARD_
24 #define _TelepathyQt_pending_captcha_h_HEADER_GUARD_
25 
26 #ifndef IN_TP_QT_HEADER
27 #error IN_TP_QT_HEADER
28 #endif
29 
30 #include <TelepathyQt/PendingOperation>
31 
32 #include <TelepathyQt/CaptchaAuthentication>
33 
34 #include <QPair>
35 
36 namespace Tp
37 {
38 
39 class Captcha;
40 
41 class TP_QT_EXPORT PendingCaptchas : public PendingOperation
42 {
43  Q_OBJECT
44  Q_DISABLE_COPY(PendingCaptchas)
45 
46 public:
47  virtual ~PendingCaptchas();
48 
49  Captcha captcha() const;
50  QList<Captcha> captchaList() const;
51  bool requiresMultipleCaptchas() const;
52 
53 private Q_SLOTS:
54  TP_QT_NO_EXPORT void onChannelInvalidated(Tp::DBusProxy *proxy,
55  const QString &errorName, const QString &errorMessage);
56  TP_QT_NO_EXPORT void onGetCaptchasWatcherFinished(QDBusPendingCallWatcher *watcher);
57  TP_QT_NO_EXPORT void onGetCaptchaDataWatcherFinished(QDBusPendingCallWatcher *watcher);
58 
59 private:
60  TP_QT_NO_EXPORT PendingCaptchas(const QDBusPendingCall &call,
61  const QStringList &preferredMimeTypes,
62  CaptchaAuthentication::ChallengeTypes preferredTypes,
63  const CaptchaAuthenticationPtr &channel);
64  TP_QT_NO_EXPORT PendingCaptchas(
65  const QString &errorName, const QString &errorMessage,
66  const CaptchaAuthenticationPtr &channel);
67 
68  struct Private;
69  friend class CaptchaAuthentication;
70  friend struct Private;
71  Private *mPriv;
72 };
73 
74 }
75 
76 #endif // TP_PENDING_CAPTCHA_H
The CaptchaAuthentication class exposes CaptchaAuthentication's features for channels implementing it...
Definition: captcha-authentication.h:43
The Captcha class represents a Captcha ready to be answered.
Definition: captcha.h:37
Definition: abstract-adaptor.cpp:31
The PendingCaptchas class represents an asynchronous operation for retrieving a captcha challenge fro...
Definition: pending-captchas.h:41
The DBusProxy class is a base class representing a remote object available over D-Bus.
Definition: dbus-proxy.h:42
The PendingOperation class is a base class for pending asynchronous operations.
Definition: pending-operation.h:45