Home · All Classes · All Namespaces · Modules · Functions · Files
captcha.h
00001 
00023 #ifndef _TelepathyQt_captcha_h_HEADER_GUARD_
00024 #define _TelepathyQt_captcha_h_HEADER_GUARD_
00025 
00026 #ifndef IN_TP_QT_HEADER
00027 #error IN_TP_QT_HEADER
00028 #endif
00029 
00030 #include <TelepathyQt/CaptchaAuthentication>
00031 
00032 namespace Tp
00033 {
00034 
00035 class PendingCaptchas;
00036 
00037 class TP_QT_EXPORT Captcha {
00038 public:
00039     Captcha();
00040     Captcha(const Captcha &other);
00041     ~Captcha();
00042 
00043     bool isValid() const { return mPriv.constData() != 0; }
00044 
00045     Captcha &operator=(const Captcha &rhs);
00046 
00047     QString mimeType() const;
00048     QString label() const;
00049     QByteArray data() const;
00050     CaptchaAuthentication::ChallengeType type() const;
00051     uint id() const;
00052 
00053 private:
00054     struct Private;
00055     friend struct Private;
00056     friend class PendingCaptchas;
00057 
00058     Captcha(const QString &mimeType, const QString &label, const QByteArray &data,
00059             CaptchaAuthentication::ChallengeType type, uint id);
00060 
00061     QSharedDataPointer<Captcha::Private> mPriv;
00062 };
00063 
00064 }
00065 
00066 #endif


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