Home · Modules · All Classes · All Namespaces
svc-call.h
1 /*
2  * This file contains D-Bus adaptor classes generated by qt-svc-gen.py.
3  *
4  * This file can be distributed under the same terms as the specification from
5  * which it was generated.
6  */
7 
8 #include <TelepathyQt/AbstractAdaptor>
9 #include <TelepathyQt/Global>
10 #include <TelepathyQt/Types>
11 
12 #include <QObject>
13 #include <QtDBus>
14 
15 namespace Tp
16 {
17 namespace Service
18 {
19 
27 class TP_QT_EXPORT CallContentAdaptor : public Tp::AbstractAdaptor
28 {
29  Q_OBJECT
30  Q_CLASSINFO("D-Bus Interface", "org.freedesktop.Telepathy.Call1.Content")
31  Q_CLASSINFO("D-Bus Introspection", ""
32 " <interface name=\"org.freedesktop.Telepathy.Call1.Content\">\n"
33 " <property access=\"read\" type=\"as\" name=\"Interfaces\"/>\n"
34 " <property access=\"read\" type=\"s\" name=\"Name\"/>\n"
35 " <property access=\"read\" type=\"u\" name=\"Type\"/>\n"
36 " <property access=\"read\" type=\"u\" name=\"Disposition\"/>\n"
37 " <property access=\"read\" type=\"ao\" name=\"Streams\"/>\n"
38 " <method name=\"Remove\"/>\n"
39 " <signal name=\"StreamsAdded\">\n"
40 " <arg type=\"ao\" name=\"streams\"/>\n"
41 " </signal>\n"
42 " <signal name=\"StreamsRemoved\">\n"
43 " <arg type=\"ao\" name=\"streams\"/>\n"
44 " <arg type=\"(uuss)\" name=\"reason\">\n"
45 " <annotation value=\"Tp::CallStateReason\" name=\"com.trolltech.QtDBus.QtTypeName.In1\"/>\n"
46 " </arg>\n"
47 " </signal>\n"
48 " </interface>\n"
49 "")
50  Q_PROPERTY(QStringList Interfaces READ Interfaces )
51  Q_PROPERTY(QString Name READ Name )
52  Q_PROPERTY(uint Type READ Type )
53  Q_PROPERTY(uint Disposition READ Disposition )
54  Q_PROPERTY(Tp::ObjectPathList Streams READ Streams )
55 
56 public:
57  CallContentAdaptor(const QDBusConnection& dbusConnection, QObject* adaptee, QObject* parent);
58  virtual ~CallContentAdaptor();
59 
60  typedef Tp::MethodInvocationContextPtr< > RemoveContextPtr;
61 
62 public: // PROPERTIES
80  QStringList Interfaces() const;
102  QString Name() const;
116  uint Type() const;
128  uint Disposition() const;
156  Tp::ObjectPathList Streams() const;
157 
158 public Q_SLOTS: // METHODS
174  void Remove(const QDBusMessage& dbusMessage);
175 
176 Q_SIGNALS: // SIGNALS
189  void StreamsAdded(const Tp::ObjectPathList& streams);
205  void StreamsRemoved(const Tp::ObjectPathList& streams, const Tp::CallStateReason& reason);
206 };
207 
216 {
217  Q_OBJECT
218  Q_CLASSINFO("D-Bus Interface", "org.freedesktop.Telepathy.Call1.Content.Interface.DTMF")
219  Q_CLASSINFO("D-Bus Introspection", ""
220 " <interface name=\"org.freedesktop.Telepathy.Call1.Content.Interface.DTMF\">\n"
221 " <property access=\"read\" type=\"b\" name=\"CurrentlySendingTones\"/>\n"
222 " <property access=\"read\" type=\"s\" name=\"DeferredTones\"/>\n"
223 " <method name=\"StartTone\">\n"
224 " <arg direction=\"in\" type=\"y\" name=\"event\"/>\n"
225 " </method>\n"
226 " <method name=\"StopTone\"/>\n"
227 " <method name=\"MultipleTones\">\n"
228 " <arg direction=\"in\" type=\"s\" name=\"tones\"/>\n"
229 " </method>\n"
230 " <signal name=\"TonesDeferred\">\n"
231 " <arg type=\"s\" name=\"tones\"/>\n"
232 " </signal>\n"
233 " <signal name=\"SendingTones\">\n"
234 " <arg type=\"s\" name=\"tones\"/>\n"
235 " </signal>\n"
236 " <signal name=\"StoppedTones\">\n"
237 " <arg type=\"b\" name=\"cancelled\"/>\n"
238 " </signal>\n"
239 " </interface>\n"
240 "")
241  Q_PROPERTY(bool CurrentlySendingTones READ CurrentlySendingTones )
242  Q_PROPERTY(QString DeferredTones READ DeferredTones )
243 
244 public:
245  CallContentInterfaceDTMFAdaptor(const QDBusConnection& dbusConnection, QObject* adaptee, QObject* parent);
247 
248  typedef Tp::MethodInvocationContextPtr< > StartToneContextPtr;
249  typedef Tp::MethodInvocationContextPtr< > StopToneContextPtr;
250  typedef Tp::MethodInvocationContextPtr< > MultipleTonesContextPtr;
251 
252 public: // PROPERTIES
266  bool CurrentlySendingTones() const;
286  QString DeferredTones() const;
287 
288 public Q_SLOTS: // METHODS
314  void StartTone(uchar event, const QDBusMessage& dbusMessage);
333  void StopTone(const QDBusMessage& dbusMessage);
381  void MultipleTones(const QString& tones, const QDBusMessage& dbusMessage);
382 
383 Q_SIGNALS: // SIGNALS
396  void TonesDeferred(const QString& tones);
409  void SendingTones(const QString& tones);
422  void StoppedTones(bool cancelled);
423 };
424 
433 {
434  Q_OBJECT
435  Q_CLASSINFO("D-Bus Interface", "org.freedesktop.Telepathy.Call1.Interface.Mute")
436  Q_CLASSINFO("D-Bus Introspection", ""
437 " <interface name=\"org.freedesktop.Telepathy.Call1.Interface.Mute\">\n"
438 " <property access=\"read\" type=\"u\" name=\"LocalMuteState\"/>\n"
439 " <method name=\"RequestMuted\">\n"
440 " <arg direction=\"in\" type=\"b\" name=\"muted\"/>\n"
441 " </method>\n"
442 " <signal name=\"MuteStateChanged\">\n"
443 " <arg type=\"u\" name=\"muteState\"/>\n"
444 " </signal>\n"
445 " </interface>\n"
446 "")
447  Q_PROPERTY(uint LocalMuteState READ LocalMuteState )
448 
449 public:
450  CallInterfaceMuteAdaptor(const QDBusConnection& dbusConnection, QObject* adaptee, QObject* parent);
451  virtual ~CallInterfaceMuteAdaptor();
452 
453  typedef Tp::MethodInvocationContextPtr< > RequestMutedContextPtr;
454 
455 public: // PROPERTIES
469  uint LocalMuteState() const;
470 
471 public Q_SLOTS: // METHODS
490  void RequestMuted(bool muted, const QDBusMessage& dbusMessage);
491 
492 Q_SIGNALS: // SIGNALS
505  void MuteStateChanged(uint muteState);
506 };
507 
508 }
509 }
LocalMuteState
Definition: build/TelepathyQt/_gen/constants.h:4626
Definition: svc-call.h:27
Definition: build/TelepathyQt/_gen/types.h:85
Definition: build/TelepathyQt/_gen/types.h:336
Definition: svc-call.h:432
Base class for all the low-level service-side adaptors.
Definition: abstract-adaptor.h:40
Definition: abstract-adaptor.cpp:31