00001
00002
00003
00004
00005
00006
00007
00008 #ifndef IN_TP_QT_HEADER
00009 #error IN_TP_QT_HEADER
00010 #endif
00011
00012 #include <TelepathyQt/Types>
00013
00014 #include <QtGlobal>
00015
00016 #include <QString>
00017 #include <QObject>
00018 #include <QVariant>
00019
00020 #include <QDBusPendingReply>
00021
00022 #include <TelepathyQt/AbstractInterface>
00023 #include <TelepathyQt/DBusProxy>
00024 #include <TelepathyQt/Global>
00025
00026 namespace Tp
00027 {
00028 class PendingVariant;
00029 class PendingOperation;
00030 }
00031
00032 namespace Tp
00033 {
00034 namespace Client
00035 {
00036
00044 class TP_QT_EXPORT CallContentMediaDescriptionInterface : public Tp::AbstractInterface
00045 {
00046 Q_OBJECT
00047
00048 public:
00055 static inline QLatin1String staticInterfaceName()
00056 {
00057 return QLatin1String("org.freedesktop.Telepathy.Call1.Content.MediaDescription");
00058 }
00059
00067 CallContentMediaDescriptionInterface(
00068 const QString& busName,
00069 const QString& objectPath,
00070 QObject* parent = 0
00071 );
00072
00081 CallContentMediaDescriptionInterface(
00082 const QDBusConnection& connection,
00083 const QString& busName,
00084 const QString& objectPath,
00085 QObject* parent = 0
00086 );
00087
00094 CallContentMediaDescriptionInterface(Tp::DBusProxy *proxy);
00095
00108 inline Tp::PendingVariant *requestPropertyInterfaces() const
00109 {
00110 return internalRequestProperty(QLatin1String("Interfaces"));
00111 }
00112
00136 inline Tp::PendingVariant *requestPropertyFurtherNegotiationRequired() const
00137 {
00138 return internalRequestProperty(QLatin1String("FurtherNegotiationRequired"));
00139 }
00140
00158 inline Tp::PendingVariant *requestPropertyHasRemoteInformation() const
00159 {
00160 return internalRequestProperty(QLatin1String("HasRemoteInformation"));
00161 }
00162
00173 inline Tp::PendingVariant *requestPropertyCodecs() const
00174 {
00175 return internalRequestProperty(QLatin1String("Codecs"));
00176 }
00177
00199 inline Tp::PendingVariant *requestPropertyRemoteContact() const
00200 {
00201 return internalRequestProperty(QLatin1String("RemoteContact"));
00202 }
00203
00240 inline Tp::PendingVariant *requestPropertySSRCs() const
00241 {
00242 return internalRequestProperty(QLatin1String("SSRCs"));
00243 }
00244
00251 Tp::PendingVariantMap *requestAllProperties() const
00252 {
00253 return internalRequestAllProperties();
00254 }
00255
00256 public Q_SLOTS:
00275 inline QDBusPendingReply<> Accept(const QVariantMap& localMediaDescription, int timeout = -1)
00276 {
00277 if (!invalidationReason().isEmpty()) {
00278 return QDBusPendingReply<>(QDBusMessage::createError(
00279 invalidationReason(),
00280 invalidationMessage()
00281 ));
00282 }
00283
00284 QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
00285 this->staticInterfaceName(), QLatin1String("Accept"));
00286 callMessage << QVariant::fromValue(localMediaDescription);
00287 return this->connection().asyncCall(callMessage, timeout);
00288 }
00289
00304 inline QDBusPendingReply<> Reject(const Tp::CallStateReason& reason, int timeout = -1)
00305 {
00306 if (!invalidationReason().isEmpty()) {
00307 return QDBusPendingReply<>(QDBusMessage::createError(
00308 invalidationReason(),
00309 invalidationMessage()
00310 ));
00311 }
00312
00313 QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
00314 this->staticInterfaceName(), QLatin1String("Reject"));
00315 callMessage << QVariant::fromValue(reason);
00316 return this->connection().asyncCall(callMessage, timeout);
00317 }
00318
00319 protected:
00320 virtual void invalidate(Tp::DBusProxy *, const QString &, const QString &);
00321 };
00322
00330 class TP_QT_EXPORT CallContentMediaDescriptionInterfaceRTCPExtendedReportsInterface : public Tp::AbstractInterface
00331 {
00332 Q_OBJECT
00333
00334 public:
00341 static inline QLatin1String staticInterfaceName()
00342 {
00343 return QLatin1String("org.freedesktop.Telepathy.Call1.Content.MediaDescription.Interface.RTCPExtendedReports");
00344 }
00345
00353 CallContentMediaDescriptionInterfaceRTCPExtendedReportsInterface(
00354 const QString& busName,
00355 const QString& objectPath,
00356 QObject* parent = 0
00357 );
00358
00367 CallContentMediaDescriptionInterfaceRTCPExtendedReportsInterface(
00368 const QDBusConnection& connection,
00369 const QString& busName,
00370 const QString& objectPath,
00371 QObject* parent = 0
00372 );
00373
00380 CallContentMediaDescriptionInterfaceRTCPExtendedReportsInterface(Tp::DBusProxy *proxy);
00381
00389 explicit CallContentMediaDescriptionInterfaceRTCPExtendedReportsInterface(const Tp::Client::CallContentMediaDescriptionInterface& mainInterface);
00390
00398 CallContentMediaDescriptionInterfaceRTCPExtendedReportsInterface(const Tp::Client::CallContentMediaDescriptionInterface& mainInterface, QObject* parent);
00399
00412 inline Tp::PendingVariant *requestPropertyLossRLEMaxSize() const
00413 {
00414 return internalRequestProperty(QLatin1String("LossRLEMaxSize"));
00415 }
00416
00429 inline Tp::PendingVariant *requestPropertyDuplicateRLEMaxSize() const
00430 {
00431 return internalRequestProperty(QLatin1String("DuplicateRLEMaxSize"));
00432 }
00433
00446 inline Tp::PendingVariant *requestPropertyPacketReceiptTimesMaxSize() const
00447 {
00448 return internalRequestProperty(QLatin1String("PacketReceiptTimesMaxSize"));
00449 }
00450
00464 inline Tp::PendingVariant *requestPropertyDLRRMaxSize() const
00465 {
00466 return internalRequestProperty(QLatin1String("DLRRMaxSize"));
00467 }
00468
00478 inline Tp::PendingVariant *requestPropertyRTTMode() const
00479 {
00480 return internalRequestProperty(QLatin1String("RTTMode"));
00481 }
00482
00494 inline Tp::PendingVariant *requestPropertyStatisticsFlags() const
00495 {
00496 return internalRequestProperty(QLatin1String("StatisticsFlags"));
00497 }
00498
00509 inline Tp::PendingVariant *requestPropertyEnableMetrics() const
00510 {
00511 return internalRequestProperty(QLatin1String("EnableMetrics"));
00512 }
00513
00520 Tp::PendingVariantMap *requestAllProperties() const
00521 {
00522 return internalRequestAllProperties();
00523 }
00524
00525 protected:
00526 virtual void invalidate(Tp::DBusProxy *, const QString &, const QString &);
00527 };
00528
00536 class TP_QT_EXPORT CallContentMediaDescriptionInterfaceRTCPFeedbackInterface : public Tp::AbstractInterface
00537 {
00538 Q_OBJECT
00539
00540 public:
00547 static inline QLatin1String staticInterfaceName()
00548 {
00549 return QLatin1String("org.freedesktop.Telepathy.Call1.Content.MediaDescription.Interface.RTCPFeedback");
00550 }
00551
00559 CallContentMediaDescriptionInterfaceRTCPFeedbackInterface(
00560 const QString& busName,
00561 const QString& objectPath,
00562 QObject* parent = 0
00563 );
00564
00573 CallContentMediaDescriptionInterfaceRTCPFeedbackInterface(
00574 const QDBusConnection& connection,
00575 const QString& busName,
00576 const QString& objectPath,
00577 QObject* parent = 0
00578 );
00579
00586 CallContentMediaDescriptionInterfaceRTCPFeedbackInterface(Tp::DBusProxy *proxy);
00587
00595 explicit CallContentMediaDescriptionInterfaceRTCPFeedbackInterface(const Tp::Client::CallContentMediaDescriptionInterface& mainInterface);
00596
00604 CallContentMediaDescriptionInterfaceRTCPFeedbackInterface(const Tp::Client::CallContentMediaDescriptionInterface& mainInterface, QObject* parent);
00605
00615 inline Tp::PendingVariant *requestPropertyFeedbackMessages() const
00616 {
00617 return internalRequestProperty(QLatin1String("FeedbackMessages"));
00618 }
00619
00630 inline Tp::PendingVariant *requestPropertyDoesAVPF() const
00631 {
00632 return internalRequestProperty(QLatin1String("DoesAVPF"));
00633 }
00634
00641 Tp::PendingVariantMap *requestAllProperties() const
00642 {
00643 return internalRequestAllProperties();
00644 }
00645
00646 protected:
00647 virtual void invalidate(Tp::DBusProxy *, const QString &, const QString &);
00648 };
00649
00657 class TP_QT_EXPORT CallContentMediaDescriptionInterfaceRTPHeaderExtensionsInterface : public Tp::AbstractInterface
00658 {
00659 Q_OBJECT
00660
00661 public:
00668 static inline QLatin1String staticInterfaceName()
00669 {
00670 return QLatin1String("org.freedesktop.Telepathy.Call1.Content.MediaDescription.Interface.RTPHeaderExtensions");
00671 }
00672
00680 CallContentMediaDescriptionInterfaceRTPHeaderExtensionsInterface(
00681 const QString& busName,
00682 const QString& objectPath,
00683 QObject* parent = 0
00684 );
00685
00694 CallContentMediaDescriptionInterfaceRTPHeaderExtensionsInterface(
00695 const QDBusConnection& connection,
00696 const QString& busName,
00697 const QString& objectPath,
00698 QObject* parent = 0
00699 );
00700
00707 CallContentMediaDescriptionInterfaceRTPHeaderExtensionsInterface(Tp::DBusProxy *proxy);
00708
00716 explicit CallContentMediaDescriptionInterfaceRTPHeaderExtensionsInterface(const Tp::Client::CallContentMediaDescriptionInterface& mainInterface);
00717
00725 CallContentMediaDescriptionInterfaceRTPHeaderExtensionsInterface(const Tp::Client::CallContentMediaDescriptionInterface& mainInterface, QObject* parent);
00726
00736 inline Tp::PendingVariant *requestPropertyHeaderExtensions() const
00737 {
00738 return internalRequestProperty(QLatin1String("HeaderExtensions"));
00739 }
00740
00747 Tp::PendingVariantMap *requestAllProperties() const
00748 {
00749 return internalRequestAllProperties();
00750 }
00751
00752 protected:
00753 virtual void invalidate(Tp::DBusProxy *, const QString &, const QString &);
00754 };
00755 }
00756 }
00757 Q_DECLARE_METATYPE(Tp::Client::CallContentMediaDescriptionInterface*)
00758 Q_DECLARE_METATYPE(Tp::Client::CallContentMediaDescriptionInterfaceRTCPExtendedReportsInterface*)
00759 Q_DECLARE_METATYPE(Tp::Client::CallContentMediaDescriptionInterfaceRTCPFeedbackInterface*)
00760 Q_DECLARE_METATYPE(Tp::Client::CallContentMediaDescriptionInterfaceRTPHeaderExtensionsInterface*)