Home · All Classes · All Namespaces · Modules · Functions · Files
cli-call-stream.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 CallStreamInterface : public Tp::AbstractInterface
45 {
46  Q_OBJECT
47 
48 public:
55  static inline QLatin1String staticInterfaceName()
56  {
57  return QLatin1String("org.freedesktop.Telepathy.Call1.Stream");
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 
110  {
111  return internalRequestProperty(QLatin1String("Interfaces"));
112  }
113 
143  {
144  return internalRequestProperty(QLatin1String("RemoteMembers"));
145  }
146 
159  {
160  return internalRequestProperty(QLatin1String("RemoteMemberIdentifiers"));
161  }
162 
201  {
202  return internalRequestProperty(QLatin1String("LocalSendingState"));
203  }
204 
221  {
222  return internalRequestProperty(QLatin1String("CanRequestReceiving"));
223  }
224 
232  {
233  return internalRequestAllProperties();
234  }
235 
236 public Q_SLOTS:
262  inline QDBusPendingReply<> SetSending(bool send, int timeout = -1)
263  {
264  if (!invalidationReason().isEmpty()) {
265  return QDBusPendingReply<>(QDBusMessage::createError(
266  invalidationReason(),
267  invalidationMessage()
268  ));
269  }
270 
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);
275  }
276 
302  inline QDBusPendingReply<> RequestReceiving(uint contact, bool receive, int timeout = -1)
303  {
304  if (!invalidationReason().isEmpty()) {
305  return QDBusPendingReply<>(QDBusMessage::createError(
306  invalidationReason(),
307  invalidationMessage()
308  ));
309  }
310 
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);
315  }
316 
317 Q_SIGNALS:
347  void RemoteMembersChanged(const Tp::ContactSendingStateMap& updates, const Tp::HandleIdentifierMap& identifiers, const Tp::UIntList& removed, const Tp::CallStateReason& reason);
348 
364  void LocalSendingStateChanged(uint state, const Tp::CallStateReason& reason);
365 
366 protected:
367  virtual void invalidate(Tp::DBusProxy *, const QString &, const QString &);
368 };
369 
378 {
379  Q_OBJECT
380 
381 public:
388  static inline QLatin1String staticInterfaceName()
389  {
390  return QLatin1String("org.freedesktop.Telepathy.Call1.Stream.Interface.Media");
391  }
392 
401  const QString& busName,
402  const QString& objectPath,
403  QObject* parent = 0
404  );
405 
415  const QDBusConnection& connection,
416  const QString& busName,
417  const QString& objectPath,
418  QObject* parent = 0
419  );
420 
428 
437 
445  CallStreamInterfaceMediaInterface(const Tp::Client::CallStreamInterface& mainInterface, QObject* parent);
446 
463  {
464  return internalRequestProperty(QLatin1String("SendingState"));
465  }
466 
481  {
482  return internalRequestProperty(QLatin1String("ReceivingState"));
483  }
484 
495  {
496  return internalRequestProperty(QLatin1String("Transport"));
497  }
498 
509  {
510  return internalRequestProperty(QLatin1String("LocalCandidates"));
511  }
512 
527  {
528  return internalRequestProperty(QLatin1String("LocalCredentials"));
529  }
530 
553  {
554  return internalRequestProperty(QLatin1String("STUNServers"));
555  }
556 
655  {
656  return internalRequestProperty(QLatin1String("RelayInfo"));
657  }
658 
679  {
680  return internalRequestProperty(QLatin1String("HasServerInfo"));
681  }
682 
694  {
695  return internalRequestProperty(QLatin1String("Endpoints"));
696  }
697 
709  {
710  return internalRequestProperty(QLatin1String("ICERestartPending"));
711  }
712 
720  {
721  return internalRequestAllProperties();
722  }
723 
724 public Q_SLOTS:
745  inline QDBusPendingReply<> CompleteSendingStateChange(uint state, int timeout = -1)
746  {
747  if (!invalidationReason().isEmpty()) {
748  return QDBusPendingReply<>(QDBusMessage::createError(
749  invalidationReason(),
750  invalidationMessage()
751  ));
752  }
753 
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);
758  }
759 
773  inline QDBusPendingReply<> ReportSendingFailure(uint reason, const QString& error, const QString& message, int timeout = -1)
774  {
775  if (!invalidationReason().isEmpty()) {
776  return QDBusPendingReply<>(QDBusMessage::createError(
777  invalidationReason(),
778  invalidationMessage()
779  ));
780  }
781 
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);
786  }
787 
808  inline QDBusPendingReply<> CompleteReceivingStateChange(uint state, int timeout = -1)
809  {
810  if (!invalidationReason().isEmpty()) {
811  return QDBusPendingReply<>(QDBusMessage::createError(
812  invalidationReason(),
813  invalidationMessage()
814  ));
815  }
816 
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);
821  }
822 
836  inline QDBusPendingReply<> ReportReceivingFailure(uint reason, const QString& error, const QString& message, int timeout = -1)
837  {
838  if (!invalidationReason().isEmpty()) {
839  return QDBusPendingReply<>(QDBusMessage::createError(
840  invalidationReason(),
841  invalidationMessage()
842  ));
843  }
844 
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);
849  }
850 
872  inline QDBusPendingReply<> SetCredentials(const QString& username, const QString& password, int timeout = -1)
873  {
874  if (!invalidationReason().isEmpty()) {
875  return QDBusPendingReply<>(QDBusMessage::createError(
876  invalidationReason(),
877  invalidationMessage()
878  ));
879  }
880 
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);
885  }
886 
903  inline QDBusPendingReply<> AddCandidates(const Tp::CandidateList& candidates, int timeout = -1)
904  {
905  if (!invalidationReason().isEmpty()) {
906  return QDBusPendingReply<>(QDBusMessage::createError(
907  invalidationReason(),
908  invalidationMessage()
909  ));
910  }
911 
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);
916  }
917 
931  inline QDBusPendingReply<> FinishInitialCandidates(int timeout = -1)
932  {
933  if (!invalidationReason().isEmpty()) {
934  return QDBusPendingReply<>(QDBusMessage::createError(
935  invalidationReason(),
936  invalidationMessage()
937  ));
938  }
939 
940  QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
941  this->staticInterfaceName(), QLatin1String("FinishInitialCandidates"));
942  return this->connection().asyncCall(callMessage, timeout);
943  }
944 
960  inline QDBusPendingReply<> Fail(const Tp::CallStateReason& reason, int timeout = -1)
961  {
962  if (!invalidationReason().isEmpty()) {
963  return QDBusPendingReply<>(QDBusMessage::createError(
964  invalidationReason(),
965  invalidationMessage()
966  ));
967  }
968 
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);
973  }
974 
975 Q_SIGNALS:
988  void SendingStateChanged(uint state);
989 
999  void ReceivingStateChanged(uint state);
1000 
1010  void LocalCandidatesAdded(const Tp::CandidateList& candidates);
1011 
1019  void LocalCredentialsChanged(const QString& username, const QString& password);
1020 
1026  void RelayInfoChanged(const Tp::StringVariantMapList& relayInfo);
1027 
1033  void STUNServersChanged(const Tp::SocketAddressIPList& servers);
1034 
1045  void ServerInfoRetrieved();
1046 
1060  void EndpointsChanged(const Tp::ObjectPathList& endpointsAdded, const Tp::ObjectPathList& endpointsRemoved);
1061 
1069  void ICERestartRequested();
1070 
1071 protected:
1072  virtual void invalidate(Tp::DBusProxy *, const QString &, const QString &);
1073 };
1074 }
1075 }
1076 Q_DECLARE_METATYPE(Tp::Client::CallStreamInterface*)
QDBusPendingReply CompleteSendingStateChange(uint state, int timeout=-1)
Definition: cli-call-stream.h:745
QDBusPendingReply AddCandidates(const Tp::CandidateList &candidates, int timeout=-1)
Definition: cli-call-stream.h:903
Tp::PendingVariant * requestPropertySTUNServers() const
Definition: cli-call-stream.h:552
QList< SocketAddressIP > SocketAddressIPList
Definition: build/TelepathyQt/_gen/types.h:2885
QDBusPendingReply SetCredentials(const QString &username, const QString &password, int timeout=-1)
Definition: cli-call-stream.h:872
Tp::PendingVariant * requestPropertyInterfaces() const
Definition: cli-call-stream.h:109
Definition: build/TelepathyQt/_gen/types.h:1655
Tp::PendingVariantMap * requestAllProperties() const
Definition: cli-call-stream.h:719
Definition: cli-call-stream.h:44
static QLatin1String staticInterfaceName()
Definition: cli-call-stream.h:388
Tp::PendingVariant * requestPropertyEndpoints() const
Definition: cli-call-stream.h:693
Definition: build/TelepathyQt/_gen/types.h:84
QDBusPendingReply CompleteReceivingStateChange(uint state, int timeout=-1)
Definition: cli-call-stream.h:808
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
Tp::PendingVariant * requestPropertyCanRequestReceiving() const
Definition: cli-call-stream.h:220
Tp::PendingVariant * requestPropertyRelayInfo() const
Definition: cli-call-stream.h:654
QList< Candidate > CandidateList
Definition: build/TelepathyQt/_gen/types.h:422
Tp::PendingVariant * requestPropertyRemoteMemberIdentifiers() const
Definition: cli-call-stream.h:158
Tp::PendingVariantMap * requestAllProperties() const
Definition: cli-call-stream.h:231
QDBusPendingReply Fail(const Tp::CallStateReason &reason, int timeout=-1)
Definition: cli-call-stream.h:960
The PendingVariantMap class is a generic subclass of PendingOperation representing a pending D-Bus me...
Definition: pending-variant-map.h:38
Tp::PendingVariant * requestPropertyICERestartPending() const
Definition: cli-call-stream.h:708
Definition: build/TelepathyQt/_gen/types.h:329
Definition: build/TelepathyQt/_gen/types.h:107
Tp::PendingVariant * requestPropertyHasServerInfo() const
Definition: cli-call-stream.h:678
QList< StringVariantMap > StringVariantMapList
Definition: build/TelepathyQt/_gen/types.h:3096
Tp::PendingVariant * requestPropertyLocalCandidates() const
Definition: cli-call-stream.h:508
QDBusPendingReply FinishInitialCandidates(int timeout=-1)
Definition: cli-call-stream.h:931
Definition: abstract-adaptor.cpp:31
Definition: build/TelepathyQt/_gen/types.h:1293
QDBusPendingReply ReportSendingFailure(uint reason, const QString &error, const QString &message, int timeout=-1)
Definition: cli-call-stream.h:773
The PendingVariant class is a generic subclass of PendingOperation representing a pending D-Bus metho...
Definition: pending-variant.h:38
Tp::PendingVariant * requestPropertyReceivingState() const
Definition: cli-call-stream.h:480
static QLatin1String staticInterfaceName()
Definition: cli-call-stream.h:55
Tp::PendingVariant * requestPropertyLocalCredentials() const
Definition: cli-call-stream.h:526
QDBusPendingReply ReportReceivingFailure(uint reason, const QString &error, const QString &message, int timeout=-1)
Definition: cli-call-stream.h:836
The DBusProxy class is a base class representing a remote object available over D-Bus.
Definition: dbus-proxy.h:42
Tp::PendingVariant * requestPropertyLocalSendingState() const
Definition: cli-call-stream.h:200
Tp::PendingVariant * requestPropertyRemoteMembers() const
Definition: cli-call-stream.h:142
QDBusPendingReply SetSending(bool send, int timeout=-1)
Definition: cli-call-stream.h:262
QDBusPendingReply RequestReceiving(uint contact, bool receive, int timeout=-1)
Definition: cli-call-stream.h:302
Tp::PendingVariant * requestPropertyTransport() const
Definition: cli-call-stream.h:494
Tp::PendingVariant * requestPropertySendingState() const
Definition: cli-call-stream.h:462
Definition: cli-call-stream.h:377


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