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,
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
The ServerAuthenticationChannel class is a base class for all ServerAuthentication types...
Definition: server-authentication-channel.h:35
The Feature class represents a feature that can be enabled on demand.
Definition: feature.h:41
The PendingOperation class is a base class for pending asynchronous operations.
Definition: pending-operation.h:45
static const Feature FeatureCore
Definition: server-authentication-channel.h:41
The Channel class represents a Telepathy channel.
Definition: channel.h:51


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