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.Endpoint");
68 const QString& busName,
69 const QString& objectPath,
82 const QDBusConnection& connection,
83 const QString& busName,
84 const QString& objectPath,
110 return internalRequestProperty(QLatin1String(
"RemoteCredentials"));
124 return internalRequestProperty(QLatin1String(
"RemoteCandidates"));
159 return internalRequestProperty(QLatin1String(
"SelectedCandidatePairs"));
174 return internalRequestProperty(QLatin1String(
"EndpointState"));
190 return internalRequestProperty(QLatin1String(
"Transport"));
215 return internalRequestProperty(QLatin1String(
"Controlling"));
230 return internalRequestProperty(QLatin1String(
"IsICELite"));
241 return internalRequestAllProperties();
280 if (!invalidationReason().isEmpty()) {
281 return QDBusPendingReply<>(QDBusMessage::createError(
282 invalidationReason(),
283 invalidationMessage()
287 QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
288 this->staticInterfaceName(), QLatin1String(
"SetSelectedCandidatePair"));
289 callMessage << QVariant::fromValue(localCandidate) << QVariant::fromValue(remoteCandidate);
290 return this->connection().asyncCall(callMessage, timeout);
313 if (!invalidationReason().isEmpty()) {
314 return QDBusPendingReply<>(QDBusMessage::createError(
315 invalidationReason(),
316 invalidationMessage()
320 QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
321 this->staticInterfaceName(), QLatin1String(
"SetEndpointState"));
322 callMessage << QVariant::fromValue(component) << QVariant::fromValue(state);
323 return this->connection().asyncCall(callMessage, timeout);
347 if (!invalidationReason().isEmpty()) {
348 return QDBusPendingReply<>(QDBusMessage::createError(
349 invalidationReason(),
350 invalidationMessage()
354 QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
355 this->staticInterfaceName(), QLatin1String(
"AcceptSelectedCandidatePair"));
356 callMessage << QVariant::fromValue(localCandidate) << QVariant::fromValue(remoteCandidate);
357 return this->connection().asyncCall(callMessage, timeout);
381 if (!invalidationReason().isEmpty()) {
382 return QDBusPendingReply<>(QDBusMessage::createError(
383 invalidationReason(),
384 invalidationMessage()
388 QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
389 this->staticInterfaceName(), QLatin1String(
"RejectSelectedCandidatePair"));
390 callMessage << QVariant::fromValue(localCandidate) << QVariant::fromValue(remoteCandidate);
391 return this->connection().asyncCall(callMessage, timeout);
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(
"SetControlling"));
422 callMessage << QVariant::fromValue(controlling);
423 return this->connection().asyncCall(callMessage, timeout);
442 void RemoteCredentialsSet(
const QString& username,
const QString& password);
488 void EndpointStateChanged(uint component, uint state);
499 void ControllingChanged(
bool controlling);
502 virtual void invalidate(
Tp::DBusProxy *,
const QString &,
const QString &);
Definition: buildqt4/TelepathyQt/_gen/types.h:379
Tp::PendingVariantMap * requestAllProperties() const
Definition: cli-call-stream-endpoint.h:239
Tp::PendingVariant * requestPropertyRemoteCredentials() const
Definition: cli-call-stream-endpoint.h:108
The PendingVariant class is a generic subclass of PendingOperation representing a pending D-Bus metho...
Definition: pending-variant.h:38
Definition: cli-call-stream-endpoint.h:44
Tp::PendingVariant * requestPropertyRemoteCandidates() const
Definition: cli-call-stream-endpoint.h:122
QDBusPendingReply SetEndpointState(uint component, uint state, int timeout=-1)
Definition: cli-call-stream-endpoint.h:311
The PendingVariantMap class is a generic subclass of PendingOperation representing a pending D-Bus me...
Definition: pending-variant-map.h:38
Tp::PendingVariant * requestPropertyTransport() const
Definition: cli-call-stream-endpoint.h:188
QDBusPendingReply AcceptSelectedCandidatePair(const Tp::Candidate &localCandidate, const Tp::Candidate &remoteCandidate, int timeout=-1)
Definition: cli-call-stream-endpoint.h:345
static QLatin1String staticInterfaceName()
Definition: cli-call-stream-endpoint.h:55
Tp::PendingVariant * requestPropertyIsICELite() const
Definition: cli-call-stream-endpoint.h:228
QDBusPendingReply RejectSelectedCandidatePair(const Tp::Candidate &localCandidate, const Tp::Candidate &remoteCandidate, int timeout=-1)
Definition: cli-call-stream-endpoint.h:379
Tp::PendingVariant * requestPropertyEndpointState() const
Definition: cli-call-stream-endpoint.h:172
Tp::PendingVariant * requestPropertySelectedCandidatePairs() const
Definition: cli-call-stream-endpoint.h:157
The DBusProxy class is a base class representing a remote object available over D-Bus.
Definition: dbus-proxy.h:42
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
QDBusPendingReply SetSelectedCandidatePair(const Tp::Candidate &localCandidate, const Tp::Candidate &remoteCandidate, int timeout=-1)
Definition: cli-call-stream-endpoint.h:278
QList< Candidate > CandidateList
Definition: buildqt4/TelepathyQt/_gen/types.h:413
QDBusPendingReply SetControlling(bool controlling, int timeout=-1)
Definition: cli-call-stream-endpoint.h:411
Tp::PendingVariant * requestPropertyControlling() const
Definition: cli-call-stream-endpoint.h:213