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.Media.StreamHandler");
68 const QString& busName,
69 const QString& objectPath,
82 const QDBusConnection& connection,
83 const QString& busName,
84 const QString& objectPath,
113 return internalRequestProperty(QLatin1String(
"STUNServers"));
129 return internalRequestProperty(QLatin1String(
"CreatedLocally"));
175 return internalRequestProperty(QLatin1String(
"NATTraversal"));
260 return internalRequestProperty(QLatin1String(
"RelayInfo"));
271 return internalRequestAllProperties();
285 inline QDBusPendingReply<>
CodecChoice(uint codecID,
int timeout = -1)
287 if (!invalidationReason().isEmpty()) {
288 return QDBusPendingReply<>(QDBusMessage::createError(
289 invalidationReason(),
290 invalidationMessage()
294 QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
295 this->staticInterfaceName(), QLatin1String(
"CodecChoice"));
296 callMessage << QVariant::fromValue(codecID);
297 return this->connection().asyncCall(callMessage, timeout);
320 inline QDBusPendingReply<>
Error(uint errorCode,
const QString& message,
int timeout = -1)
322 if (!invalidationReason().isEmpty()) {
323 return QDBusPendingReply<>(QDBusMessage::createError(
324 invalidationReason(),
325 invalidationMessage()
329 QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
330 this->staticInterfaceName(), QLatin1String(
"Error"));
331 callMessage << QVariant::fromValue(errorCode) << QVariant::fromValue(message);
332 return this->connection().asyncCall(callMessage, timeout);
348 if (!invalidationReason().isEmpty()) {
349 return QDBusPendingReply<>(QDBusMessage::createError(
350 invalidationReason(),
351 invalidationMessage()
355 QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
356 this->staticInterfaceName(), QLatin1String(
"NativeCandidatesPrepared"));
357 return this->connection().asyncCall(callMessage, timeout);
371 inline QDBusPendingReply<>
NewActiveCandidatePair(
const QString& nativeCandidateID,
const QString& remoteCandidateID,
int timeout = -1)
373 if (!invalidationReason().isEmpty()) {
374 return QDBusPendingReply<>(QDBusMessage::createError(
375 invalidationReason(),
376 invalidationMessage()
380 QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
381 this->staticInterfaceName(), QLatin1String(
"NewActiveCandidatePair"));
382 callMessage << QVariant::fromValue(nativeCandidateID) << QVariant::fromValue(remoteCandidateID);
383 return this->connection().asyncCall(callMessage, timeout);
415 if (!invalidationReason().isEmpty()) {
416 return QDBusPendingReply<>(QDBusMessage::createError(
417 invalidationReason(),
418 invalidationMessage()
422 QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
423 this->staticInterfaceName(), QLatin1String(
"NewActiveTransportPair"));
424 callMessage << QVariant::fromValue(nativeCandidateID) << QVariant::fromValue(nativeTransport) << QVariant::fromValue(remoteCandidateID) << QVariant::fromValue(remoteTransport);
425 return this->connection().asyncCall(callMessage, timeout);
464 if (!invalidationReason().isEmpty()) {
465 return QDBusPendingReply<>(QDBusMessage::createError(
466 invalidationReason(),
467 invalidationMessage()
471 QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
472 this->staticInterfaceName(), QLatin1String(
"NewNativeCandidate"));
473 callMessage << QVariant::fromValue(candidateID) << QVariant::fromValue(transports);
474 return this->connection().asyncCall(callMessage, timeout);
494 if (!invalidationReason().isEmpty()) {
495 return QDBusPendingReply<>(QDBusMessage::createError(
496 invalidationReason(),
497 invalidationMessage()
501 QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
502 this->staticInterfaceName(), QLatin1String(
"Ready"));
503 callMessage << QVariant::fromValue(codecs);
504 return this->connection().asyncCall(callMessage, timeout);
538 if (!invalidationReason().isEmpty()) {
539 return QDBusPendingReply<>(QDBusMessage::createError(
540 invalidationReason(),
541 invalidationMessage()
545 QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
546 this->staticInterfaceName(), QLatin1String(
"SetLocalCodecs"));
547 callMessage << QVariant::fromValue(codecs);
548 return this->connection().asyncCall(callMessage, timeout);
562 inline QDBusPendingReply<>
StreamState(uint state,
int timeout = -1)
564 if (!invalidationReason().isEmpty()) {
565 return QDBusPendingReply<>(QDBusMessage::createError(
566 invalidationReason(),
567 invalidationMessage()
571 QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
572 this->staticInterfaceName(), QLatin1String(
"StreamState"));
573 callMessage << QVariant::fromValue(state);
574 return this->connection().asyncCall(callMessage, timeout);
597 if (!invalidationReason().isEmpty()) {
598 return QDBusPendingReply<>(QDBusMessage::createError(
599 invalidationReason(),
600 invalidationMessage()
604 QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
605 this->staticInterfaceName(), QLatin1String(
"SupportedCodecs"));
606 callMessage << QVariant::fromValue(codecs);
607 return this->connection().asyncCall(callMessage, timeout);
630 if (!invalidationReason().isEmpty()) {
631 return QDBusPendingReply<>(QDBusMessage::createError(
632 invalidationReason(),
633 invalidationMessage()
637 QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
638 this->staticInterfaceName(), QLatin1String(
"CodecsUpdated"));
639 callMessage << QVariant::fromValue(codecs);
640 return this->connection().asyncCall(callMessage, timeout);
658 inline QDBusPendingReply<>
HoldState(
bool held,
int timeout = -1)
660 if (!invalidationReason().isEmpty()) {
661 return QDBusPendingReply<>(QDBusMessage::createError(
662 invalidationReason(),
663 invalidationMessage()
667 QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
668 this->staticInterfaceName(), QLatin1String(
"HoldState"));
669 callMessage << QVariant::fromValue(held);
670 return this->connection().asyncCall(callMessage, timeout);
687 if (!invalidationReason().isEmpty()) {
688 return QDBusPendingReply<>(QDBusMessage::createError(
689 invalidationReason(),
690 invalidationMessage()
694 QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
695 this->staticInterfaceName(), QLatin1String(
"UnholdFailure"));
696 return this->connection().asyncCall(callMessage, timeout);
717 if (!invalidationReason().isEmpty()) {
718 return QDBusPendingReply<>(QDBusMessage::createError(
719 invalidationReason(),
720 invalidationMessage()
724 QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
725 this->staticInterfaceName(), QLatin1String(
"SupportedFeedbackMessages"));
726 callMessage << QVariant::fromValue(messages);
727 return this->connection().asyncCall(callMessage, timeout);
749 if (!invalidationReason().isEmpty()) {
750 return QDBusPendingReply<>(QDBusMessage::createError(
751 invalidationReason(),
752 invalidationMessage()
756 QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
757 this->staticInterfaceName(), QLatin1String(
"SupportedHeaderExtensions"));
758 callMessage << QVariant::fromValue(headerExtensions);
759 return this->connection().asyncCall(callMessage, timeout);
799 void RemoveRemoteCandidate(
const QString& candidateID);
808 void SetActiveCandidatePair(
const QString& nativeCandidateID,
const QString& remoteCandidateID);
846 void SetStreamPlaying(
bool playing);
854 void SetStreamSending(
bool sending);
866 void StartTelephonyEvent(uchar event);
887 void StartNamedTelephonyEvent(uchar event, uint codecID);
901 void StartSoundTelephonyEvent(uchar event);
909 void StopTelephonyEvent();
944 void SetStreamHeld(
bool held);
977 virtual void invalidate(
Tp::DBusProxy *,
const QString &,
const QString &);
Tp::PendingVariant * requestPropertyNATTraversal() const
Definition: cli-media-stream-handler.h:173
QList< MediaStreamHandlerCandidate > MediaStreamHandlerCandidateList
Definition: build/TelepathyQt/_gen/types.h:3714
Definition: build/TelepathyQt/_gen/types.h:1978
QDBusPendingReply SupportedCodecs(const Tp::MediaStreamHandlerCodecList &codecs, int timeout=-1)
Definition: cli-media-stream-handler.h:595
Tp::PendingVariant * requestPropertyCreatedLocally() const
Definition: cli-media-stream-handler.h:127
QDBusPendingReply NewNativeCandidate(const QString &candidateID, const Tp::MediaStreamHandlerTransportList &transports, int timeout=-1)
Definition: cli-media-stream-handler.h:462
QDBusPendingReply SetLocalCodecs(const Tp::MediaStreamHandlerCodecList &codecs, int timeout=-1)
Definition: cli-media-stream-handler.h:536
QDBusPendingReply NewActiveTransportPair(const QString &nativeCandidateID, const Tp::MediaStreamHandlerTransport &nativeTransport, const QString &remoteCandidateID, const Tp::MediaStreamHandlerTransport &remoteTransport, int timeout=-1)
Definition: cli-media-stream-handler.h:413
QDBusPendingReply HoldState(bool held, int timeout=-1)
Definition: cli-media-stream-handler.h:658
QList< MediaStreamHandlerCodec > MediaStreamHandlerCodecList
Definition: build/TelepathyQt/_gen/types.h:3767
static QLatin1String staticInterfaceName()
Definition: cli-media-stream-handler.h:55
The AbstractInterface class is the base class for all client side D-Bus interfaces,...
Definition: abstract-interface.h:42
The PendingVariant class is a generic subclass of PendingOperation representing a pending D-Bus metho...
Definition: pending-variant.h:38
QDBusPendingReply UnholdFailure(int timeout=-1)
Definition: cli-media-stream-handler.h:685
QDBusPendingReply NewActiveCandidatePair(const QString &nativeCandidateID, const QString &remoteCandidateID, int timeout=-1)
Definition: cli-media-stream-handler.h:371
Tp::PendingVariant * requestPropertyRelayInfo() const
Definition: cli-media-stream-handler.h:258
QDBusPendingReply SupportedFeedbackMessages(const Tp::RTCPFeedbackMessageMap &messages, int timeout=-1)
Definition: cli-media-stream-handler.h:715
QDBusPendingReply Ready(const Tp::MediaStreamHandlerCodecList &codecs, int timeout=-1)
Definition: cli-media-stream-handler.h:492
QDBusPendingReply StreamState(uint state, int timeout=-1)
Definition: cli-media-stream-handler.h:562
QDBusPendingReply Error(uint errorCode, const QString &message, int timeout=-1)
Definition: cli-media-stream-handler.h:320
Tp::PendingVariantMap * requestAllProperties() const
Definition: cli-media-stream-handler.h:269
QDBusPendingReply CodecChoice(uint codecID, int timeout=-1)
Definition: cli-media-stream-handler.h:285
Tp::PendingVariant * requestPropertySTUNServers() const
Definition: cli-media-stream-handler.h:111
QDBusPendingReply SupportedHeaderExtensions(const Tp::RTPHeaderExtensionsList &headerExtensions, int timeout=-1)
Definition: cli-media-stream-handler.h:747
QDBusPendingReply NativeCandidatesPrepared(int timeout=-1)
Definition: cli-media-stream-handler.h:346
QList< MediaStreamHandlerTransport > MediaStreamHandlerTransportList
Definition: build/TelepathyQt/_gen/types.h:2006
Definition: cli-media-stream-handler.h:44
Definition: build/TelepathyQt/_gen/types.h:3996
QDBusPendingReply CodecsUpdated(const Tp::MediaStreamHandlerCodecList &codecs, int timeout=-1)
Definition: cli-media-stream-handler.h:628
The PendingVariantMap class is a generic subclass of PendingOperation representing a pending D-Bus me...
Definition: pending-variant-map.h:38
Definition: abstract-adaptor.cpp:31
QList< RTPHeaderExtension > RTPHeaderExtensionsList
Definition: build/TelepathyQt/_gen/types.h:2549
The DBusProxy class is a base class representing a remote object available over D-Bus.
Definition: dbus-proxy.h:42