| Home · All Classes · All Namespaces · Modules · Functions · Files

cli-call-stream-endpoint.h
1 /*
2 * This file contains D-Bus client proxy classes generated by qt-client-gen.py.
3 *
4 * This file can be distributed under the same terms as the specification from
5 * which it was generated.
6 */
7
8 #ifndef IN_TP_QT_HEADER
9 #error IN_TP_QT_HEADER
10 #endif
11
12 #include <TelepathyQt/Types>
13
14 #include <QtGlobal>
15
16 #include <QString>
17 #include <QObject>
18 #include <QVariant>
19
20 #include <QDBusPendingReply>
21
22 #include <TelepathyQt/AbstractInterface>
23 #include <TelepathyQt/DBusProxy>
24 #include <TelepathyQt/Global>
25
26 namespace Tp
27 {
28 class PendingVariant;
29 class PendingOperation;
30 }
31
32 namespace Tp
33 {
34 namespace Client
35 {
36
44 class TP_QT_EXPORT CallStreamEndpointInterface : public Tp::AbstractInterface
45 {
46 Q_OBJECT
47
48 public:
55 static inline QLatin1String staticInterfaceName()
56 {
57 return QLatin1String("org.freedesktop.Telepathy.Call1.Stream.Endpoint");
58 }
59
67 CallStreamEndpointInterface(
68 const QString& busName,
69 const QString& objectPath,
70 QObject* parent = 0
71 );
72
81 CallStreamEndpointInterface(
82 const QDBusConnection& connection,
83 const QString& busName,
84 const QString& objectPath,
85 QObject* parent = 0
86 );
87
94 CallStreamEndpointInterface(Tp::DBusProxy *proxy);
95
108 inline Tp::PendingVariant *requestPropertyRemoteCredentials() const
109 {
110 return internalRequestProperty(QLatin1String("RemoteCredentials"));
111 }
112
122 inline Tp::PendingVariant *requestPropertyRemoteCandidates() const
123 {
124 return internalRequestProperty(QLatin1String("RemoteCandidates"));
125 }
126
157 inline Tp::PendingVariant *requestPropertySelectedCandidatePairs() const
158 {
159 return internalRequestProperty(QLatin1String("SelectedCandidatePairs"));
160 }
161
172 inline Tp::PendingVariant *requestPropertyEndpointState() const
173 {
174 return internalRequestProperty(QLatin1String("EndpointState"));
175 }
176
188 inline Tp::PendingVariant *requestPropertyTransport() const
189 {
190 return internalRequestProperty(QLatin1String("Transport"));
191 }
192
213 inline Tp::PendingVariant *requestPropertyControlling() const
214 {
215 return internalRequestProperty(QLatin1String("Controlling"));
216 }
217
228 inline Tp::PendingVariant *requestPropertyIsICELite() const
229 {
230 return internalRequestProperty(QLatin1String("IsICELite"));
231 }
232
239 Tp::PendingVariantMap *requestAllProperties() const
240 {
241 return internalRequestAllProperties();
242 }
243
244 public Q_SLOTS:
278 inline QDBusPendingReply<> SetSelectedCandidatePair(const Tp::Candidate& localCandidate, const Tp::Candidate& remoteCandidate, int timeout = -1)
279 {
280 if (!invalidationReason().isEmpty()) {
281 return QDBusPendingReply<>(QDBusMessage::createError(
282 invalidationReason(),
283 invalidationMessage()
284 ));
285 }
286
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);
291 }
292
311 inline QDBusPendingReply<> SetEndpointState(uint component, uint state, int timeout = -1)
312 {
313 if (!invalidationReason().isEmpty()) {
314 return QDBusPendingReply<>(QDBusMessage::createError(
315 invalidationReason(),
316 invalidationMessage()
317 ));
318 }
319
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);
324 }
325
345 inline QDBusPendingReply<> AcceptSelectedCandidatePair(const Tp::Candidate& localCandidate, const Tp::Candidate& remoteCandidate, int timeout = -1)
346 {
347 if (!invalidationReason().isEmpty()) {
348 return QDBusPendingReply<>(QDBusMessage::createError(
349 invalidationReason(),
350 invalidationMessage()
351 ));
352 }
353
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);
358 }
359
379 inline QDBusPendingReply<> RejectSelectedCandidatePair(const Tp::Candidate& localCandidate, const Tp::Candidate& remoteCandidate, int timeout = -1)
380 {
381 if (!invalidationReason().isEmpty()) {
382 return QDBusPendingReply<>(QDBusMessage::createError(
383 invalidationReason(),
384 invalidationMessage()
385 ));
386 }
387
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);
392 }
393
411 inline QDBusPendingReply<> SetControlling(bool controlling, int timeout = -1)
412 {
413 if (!invalidationReason().isEmpty()) {
414 return QDBusPendingReply<>(QDBusMessage::createError(
415 invalidationReason(),
416 invalidationMessage()
417 ));
418 }
419
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);
424 }
425
426 Q_SIGNALS:
442 void RemoteCredentialsSet(const QString& username, const QString& password);
443
454 void RemoteCandidatesAdded(const Tp::CandidateList& candidates);
455
473 void CandidatePairSelected(const Tp::Candidate& localCandidate, const Tp::Candidate& remoteCandidate);
474
488 void EndpointStateChanged(uint component, uint state);
489
499 void ControllingChanged(bool controlling);
500
501 protected:
502 virtual void invalidate(Tp::DBusProxy *, const QString &, const QString &);
503 };
504 }
505 }
506 Q_DECLARE_METATYPE(Tp::Client::CallStreamEndpointInterface*)
Tp::Client::CallStreamEndpointInterface::AcceptSelectedCandidatePair
QDBusPendingReply AcceptSelectedCandidatePair(const Tp::Candidate &localCandidate, const Tp::Candidate &remoteCandidate, int timeout=-1)
Definition: cli-call-stream-endpoint.h:345
Tp::Client::CallStreamEndpointInterface::requestPropertyTransport
Tp::PendingVariant * requestPropertyTransport() const
Definition: cli-call-stream-endpoint.h:188
Tp::Candidate
Definition: obj-x86_64-linux-gnu/TelepathyQt/_gen/types.h:379
Tp
Definition: abstract-adaptor.cpp:31
Tp::Client::CallStreamEndpointInterface::requestAllProperties
Tp::PendingVariantMap * requestAllProperties() const
Definition: cli-call-stream-endpoint.h:239
Tp::Client::CallStreamEndpointInterface::requestPropertyRemoteCandidates
Tp::PendingVariant * requestPropertyRemoteCandidates() const
Definition: cli-call-stream-endpoint.h:122
Tp::Client::CallStreamEndpointInterface::requestPropertyIsICELite
Tp::PendingVariant * requestPropertyIsICELite() const
Definition: cli-call-stream-endpoint.h:228
Tp::Client::CallStreamEndpointInterface::SetControlling
QDBusPendingReply SetControlling(bool controlling, int timeout=-1)
Definition: cli-call-stream-endpoint.h:411
Tp::DBusProxy
The DBusProxy class is a base class representing a remote object available over D-Bus.
Definition: dbus-proxy.h:42
Tp::Client::CallStreamEndpointInterface::staticInterfaceName
static QLatin1String staticInterfaceName()
Definition: cli-call-stream-endpoint.h:55
QDBusConnection
QDBusPendingReply
QObject
Tp::Client::CallStreamEndpointInterface::requestPropertyEndpointState
Tp::PendingVariant * requestPropertyEndpointState() const
Definition: cli-call-stream-endpoint.h:172
Tp::Client::CallStreamEndpointInterface::RejectSelectedCandidatePair
QDBusPendingReply RejectSelectedCandidatePair(const Tp::Candidate &localCandidate, const Tp::Candidate &remoteCandidate, int timeout=-1)
Definition: cli-call-stream-endpoint.h:379
QString
QList
Tp::PendingVariantMap
The PendingVariantMap class is a generic subclass of PendingOperation representing a pending D-Bus me...
Definition: pending-variant-map.h:38
QVariant::fromValue
QVariant fromValue(const T &value)
Tp::Client::CallStreamEndpointInterface::requestPropertyControlling
Tp::PendingVariant * requestPropertyControlling() const
Definition: cli-call-stream-endpoint.h:213
Tp::AbstractInterface
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
QDBusMessage
QLatin1String
Tp::Client::CallStreamEndpointInterface::requestPropertySelectedCandidatePairs
Tp::PendingVariant * requestPropertySelectedCandidatePairs() const
Definition: cli-call-stream-endpoint.h:157
QDBusMessage::createError
QDBusMessage createError(const QString &name, const QString &msg)
Tp::Client::CallStreamEndpointInterface
Definition: cli-call-stream-endpoint.h:44
Tp::Client::CallStreamEndpointInterface::SetSelectedCandidatePair
QDBusPendingReply SetSelectedCandidatePair(const Tp::Candidate &localCandidate, const Tp::Candidate &remoteCandidate, int timeout=-1)
Definition: cli-call-stream-endpoint.h:278
QDBusMessage::createMethodCall
QDBusMessage createMethodCall(const QString &service, const QString &path, const QString &interface, const QString &method)
Tp::Client::CallStreamEndpointInterface::requestPropertyRemoteCredentials
Tp::PendingVariant * requestPropertyRemoteCredentials() const
Definition: cli-call-stream-endpoint.h:108
Tp::PendingVariant
The PendingVariant class is a generic subclass of PendingOperation representing a pending D-Bus metho...
Definition: pending-variant.h:38
Tp::Client::CallStreamEndpointInterface::SetEndpointState
QDBusPendingReply SetEndpointState(uint component, uint state, int timeout=-1)
Definition: cli-call-stream-endpoint.h:311