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 
45 {
46  Q_OBJECT
47 
48 public:
55  static inline QLatin1String staticInterfaceName()
56  {
57  return QLatin1String("org.freedesktop.Telepathy.Call1.Stream.Endpoint");
58  }
59 
68  const QString& busName,
69  const QString& objectPath,
70  QObject* parent = 0
71  );
72 
82  const QDBusConnection& connection,
83  const QString& busName,
84  const QString& objectPath,
85  QObject* parent = 0
86  );
87 
95 
109  {
110  return internalRequestProperty(QLatin1String("RemoteCredentials"));
111  }
112 
123  {
124  return internalRequestProperty(QLatin1String("RemoteCandidates"));
125  }
126 
158  {
159  return internalRequestProperty(QLatin1String("SelectedCandidatePairs"));
160  }
161 
173  {
174  return internalRequestProperty(QLatin1String("EndpointState"));
175  }
176 
189  {
190  return internalRequestProperty(QLatin1String("Transport"));
191  }
192 
214  {
215  return internalRequestProperty(QLatin1String("Controlling"));
216  }
217 
229  {
230  return internalRequestProperty(QLatin1String("IsICELite"));
231  }
232 
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*)
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


Copyright © 2008-2011 Collabora Ltd. and Nokia Corporation
Telepathy-Qt 0.9.4