8 #ifndef IN_TP_QT_HEADER 12 #include <TelepathyQt/Types> 20 #include <QDBusPendingReply> 22 #include <TelepathyQt/AbstractInterface> 23 #include <TelepathyQt/DBusProxy> 24 #include <TelepathyQt/Global> 29 class PendingOperation;
57 return QLatin1String(
"org.freedesktop.Telepathy.Call1.Content");
68 const QString& busName,
69 const QString& objectPath,
82 const QDBusConnection& connection,
83 const QString& busName,
84 const QString& objectPath,
113 return internalRequestProperty(QLatin1String(
"Interfaces"));
137 return internalRequestProperty(QLatin1String(
"Name"));
153 return internalRequestProperty(QLatin1String(
"Type"));
167 return internalRequestProperty(QLatin1String(
"Disposition"));
197 return internalRequestProperty(QLatin1String(
"Streams"));
208 return internalRequestAllProperties();
224 inline QDBusPendingReply<>
Remove(
int timeout = -1)
226 if (!invalidationReason().isEmpty()) {
227 return QDBusPendingReply<>(QDBusMessage::createError(
228 invalidationReason(),
229 invalidationMessage()
233 QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
234 this->staticInterfaceName(), QLatin1String(
"Remove"));
235 return this->connection().asyncCall(callMessage, timeout);
270 virtual void invalidate(
Tp::DBusProxy *,
const QString &,
const QString &);
293 return QLatin1String(
"org.freedesktop.Telepathy.Call1.Content.Interface.AudioControl");
304 const QString& busName,
305 const QString& objectPath,
318 const QDBusConnection& connection,
319 const QString& busName,
320 const QString& objectPath,
363 return internalRequestProperty(QLatin1String(
"RequestedInputVolume"));
379 return internalRequestProperty(QLatin1String(
"RequestedOutputVolume"));
390 return internalRequestAllProperties();
413 if (!invalidationReason().isEmpty()) {
414 return QDBusPendingReply<>(QDBusMessage::createError(
415 invalidationReason(),
416 invalidationMessage()
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);
445 if (!invalidationReason().isEmpty()) {
446 return QDBusPendingReply<>(QDBusMessage::createError(
447 invalidationReason(),
448 invalidationMessage()
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);
459 virtual void invalidate(
Tp::DBusProxy *,
const QString &,
const QString &);
482 return QLatin1String(
"org.freedesktop.Telepathy.Call1.Content.Interface.DTMF");
493 const QString& busName,
494 const QString& objectPath,
507 const QDBusConnection& connection,
508 const QString& busName,
509 const QString& objectPath,
552 return internalRequestProperty(QLatin1String(
"CurrentlySendingTones"));
574 return internalRequestProperty(QLatin1String(
"DeferredTones"));
585 return internalRequestAllProperties();
612 inline QDBusPendingReply<>
StartTone(uchar event,
int timeout = -1)
614 if (!invalidationReason().isEmpty()) {
615 return QDBusPendingReply<>(QDBusMessage::createError(
616 invalidationReason(),
617 invalidationMessage()
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);
642 inline QDBusPendingReply<>
StopTone(
int timeout = -1)
644 if (!invalidationReason().isEmpty()) {
645 return QDBusPendingReply<>(QDBusMessage::createError(
646 invalidationReason(),
647 invalidationMessage()
651 QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
652 this->staticInterfaceName(), QLatin1String(
"StopTone"));
653 return this->connection().asyncCall(callMessage, timeout);
701 inline QDBusPendingReply<>
MultipleTones(
const QString& tones,
int timeout = -1)
703 if (!invalidationReason().isEmpty()) {
704 return QDBusPendingReply<>(QDBusMessage::createError(
705 invalidationReason(),
706 invalidationMessage()
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);
743 void TonesDeferred(
const QString& tones);
761 void SendingTones(
const QString& tones);
774 void StoppedTones(
bool cancelled);
777 virtual void invalidate(
Tp::DBusProxy *,
const QString &,
const QString &);
800 return QLatin1String(
"org.freedesktop.Telepathy.Call1.Content.Interface.Media");
811 const QString& busName,
812 const QString& objectPath,
825 const QDBusConnection& connection,
826 const QString& busName,
827 const QString& objectPath,
871 return internalRequestProperty(QLatin1String(
"RemoteMediaDescriptions"));
886 return internalRequestProperty(QLatin1String(
"LocalMediaDescriptions"));
919 return internalRequestProperty(QLatin1String(
"MediaDescriptionOffer"));
935 return internalRequestProperty(QLatin1String(
"Packetization"));
950 return internalRequestProperty(QLatin1String(
"CurrentDTMFEvent"));
965 return internalRequestProperty(QLatin1String(
"CurrentDTMFState"));
976 return internalRequestAllProperties();
1002 if (!invalidationReason().isEmpty()) {
1003 return QDBusPendingReply<>(QDBusMessage::createError(
1004 invalidationReason(),
1005 invalidationMessage()
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);
1038 if (!invalidationReason().isEmpty()) {
1039 return QDBusPendingReply<>(QDBusMessage::createError(
1040 invalidationReason(),
1041 invalidationMessage()
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);
1067 if (!invalidationReason().isEmpty()) {
1068 return QDBusPendingReply<>(QDBusMessage::createError(
1069 invalidationReason(),
1070 invalidationMessage()
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);
1112 void NewMediaDescriptionOffer(
const QDBusObjectPath& mediaDescription,
const QVariantMap& properties);
1125 void MediaDescriptionOfferDone();
1142 void LocalMediaDescriptionChanged(
const QVariantMap& updatedMediaDescription);
1179 void MediaDescriptionsRemoved(
const Tp::UIntList& removedMediaDescriptions);
1198 void DTMFChangeRequested(uchar event, uint state);
1201 virtual void invalidate(
Tp::DBusProxy *,
const QString &,
const QString &);
1224 return QLatin1String(
"org.freedesktop.Telepathy.Call1.Content.Interface.VideoControl");
1235 const QString& busName,
1236 const QString& objectPath,
1249 const QDBusConnection& connection,
1250 const QString& busName,
1251 const QString& objectPath,
1293 return internalRequestProperty(QLatin1String(
"VideoResolution"));
1308 return internalRequestProperty(QLatin1String(
"Bitrate"));
1323 return internalRequestProperty(QLatin1String(
"Framerate"));
1338 return internalRequestProperty(QLatin1String(
"MTU"));
1352 return internalRequestProperty(QLatin1String(
"ManualKeyFrames"));
1363 return internalRequestAllProperties();
1373 void KeyFrameRequested();
1387 void BitrateChanged(uint newBitrate);
1394 void FramerateChanged(uint newFramerate);
1401 void MTUChanged(uint newMTU);
1404 virtual void invalidate(
Tp::DBusProxy *,
const QString &,
const QString &);
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: cli-call-content.h:280
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
Definition: cli-call-content.h:1211
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