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

server-authentication-channel.h
1
23 #ifndef _TelepathyQt_server_authentication_channel_h_HEADER_GUARD_
24 #define _TelepathyQt_server_authentication_channel_h_HEADER_GUARD_
25
26 #ifndef IN_TP_QT_HEADER
27 #error IN_TP_QT_HEADER
28 #endif
29
30 #include <TelepathyQt/Channel>
31
32 namespace Tp
33 {
34
35 class TP_QT_EXPORT ServerAuthenticationChannel : public Channel
36 {
37 Q_OBJECT
38 Q_DISABLE_COPY(ServerAuthenticationChannel)
39
40 public:
41 static const Feature FeatureCore;
42
43 static ServerAuthenticationChannelPtr create(const ConnectionPtr &connection,
44 const QString &objectPath, const QVariantMap &immutableProperties);
45
46 virtual ~ServerAuthenticationChannel();
47
48 CaptchaAuthenticationPtr captchaAuthentication() const;
49
50 // TODO: Add something for SASL here as well
51
52 bool hasCaptchaInterface() const;
53 // TODO: Enable when SASL high-level support is in
54 // bool hasSaslInterface() const;
55
56 protected:
57 ServerAuthenticationChannel(const ConnectionPtr &connection, const QString &objectPath,
58 const QVariantMap &immutableProperties,
59 const Feature &coreFeature = ServerAuthenticationChannel::FeatureCore);
60
61 private Q_SLOTS:
62 TP_QT_NO_EXPORT void gotCaptchaAuthenticationProperties(Tp::PendingOperation *op);
63 TP_QT_NO_EXPORT void gotServerAuthenticationProperties(Tp::PendingOperation *op);
64
65 private:
66 struct Private;
67 friend struct Private;
68 Private *mPriv;
69 };
70
71 }
72
73 #endif
Tp::PendingOperation
The PendingOperation class is a base class for pending asynchronous operations.
Definition: pending-operation.h:45
Tp
Definition: abstract-adaptor.cpp:31
Tp::Channel
The Channel class represents a Telepathy channel.
Definition: channel.h:51
Tp::ServerAuthenticationChannel
The ServerAuthenticationChannel class is a base class for all ServerAuthentication types...
Definition: server-authentication-channel.h:35
Tp::Feature
The Feature class represents a feature that can be enabled on demand.
Definition: feature.h:41
QString
Tp::ServerAuthenticationChannel::FeatureCore
static const Feature FeatureCore
Definition: server-authentication-channel.h:41