Home · All Classes · All Namespaces · Modules · Functions · Files
tube-channel.h
1 
22 #ifndef _TelepathyQt_tube_channel_h_HEADER_GUARD_
23 #define _TelepathyQt_tube_channel_h_HEADER_GUARD_
24 
25 #ifndef IN_TP_QT_HEADER
26 #error IN_TP_QT_HEADER
27 #endif
28 
29 #include <TelepathyQt/Channel>
30 
31 namespace Tp
32 {
33 
34 class TP_QT_EXPORT TubeChannel : public Channel
35 {
36  Q_OBJECT
37  Q_DISABLE_COPY(TubeChannel)
38 
39 public:
40  static const Feature FeatureCore;
41 
42  static TubeChannelPtr create(const ConnectionPtr &connection,
43  const QString &objectPath, const QVariantMap &immutableProperties);
44 
45  virtual ~TubeChannel();
46 
47  TubeChannelState state() const;
48 
49  QVariantMap parameters() const;
50 
51 Q_SIGNALS:
52  void stateChanged(Tp::TubeChannelState state);
53 
54 protected:
55  TubeChannel(const ConnectionPtr &connection, const QString &objectPath,
56  const QVariantMap &immutableProperties,
57  const Feature &coreFeature = TubeChannel::FeatureCore);
58 
59  void setParameters(const QVariantMap &parameters);
60 
61 private Q_SLOTS:
62  TP_QT_NO_EXPORT void onTubeChannelStateChanged(uint newstate);
63  TP_QT_NO_EXPORT void gotTubeProperties(Tp::PendingOperation *op);
64 
65 private:
66  struct Private;
67  friend struct Private;
68  Private *mPriv;
69 };
70 
71 }
72 
73 #endif
static const Feature FeatureCore
Definition: tube-channel.h:40
The PendingOperation class is a base class for pending asynchronous operations.
Definition: pending-operation.h:45
The TubeChannel class is a base class for all tube types.
Definition: tube-channel.h:34
Definition: abstract-adaptor.cpp:31
TubeChannelState
Definition: build/TelepathyQt/_gen/constants.h:3729
The Feature class represents a feature that can be enabled on demand.
Definition: feature.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.7