| Home · All Classes · All Namespaces · Modules · Functions · Files

server-authentication-channel.h

    00001
    00023 #ifndef _TelepathyQt_server_authentication_channel_h_HEADER_GUARD_
    00024 #define _TelepathyQt_server_authentication_channel_h_HEADER_GUARD_
    00025
    00026 #ifndef IN_TP_QT_HEADER
    00027 #error IN_TP_QT_HEADER
    00028 #endif
    00029
    00030 #include <TelepathyQt/Channel>
    00031
    00032 namespace Tp
    00033 {
    00034
    00035 class TP_QT_EXPORT ServerAuthenticationChannel : public Channel
    00036 {
    00037     Q_OBJECT
    00038     Q_DISABLE_COPY(ServerAuthenticationChannel)
    00039
    00040 public:
    00041     static const Feature FeatureCore;
    00042
    00043     static ServerAuthenticationChannelPtr create(const ConnectionPtr &connection,
    00044             const QString &objectPath, const QVariantMap &immutableProperties);
    00045
    00046     virtual ~ServerAuthenticationChannel();
    00047
    00048     CaptchaAuthenticationPtr captchaAuthentication() const;
    00049
    00050     // TODO: Add something for SASL here as well
    00051
    00052     bool hasCaptchaInterface() const;
    00053     // TODO: Enable when SASL high-level support is in
    00054     // bool hasSaslInterface() const;
    00055
    00056 protected:
    00057     ServerAuthenticationChannel(const ConnectionPtr &connection, const QString &objectPath,
    00058             const QVariantMap &immutableProperties,
    00059             const Feature &coreFeature = ServerAuthenticationChannel::FeatureCore);
    00060
    00061 private Q_SLOTS:
    00062     TP_QT_NO_EXPORT void gotCaptchaAuthenticationProperties(Tp::PendingOperation *op);
    00063     TP_QT_NO_EXPORT void gotServerAuthenticationProperties(Tp::PendingOperation *op);
    00064
    00065 private:
    00066     struct Private;
    00067     friend struct Private;
    00068     Private *mPriv;
    00069 };
    00070
    00071 }
    00072
    00073 #endif