Home · All Classes · All Namespaces · Modules · Functions · Files
captcha.h
1 
23 #ifndef _TelepathyQt_captcha_h_HEADER_GUARD_
24 #define _TelepathyQt_captcha_h_HEADER_GUARD_
25 
26 #ifndef IN_TP_QT_HEADER
27 #error IN_TP_QT_HEADER
28 #endif
29 
30 #include <TelepathyQt/CaptchaAuthentication>
31 
32 namespace Tp
33 {
34 
35 class PendingCaptchas;
36 
37 class TP_QT_EXPORT Captcha {
38 public:
39  Captcha();
40  Captcha(const Captcha &other);
41  ~Captcha();
42 
43  bool isValid() const { return mPriv.constData() != 0; }
44 
45  Captcha &operator=(const Captcha &rhs);
46 
47  QString mimeType() const;
48  QString label() const;
49  QByteArray data() const;
51  uint id() const;
52 
53 private:
54  struct Private;
55  friend struct Private;
56  friend class PendingCaptchas;
57 
58  Captcha(const QString &mimeType, const QString &label, const QByteArray &data,
60 
61  QSharedDataPointer<Captcha::Private> mPriv;
62 };
63 
64 }
65 
66 #endif
ChallengeType
Definition: captcha-authentication.h:49
bool isValid() const
Definition: captcha.h:43
The PendingCaptchas class represents an asynchronous operation for retrieving a captcha challenge fro...
Definition: pending-captchas.h:41
The Captcha class represents a Captcha ready to be answered.
Definition: captcha.h:37


Copyright © 2008-2011 Collabora Ltd. and Nokia Corporation
Telepathy-Qt 0.9.4