Home · All Classes · All Namespaces · Modules · Functions · Files
cli-call-content-media-description.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 
45 {
46  Q_OBJECT
47 
48 public:
55  static inline QLatin1String staticInterfaceName()
56  {
57  return QLatin1String("org.freedesktop.Telepathy.Call1.Content.MediaDescription");
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 
109  {
110  return internalRequestProperty(QLatin1String("Interfaces"));
111  }
112 
137  {
138  return internalRequestProperty(QLatin1String("FurtherNegotiationRequired"));
139  }
140 
159  {
160  return internalRequestProperty(QLatin1String("HasRemoteInformation"));
161  }
162 
174  {
175  return internalRequestProperty(QLatin1String("Codecs"));
176  }
177 
200  {
201  return internalRequestProperty(QLatin1String("RemoteContact"));
202  }
203 
241  {
242  return internalRequestProperty(QLatin1String("SSRCs"));
243  }
244 
252  {
253  return internalRequestAllProperties();
254  }
255 
256 public Q_SLOTS:
275  inline QDBusPendingReply<> Accept(const QVariantMap& localMediaDescription, int timeout = -1)
276  {
277  if (!invalidationReason().isEmpty()) {
278  return QDBusPendingReply<>(QDBusMessage::createError(
279  invalidationReason(),
280  invalidationMessage()
281  ));
282  }
283 
284  QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
285  this->staticInterfaceName(), QLatin1String("Accept"));
286  callMessage << QVariant::fromValue(localMediaDescription);
287  return this->connection().asyncCall(callMessage, timeout);
288  }
289 
304  inline QDBusPendingReply<> Reject(const Tp::CallStateReason& reason, int timeout = -1)
305  {
306  if (!invalidationReason().isEmpty()) {
307  return QDBusPendingReply<>(QDBusMessage::createError(
308  invalidationReason(),
309  invalidationMessage()
310  ));
311  }
312 
313  QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
314  this->staticInterfaceName(), QLatin1String("Reject"));
315  callMessage << QVariant::fromValue(reason);
316  return this->connection().asyncCall(callMessage, timeout);
317  }
318 
319 protected:
320  virtual void invalidate(Tp::DBusProxy *, const QString &, const QString &);
321 };
322 
331 {
332  Q_OBJECT
333 
334 public:
341  static inline QLatin1String staticInterfaceName()
342  {
343  return QLatin1String("org.freedesktop.Telepathy.Call1.Content.MediaDescription.Interface.RTCPExtendedReports");
344  }
345 
354  const QString& busName,
355  const QString& objectPath,
356  QObject* parent = 0
357  );
358 
368  const QDBusConnection& connection,
369  const QString& busName,
370  const QString& objectPath,
371  QObject* parent = 0
372  );
373 
381 
390 
399 
413  {
414  return internalRequestProperty(QLatin1String("LossRLEMaxSize"));
415  }
416 
430  {
431  return internalRequestProperty(QLatin1String("DuplicateRLEMaxSize"));
432  }
433 
447  {
448  return internalRequestProperty(QLatin1String("PacketReceiptTimesMaxSize"));
449  }
450 
465  {
466  return internalRequestProperty(QLatin1String("DLRRMaxSize"));
467  }
468 
479  {
480  return internalRequestProperty(QLatin1String("RTTMode"));
481  }
482 
495  {
496  return internalRequestProperty(QLatin1String("StatisticsFlags"));
497  }
498 
510  {
511  return internalRequestProperty(QLatin1String("EnableMetrics"));
512  }
513 
521  {
522  return internalRequestAllProperties();
523  }
524 
525 protected:
526  virtual void invalidate(Tp::DBusProxy *, const QString &, const QString &);
527 };
528 
537 {
538  Q_OBJECT
539 
540 public:
547  static inline QLatin1String staticInterfaceName()
548  {
549  return QLatin1String("org.freedesktop.Telepathy.Call1.Content.MediaDescription.Interface.RTCPFeedback");
550  }
551 
560  const QString& busName,
561  const QString& objectPath,
562  QObject* parent = 0
563  );
564 
574  const QDBusConnection& connection,
575  const QString& busName,
576  const QString& objectPath,
577  QObject* parent = 0
578  );
579 
587 
596 
605 
616  {
617  return internalRequestProperty(QLatin1String("FeedbackMessages"));
618  }
619 
631  {
632  return internalRequestProperty(QLatin1String("DoesAVPF"));
633  }
634 
642  {
643  return internalRequestAllProperties();
644  }
645 
646 protected:
647  virtual void invalidate(Tp::DBusProxy *, const QString &, const QString &);
648 };
649 
658 {
659  Q_OBJECT
660 
661 public:
668  static inline QLatin1String staticInterfaceName()
669  {
670  return QLatin1String("org.freedesktop.Telepathy.Call1.Content.MediaDescription.Interface.RTPHeaderExtensions");
671  }
672 
681  const QString& busName,
682  const QString& objectPath,
683  QObject* parent = 0
684  );
685 
695  const QDBusConnection& connection,
696  const QString& busName,
697  const QString& objectPath,
698  QObject* parent = 0
699  );
700 
708 
717 
726 
737  {
738  return internalRequestProperty(QLatin1String("HeaderExtensions"));
739  }
740 
748  {
749  return internalRequestAllProperties();
750  }
751 
752 protected:
753  virtual void invalidate(Tp::DBusProxy *, const QString &, const QString &);
754 };
755 }
756 }
758 Q_DECLARE_METATYPE(Tp::Client::CallContentMediaDescriptionInterfaceRTCPExtendedReportsInterface*)
759 Q_DECLARE_METATYPE(Tp::Client::CallContentMediaDescriptionInterfaceRTCPFeedbackInterface*)
760 Q_DECLARE_METATYPE(Tp::Client::CallContentMediaDescriptionInterfaceRTPHeaderExtensionsInterface*)
Tp::PendingVariant * requestPropertyStatisticsFlags() const
Definition: cli-call-content-media-description.h:494
Tp::PendingVariant * requestPropertyEnableMetrics() const
Definition: cli-call-content-media-description.h:509
Definition: cli-call-content-media-description.h:330
Tp::PendingVariantMap * requestAllProperties() const
Definition: cli-call-content-media-description.h:520
Tp::PendingVariant * requestPropertyHeaderExtensions() const
Definition: cli-call-content-media-description.h:736
Tp::PendingVariant * requestPropertyLossRLEMaxSize() const
Definition: cli-call-content-media-description.h:412
The PendingVariant class is a generic subclass of PendingOperation representing a pending D-Bus metho...
Definition: pending-variant.h:38
static QLatin1String staticInterfaceName()
Definition: cli-call-content-media-description.h:547
static QLatin1String staticInterfaceName()
Definition: cli-call-content-media-description.h:668
Tp::PendingVariant * requestPropertyPacketReceiptTimesMaxSize() const
Definition: cli-call-content-media-description.h:446
static QLatin1String staticInterfaceName()
Definition: cli-call-content-media-description.h:341
Tp::PendingVariantMap * requestAllProperties() const
Definition: cli-call-content-media-description.h:747
Tp::PendingVariant * requestPropertyRTTMode() const
Definition: cli-call-content-media-description.h:478
Tp::PendingVariant * requestPropertyDLRRMaxSize() const
Definition: cli-call-content-media-description.h:464
The PendingVariantMap class is a generic subclass of PendingOperation representing a pending D-Bus me...
Definition: pending-variant-map.h:38
Definition: cli-call-content-media-description.h:44
Tp::PendingVariant * requestPropertyInterfaces() const
Definition: cli-call-content-media-description.h:108
QDBusPendingReply Accept(const QVariantMap &localMediaDescription, int timeout=-1)
Definition: cli-call-content-media-description.h:275
Tp::PendingVariant * requestPropertyFurtherNegotiationRequired() const
Definition: cli-call-content-media-description.h:136
static QLatin1String staticInterfaceName()
Definition: cli-call-content-media-description.h:55
Definition: cli-call-content-media-description.h:657
The DBusProxy class is a base class representing a remote object available over D-Bus.
Definition: dbus-proxy.h:42
QDBusPendingReply Reject(const Tp::CallStateReason &reason, int timeout=-1)
Definition: cli-call-content-media-description.h:304
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 * requestPropertyCodecs() const
Definition: cli-call-content-media-description.h:173
Tp::PendingVariant * requestPropertyDoesAVPF() const
Definition: cli-call-content-media-description.h:630
Tp::PendingVariant * requestPropertySSRCs() const
Definition: cli-call-content-media-description.h:240
Tp::PendingVariantMap * requestAllProperties() const
Definition: cli-call-content-media-description.h:251
Tp::PendingVariant * requestPropertyFeedbackMessages() const
Definition: cli-call-content-media-description.h:615
Tp::PendingVariant * requestPropertyDuplicateRLEMaxSize() const
Definition: cli-call-content-media-description.h:429
Definition: cli-call-content-media-description.h:536
Tp::PendingVariantMap * requestAllProperties() const
Definition: cli-call-content-media-description.h:641
Tp::PendingVariant * requestPropertyRemoteContact() const
Definition: cli-call-content-media-description.h:199
Definition: buildqt4/TelepathyQt/_gen/types.h:320
Tp::PendingVariant * requestPropertyHasRemoteInformation() const
Definition: cli-call-content-media-description.h:158


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