Home · All Classes · All Namespaces · Modules · Functions · Files
cli-call-content.h
1 /*
2  * This file contains D-Bus client proxy classes generated by qt-client-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 #ifndef IN_TP_QT_HEADER
9 #error IN_TP_QT_HEADER
10 #endif
11 
12 #include <TelepathyQt/Types>
13 
14 #include <QtGlobal>
15 
16 #include <QString>
17 #include <QObject>
18 #include <QVariant>
19 
20 #include <QDBusPendingReply>
21 
22 #include <TelepathyQt/AbstractInterface>
23 #include <TelepathyQt/DBusProxy>
24 #include <TelepathyQt/Global>
25 
26 namespace Tp
27 {
28 class PendingVariant;
29 class PendingOperation;
30 }
31 
32 namespace Tp
33 {
34 namespace Client
35 {
36 
44 class TP_QT_EXPORT CallContentInterface : public Tp::AbstractInterface
45 {
46  Q_OBJECT
47 
48 public:
55  static inline QLatin1String staticInterfaceName()
56  {
57  return QLatin1String("org.freedesktop.Telepathy.Call1.Content");
58  }
59 
68  const QString& busName,
69  const QString& objectPath,
70  QObject* parent = 0
71  );
72 
82  const QDBusConnection& connection,
83  const QString& busName,
84  const QString& objectPath,
85  QObject* parent = 0
86  );
87 
95 
112  {
113  return internalRequestProperty(QLatin1String("Interfaces"));
114  }
115 
136  {
137  return internalRequestProperty(QLatin1String("Name"));
138  }
139 
152  {
153  return internalRequestProperty(QLatin1String("Type"));
154  }
155 
166  {
167  return internalRequestProperty(QLatin1String("Disposition"));
168  }
169 
196  {
197  return internalRequestProperty(QLatin1String("Streams"));
198  }
199 
207  {
208  return internalRequestAllProperties();
209  }
210 
211 public Q_SLOTS:
224  inline QDBusPendingReply<> Remove(int timeout = -1)
225  {
226  if (!invalidationReason().isEmpty()) {
227  return QDBusPendingReply<>(QDBusMessage::createError(
228  invalidationReason(),
229  invalidationMessage()
230  ));
231  }
232 
233  QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
234  this->staticInterfaceName(), QLatin1String("Remove"));
235  return this->connection().asyncCall(callMessage, timeout);
236  }
237 
238 Q_SIGNALS:
250  void StreamsAdded(const Tp::ObjectPathList& streams);
251 
267  void StreamsRemoved(const Tp::ObjectPathList& streams, const Tp::CallStateReason& reason);
268 
269 protected:
270  virtual void invalidate(Tp::DBusProxy *, const QString &, const QString &);
271 };
272 
281 {
282  Q_OBJECT
283 
284 public:
291  static inline QLatin1String staticInterfaceName()
292  {
293  return QLatin1String("org.freedesktop.Telepathy.Call1.Content.Interface.AudioControl");
294  }
295 
304  const QString& busName,
305  const QString& objectPath,
306  QObject* parent = 0
307  );
308 
318  const QDBusConnection& connection,
319  const QString& busName,
320  const QString& objectPath,
321  QObject* parent = 0
322  );
323 
331 
340 
349 
362  {
363  return internalRequestProperty(QLatin1String("RequestedInputVolume"));
364  }
365 
378  {
379  return internalRequestProperty(QLatin1String("RequestedOutputVolume"));
380  }
381 
389  {
390  return internalRequestAllProperties();
391  }
392 
393 public Q_SLOTS:
411  inline QDBusPendingReply<> ReportInputVolume(int volume, int timeout = -1)
412  {
413  if (!invalidationReason().isEmpty()) {
414  return QDBusPendingReply<>(QDBusMessage::createError(
415  invalidationReason(),
416  invalidationMessage()
417  ));
418  }
419 
420  QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
421  this->staticInterfaceName(), QLatin1String("ReportInputVolume"));
422  callMessage << QVariant::fromValue(volume);
423  return this->connection().asyncCall(callMessage, timeout);
424  }
425 
443  inline QDBusPendingReply<> ReportOutputVolume(int volume, int timeout = -1)
444  {
445  if (!invalidationReason().isEmpty()) {
446  return QDBusPendingReply<>(QDBusMessage::createError(
447  invalidationReason(),
448  invalidationMessage()
449  ));
450  }
451 
452  QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
453  this->staticInterfaceName(), QLatin1String("ReportOutputVolume"));
454  callMessage << QVariant::fromValue(volume);
455  return this->connection().asyncCall(callMessage, timeout);
456  }
457 
458 protected:
459  virtual void invalidate(Tp::DBusProxy *, const QString &, const QString &);
460 };
461 
470 {
471  Q_OBJECT
472 
473 public:
480  static inline QLatin1String staticInterfaceName()
481  {
482  return QLatin1String("org.freedesktop.Telepathy.Call1.Content.Interface.DTMF");
483  }
484 
493  const QString& busName,
494  const QString& objectPath,
495  QObject* parent = 0
496  );
497 
507  const QDBusConnection& connection,
508  const QString& busName,
509  const QString& objectPath,
510  QObject* parent = 0
511  );
512 
520 
529 
537  CallContentInterfaceDTMFInterface(const Tp::Client::CallContentInterface& mainInterface, QObject* parent);
538 
551  {
552  return internalRequestProperty(QLatin1String("CurrentlySendingTones"));
553  }
554 
573  {
574  return internalRequestProperty(QLatin1String("DeferredTones"));
575  }
576 
584  {
585  return internalRequestAllProperties();
586  }
587 
588 public Q_SLOTS:
612  inline QDBusPendingReply<> StartTone(uchar event, int timeout = -1)
613  {
614  if (!invalidationReason().isEmpty()) {
615  return QDBusPendingReply<>(QDBusMessage::createError(
616  invalidationReason(),
617  invalidationMessage()
618  ));
619  }
620 
621  QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
622  this->staticInterfaceName(), QLatin1String("StartTone"));
623  callMessage << QVariant::fromValue(event);
624  return this->connection().asyncCall(callMessage, timeout);
625  }
626 
642  inline QDBusPendingReply<> StopTone(int timeout = -1)
643  {
644  if (!invalidationReason().isEmpty()) {
645  return QDBusPendingReply<>(QDBusMessage::createError(
646  invalidationReason(),
647  invalidationMessage()
648  ));
649  }
650 
651  QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
652  this->staticInterfaceName(), QLatin1String("StopTone"));
653  return this->connection().asyncCall(callMessage, timeout);
654  }
655 
701  inline QDBusPendingReply<> MultipleTones(const QString& tones, int timeout = -1)
702  {
703  if (!invalidationReason().isEmpty()) {
704  return QDBusPendingReply<>(QDBusMessage::createError(
705  invalidationReason(),
706  invalidationMessage()
707  ));
708  }
709 
710  QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
711  this->staticInterfaceName(), QLatin1String("MultipleTones"));
712  callMessage << QVariant::fromValue(tones);
713  return this->connection().asyncCall(callMessage, timeout);
714  }
715 
716 Q_SIGNALS:
743  void TonesDeferred(const QString& tones);
744 
761  void SendingTones(const QString& tones);
762 
774  void StoppedTones(bool cancelled);
775 
776 protected:
777  virtual void invalidate(Tp::DBusProxy *, const QString &, const QString &);
778 };
779 
788 {
789  Q_OBJECT
790 
791 public:
798  static inline QLatin1String staticInterfaceName()
799  {
800  return QLatin1String("org.freedesktop.Telepathy.Call1.Content.Interface.Media");
801  }
802 
811  const QString& busName,
812  const QString& objectPath,
813  QObject* parent = 0
814  );
815 
825  const QDBusConnection& connection,
826  const QString& busName,
827  const QString& objectPath,
828  QObject* parent = 0
829  );
830 
838 
847 
855  CallContentInterfaceMediaInterface(const Tp::Client::CallContentInterface& mainInterface, QObject* parent);
856 
870  {
871  return internalRequestProperty(QLatin1String("RemoteMediaDescriptions"));
872  }
873 
885  {
886  return internalRequestProperty(QLatin1String("LocalMediaDescriptions"));
887  }
888 
918  {
919  return internalRequestProperty(QLatin1String("MediaDescriptionOffer"));
920  }
921 
934  {
935  return internalRequestProperty(QLatin1String("Packetization"));
936  }
937 
949  {
950  return internalRequestProperty(QLatin1String("CurrentDTMFEvent"));
951  }
952 
964  {
965  return internalRequestProperty(QLatin1String("CurrentDTMFState"));
966  }
967 
975  {
976  return internalRequestAllProperties();
977  }
978 
979 public Q_SLOTS:
1000  inline QDBusPendingReply<> UpdateLocalMediaDescription(const QVariantMap& mediaDescription, int timeout = -1)
1001  {
1002  if (!invalidationReason().isEmpty()) {
1003  return QDBusPendingReply<>(QDBusMessage::createError(
1004  invalidationReason(),
1005  invalidationMessage()
1006  ));
1007  }
1008 
1009  QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
1010  this->staticInterfaceName(), QLatin1String("UpdateLocalMediaDescription"));
1011  callMessage << QVariant::fromValue(mediaDescription);
1012  return this->connection().asyncCall(callMessage, timeout);
1013  }
1014 
1036  inline QDBusPendingReply<> AcknowledgeDTMFChange(uchar event, uint state, int timeout = -1)
1037  {
1038  if (!invalidationReason().isEmpty()) {
1039  return QDBusPendingReply<>(QDBusMessage::createError(
1040  invalidationReason(),
1041  invalidationMessage()
1042  ));
1043  }
1044 
1045  QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
1046  this->staticInterfaceName(), QLatin1String("AcknowledgeDTMFChange"));
1047  callMessage << QVariant::fromValue(event) << QVariant::fromValue(state);
1048  return this->connection().asyncCall(callMessage, timeout);
1049  }
1050 
1065  inline QDBusPendingReply<> Fail(const Tp::CallStateReason& reason, int timeout = -1)
1066  {
1067  if (!invalidationReason().isEmpty()) {
1068  return QDBusPendingReply<>(QDBusMessage::createError(
1069  invalidationReason(),
1070  invalidationMessage()
1071  ));
1072  }
1073 
1074  QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
1075  this->staticInterfaceName(), QLatin1String("Fail"));
1076  callMessage << QVariant::fromValue(reason);
1077  return this->connection().asyncCall(callMessage, timeout);
1078  }
1079 
1080 Q_SIGNALS:
1112  void NewMediaDescriptionOffer(const QDBusObjectPath& mediaDescription, const QVariantMap& properties);
1113 
1125  void MediaDescriptionOfferDone();
1126 
1142  void LocalMediaDescriptionChanged(const QVariantMap& updatedMediaDescription);
1143 
1159  void RemoteMediaDescriptionsChanged(const Tp::ContactMediaDescriptionPropertiesMap& updatedMediaDescriptions);
1160 
1179  void MediaDescriptionsRemoved(const Tp::UIntList& removedMediaDescriptions);
1180 
1198  void DTMFChangeRequested(uchar event, uint state);
1199 
1200 protected:
1201  virtual void invalidate(Tp::DBusProxy *, const QString &, const QString &);
1202 };
1203 
1212 {
1213  Q_OBJECT
1214 
1215 public:
1222  static inline QLatin1String staticInterfaceName()
1223  {
1224  return QLatin1String("org.freedesktop.Telepathy.Call1.Content.Interface.VideoControl");
1225  }
1226 
1235  const QString& busName,
1236  const QString& objectPath,
1237  QObject* parent = 0
1238  );
1239 
1249  const QDBusConnection& connection,
1250  const QString& busName,
1251  const QString& objectPath,
1252  QObject* parent = 0
1253  );
1254 
1262 
1271 
1279  CallContentInterfaceVideoControlInterface(const Tp::Client::CallContentInterface& mainInterface, QObject* parent);
1280 
1292  {
1293  return internalRequestProperty(QLatin1String("VideoResolution"));
1294  }
1295 
1307  {
1308  return internalRequestProperty(QLatin1String("Bitrate"));
1309  }
1310 
1322  {
1323  return internalRequestProperty(QLatin1String("Framerate"));
1324  }
1325 
1337  {
1338  return internalRequestProperty(QLatin1String("MTU"));
1339  }
1340 
1351  {
1352  return internalRequestProperty(QLatin1String("ManualKeyFrames"));
1353  }
1354 
1362  {
1363  return internalRequestAllProperties();
1364  }
1365 
1366 Q_SIGNALS:
1373  void KeyFrameRequested();
1374 
1380  void VideoResolutionChanged(const Tp::VideoResolution& newResolution);
1381 
1387  void BitrateChanged(uint newBitrate);
1388 
1394  void FramerateChanged(uint newFramerate);
1395 
1401  void MTUChanged(uint newMTU);
1402 
1403 protected:
1404  virtual void invalidate(Tp::DBusProxy *, const QString &, const QString &);
1405 };
1406 }
1407 }
1408 Q_DECLARE_METATYPE(Tp::Client::CallContentInterface*)
Tp::PendingVariant * requestPropertyCurrentDTMFState() const
Definition: cli-call-content.h:963
Tp::PendingVariant * requestPropertyRemoteMediaDescriptions() const
Definition: cli-call-content.h:869
Definition: cli-call-content.h:787
Definition: build/TelepathyQt/_gen/types.h:3286
static QLatin1String staticInterfaceName()
Definition: cli-call-content.h:798
Tp::PendingVariant * requestPropertyRequestedOutputVolume() const
Definition: cli-call-content.h:377
Tp::PendingVariant * requestPropertyType() const
Definition: cli-call-content.h:151
Tp::PendingVariant * requestPropertyLocalMediaDescriptions() const
Definition: cli-call-content.h:884
Tp::PendingVariantMap * requestAllProperties() const
Definition: cli-call-content.h:974
Tp::PendingVariant * requestPropertyMTU() const
Definition: cli-call-content.h:1336
Tp::PendingVariant * requestPropertyManualKeyFrames() const
Definition: cli-call-content.h:1350
Tp::PendingVariant * requestPropertyCurrentlySendingTones() const
Definition: cli-call-content.h:550
Tp::PendingVariantMap * requestAllProperties() const
Definition: cli-call-content.h:1361
QDBusPendingReply ReportInputVolume(int volume, int timeout=-1)
Definition: cli-call-content.h:411
Tp::PendingVariant * requestPropertyInterfaces() const
Definition: cli-call-content.h:111
Tp::PendingVariant * requestPropertyName() const
Definition: cli-call-content.h:135
Definition: cli-call-content.h:469
Tp::PendingVariant * requestPropertyRequestedInputVolume() const
Definition: cli-call-content.h:361
Definition: build/TelepathyQt/_gen/types.h:84
Tp::PendingVariant * requestPropertyStreams() const
Definition: cli-call-content.h:195
QDBusPendingReply StopTone(int timeout=-1)
Definition: cli-call-content.h:642
The AbstractInterface class is the base class for all client side D-Bus interfaces, allowing access to remote methods/properties/signals.
Definition: abstract-interface.h:42
Tp::PendingVariant * requestPropertyMediaDescriptionOffer() const
Definition: cli-call-content.h:917
static QLatin1String staticInterfaceName()
Definition: cli-call-content.h:55
QDBusPendingReply MultipleTones(const QString &tones, int timeout=-1)
Definition: cli-call-content.h:701
static QLatin1String staticInterfaceName()
Definition: cli-call-content.h:1222
Tp::PendingVariant * requestPropertyDeferredTones() const
Definition: cli-call-content.h:572
Tp::PendingVariant * requestPropertyCurrentDTMFEvent() const
Definition: cli-call-content.h:948
QDBusPendingReply UpdateLocalMediaDescription(const QVariantMap &mediaDescription, int timeout=-1)
Definition: cli-call-content.h:1000
Tp::PendingVariant * requestPropertyPacketization() const
Definition: cli-call-content.h:933
QDBusPendingReply StartTone(uchar event, int timeout=-1)
Definition: cli-call-content.h:612
The PendingVariantMap class is a generic subclass of PendingOperation representing a pending D-Bus me...
Definition: pending-variant-map.h:38
Definition: build/TelepathyQt/_gen/types.h:329
static QLatin1String staticInterfaceName()
Definition: cli-call-content.h:291
Definition: cli-call-content.h:44
Definition: build/TelepathyQt/_gen/types.h:107
QDBusPendingReply AcknowledgeDTMFChange(uchar event, uint state, int timeout=-1)
Definition: cli-call-content.h:1036
Tp::PendingVariant * requestPropertyVideoResolution() const
Definition: cli-call-content.h:1291
QDBusPendingReply ReportOutputVolume(int volume, int timeout=-1)
Definition: cli-call-content.h:443
Definition: abstract-adaptor.cpp:31
Tp::PendingVariantMap * requestAllProperties() const
Definition: cli-call-content.h:388
Tp::PendingVariantMap * requestAllProperties() const
Definition: cli-call-content.h:206
The PendingVariant class is a generic subclass of PendingOperation representing a pending D-Bus metho...
Definition: pending-variant.h:38
QDBusPendingReply Fail(const Tp::CallStateReason &reason, int timeout=-1)
Definition: cli-call-content.h:1065
static QLatin1String staticInterfaceName()
Definition: cli-call-content.h:480
QDBusPendingReply Remove(int timeout=-1)
Definition: cli-call-content.h:224
Tp::PendingVariant * requestPropertyDisposition() const
Definition: cli-call-content.h:165
Tp::PendingVariant * requestPropertyBitrate() const
Definition: cli-call-content.h:1306
The DBusProxy class is a base class representing a remote object available over D-Bus.
Definition: dbus-proxy.h:42
Definition: build/TelepathyQt/_gen/types.h:1229
Tp::PendingVariantMap * requestAllProperties() const
Definition: cli-call-content.h:583
Tp::PendingVariant * requestPropertyFramerate() const
Definition: cli-call-content.h:1321


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