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.Stream");
68 const QString& busName,
69 const QString& objectPath,
82 const QDBusConnection& connection,
83 const QString& busName,
84 const QString& objectPath,
111 return internalRequestProperty(QLatin1String(
"Interfaces"));
144 return internalRequestProperty(QLatin1String(
"RemoteMembers"));
160 return internalRequestProperty(QLatin1String(
"RemoteMemberIdentifiers"));
202 return internalRequestProperty(QLatin1String(
"LocalSendingState"));
222 return internalRequestProperty(QLatin1String(
"CanRequestReceiving"));
233 return internalRequestAllProperties();
262 inline QDBusPendingReply<>
SetSending(
bool send,
int timeout = -1)
264 if (!invalidationReason().isEmpty()) {
265 return QDBusPendingReply<>(QDBusMessage::createError(
266 invalidationReason(),
267 invalidationMessage()
271 QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
272 this->staticInterfaceName(), QLatin1String(
"SetSending"));
273 callMessage << QVariant::fromValue(send);
274 return this->connection().asyncCall(callMessage, timeout);
304 if (!invalidationReason().isEmpty()) {
305 return QDBusPendingReply<>(QDBusMessage::createError(
306 invalidationReason(),
307 invalidationMessage()
311 QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
312 this->staticInterfaceName(), QLatin1String(
"RequestReceiving"));
313 callMessage << QVariant::fromValue(contact) << QVariant::fromValue(receive);
314 return this->connection().asyncCall(callMessage, timeout);
367 virtual void invalidate(
Tp::DBusProxy *,
const QString &,
const QString &);
390 return QLatin1String(
"org.freedesktop.Telepathy.Call1.Stream.Interface.Media");
401 const QString& busName,
402 const QString& objectPath,
415 const QDBusConnection& connection,
416 const QString& busName,
417 const QString& objectPath,
464 return internalRequestProperty(QLatin1String(
"SendingState"));
482 return internalRequestProperty(QLatin1String(
"ReceivingState"));
496 return internalRequestProperty(QLatin1String(
"Transport"));
510 return internalRequestProperty(QLatin1String(
"LocalCandidates"));
528 return internalRequestProperty(QLatin1String(
"LocalCredentials"));
554 return internalRequestProperty(QLatin1String(
"STUNServers"));
656 return internalRequestProperty(QLatin1String(
"RelayInfo"));
680 return internalRequestProperty(QLatin1String(
"HasServerInfo"));
695 return internalRequestProperty(QLatin1String(
"Endpoints"));
710 return internalRequestProperty(QLatin1String(
"ICERestartPending"));
721 return internalRequestAllProperties();
747 if (!invalidationReason().isEmpty()) {
748 return QDBusPendingReply<>(QDBusMessage::createError(
749 invalidationReason(),
750 invalidationMessage()
754 QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
755 this->staticInterfaceName(), QLatin1String(
"CompleteSendingStateChange"));
756 callMessage << QVariant::fromValue(state);
757 return this->connection().asyncCall(callMessage, timeout);
773 inline QDBusPendingReply<>
ReportSendingFailure(uint reason,
const QString& error,
const QString& message,
int timeout = -1)
775 if (!invalidationReason().isEmpty()) {
776 return QDBusPendingReply<>(QDBusMessage::createError(
777 invalidationReason(),
778 invalidationMessage()
782 QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
783 this->staticInterfaceName(), QLatin1String(
"ReportSendingFailure"));
784 callMessage << QVariant::fromValue(reason) << QVariant::fromValue(error) << QVariant::fromValue(message);
785 return this->connection().asyncCall(callMessage, timeout);
810 if (!invalidationReason().isEmpty()) {
811 return QDBusPendingReply<>(QDBusMessage::createError(
812 invalidationReason(),
813 invalidationMessage()
817 QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
818 this->staticInterfaceName(), QLatin1String(
"CompleteReceivingStateChange"));
819 callMessage << QVariant::fromValue(state);
820 return this->connection().asyncCall(callMessage, timeout);
836 inline QDBusPendingReply<>
ReportReceivingFailure(uint reason,
const QString& error,
const QString& message,
int timeout = -1)
838 if (!invalidationReason().isEmpty()) {
839 return QDBusPendingReply<>(QDBusMessage::createError(
840 invalidationReason(),
841 invalidationMessage()
845 QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
846 this->staticInterfaceName(), QLatin1String(
"ReportReceivingFailure"));
847 callMessage << QVariant::fromValue(reason) << QVariant::fromValue(error) << QVariant::fromValue(message);
848 return this->connection().asyncCall(callMessage, timeout);
872 inline QDBusPendingReply<>
SetCredentials(
const QString& username,
const QString& password,
int timeout = -1)
874 if (!invalidationReason().isEmpty()) {
875 return QDBusPendingReply<>(QDBusMessage::createError(
876 invalidationReason(),
877 invalidationMessage()
881 QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
882 this->staticInterfaceName(), QLatin1String(
"SetCredentials"));
883 callMessage << QVariant::fromValue(username) << QVariant::fromValue(password);
884 return this->connection().asyncCall(callMessage, timeout);
905 if (!invalidationReason().isEmpty()) {
906 return QDBusPendingReply<>(QDBusMessage::createError(
907 invalidationReason(),
908 invalidationMessage()
912 QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
913 this->staticInterfaceName(), QLatin1String(
"AddCandidates"));
914 callMessage << QVariant::fromValue(candidates);
915 return this->connection().asyncCall(callMessage, timeout);
933 if (!invalidationReason().isEmpty()) {
934 return QDBusPendingReply<>(QDBusMessage::createError(
935 invalidationReason(),
936 invalidationMessage()
940 QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
941 this->staticInterfaceName(), QLatin1String(
"FinishInitialCandidates"));
942 return this->connection().asyncCall(callMessage, timeout);
962 if (!invalidationReason().isEmpty()) {
963 return QDBusPendingReply<>(QDBusMessage::createError(
964 invalidationReason(),
965 invalidationMessage()
969 QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
970 this->staticInterfaceName(), QLatin1String(
"Fail"));
971 callMessage << QVariant::fromValue(reason);
972 return this->connection().asyncCall(callMessage, timeout);
988 void SendingStateChanged(uint state);
999 void ReceivingStateChanged(uint state);
1019 void LocalCredentialsChanged(
const QString& username,
const QString& password);
1045 void ServerInfoRetrieved();
1069 void ICERestartRequested();
1072 virtual void invalidate(
Tp::DBusProxy *,
const QString &,
const QString &);
QList< StringVariantMap > StringVariantMapList
Definition: build/TelepathyQt/_gen/types.h:3133
Tp::PendingVariant * requestPropertyInterfaces() const
Definition: cli-call-stream.h:109
QDBusPendingReply ReportReceivingFailure(uint reason, const QString &error, const QString &message, int timeout=-1)
Definition: cli-call-stream.h:836
QDBusPendingReply AddCandidates(const Tp::CandidateList &candidates, int timeout=-1)
Definition: cli-call-stream.h:903
Tp::PendingVariant * requestPropertyRelayInfo() const
Definition: cli-call-stream.h:654
static QLatin1String staticInterfaceName()
Definition: cli-call-stream.h:55
Definition: build/TelepathyQt/_gen/types.h:109
QDBusPendingReply CompleteReceivingStateChange(uint state, int timeout=-1)
Definition: cli-call-stream.h:808
Tp::PendingVariant * requestPropertyICERestartPending() const
Definition: cli-call-stream.h:708
Tp::PendingVariant * requestPropertyLocalCandidates() const
Definition: cli-call-stream.h:508
QDBusPendingReply CompleteSendingStateChange(uint state, int timeout=-1)
Definition: cli-call-stream.h:745
Tp::PendingVariant * requestPropertyHasServerInfo() const
Definition: cli-call-stream.h:678
Definition: cli-call-stream.h:44
Definition: build/TelepathyQt/_gen/types.h:1313
Tp::PendingVariant * requestPropertySTUNServers() const
Definition: cli-call-stream.h:552
Tp::PendingVariant * requestPropertyRemoteMemberIdentifiers() const
Definition: cli-call-stream.h:158
Tp::PendingVariant * requestPropertyCanRequestReceiving() const
Definition: cli-call-stream.h:220
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 Fail(const Tp::CallStateReason &reason, int timeout=-1)
Definition: cli-call-stream.h:960
Definition: cli-call-stream.h:377
QDBusPendingReply ReportSendingFailure(uint reason, const QString &error, const QString &message, int timeout=-1)
Definition: cli-call-stream.h:773
QDBusPendingReply SetSending(bool send, int timeout=-1)
Definition: cli-call-stream.h:262
Tp::PendingVariantMap * requestAllProperties() const
Definition: cli-call-stream.h:719
Tp::PendingVariantMap * requestAllProperties() const
Definition: cli-call-stream.h:231
static QLatin1String staticInterfaceName()
Definition: cli-call-stream.h:388
QDBusPendingReply SetCredentials(const QString &username, const QString &password, int timeout=-1)
Definition: cli-call-stream.h:872
QList< Candidate > CandidateList
Definition: build/TelepathyQt/_gen/types.h:429
Definition: build/TelepathyQt/_gen/types.h:85
Definition: build/TelepathyQt/_gen/types.h:336
Tp::PendingVariant * requestPropertySendingState() const
Definition: cli-call-stream.h:462
Tp::PendingVariant * requestPropertyLocalCredentials() const
Definition: cli-call-stream.h:526
QDBusPendingReply FinishInitialCandidates(int timeout=-1)
Definition: cli-call-stream.h:931
QDBusPendingReply RequestReceiving(uint contact, bool receive, int timeout=-1)
Definition: cli-call-stream.h:302
Tp::PendingVariant * requestPropertyReceivingState() const
Definition: cli-call-stream.h:480
Definition: build/TelepathyQt/_gen/types.h:1677
The PendingVariantMap class is a generic subclass of PendingOperation representing a pending D-Bus me...
Definition: pending-variant-map.h:38
QList< SocketAddressIP > SocketAddressIPList
Definition: build/TelepathyQt/_gen/types.h:2920
Tp::PendingVariant * requestPropertyEndpoints() const
Definition: cli-call-stream.h:693
Definition: abstract-adaptor.cpp:31
Tp::PendingVariant * requestPropertyTransport() const
Definition: cli-call-stream.h:494
Tp::PendingVariant * requestPropertyLocalSendingState() const
Definition: cli-call-stream.h:200
The DBusProxy class is a base class representing a remote object available over D-Bus.
Definition: dbus-proxy.h:42
Tp::PendingVariant * requestPropertyRemoteMembers() const
Definition: cli-call-stream.h:142