cli-call-stream.h Source File

| 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
67 CallStreamInterface(
68 const QString& busName,
69 const QString& objectPath,
70 QObject* parent = 0
71 );
72
81 CallStreamInterface(
82 const QDBusConnection& connection,
83 const QString& busName,
84 const QString& objectPath,
85 QObject* parent = 0
86 );
87
94 CallStreamInterface(Tp::DBusProxy *proxy);
95
109 inline Tp::PendingVariant *requestPropertyInterfaces() const
110 {
111 return internalRequestProperty(QLatin1String("Interfaces"));
112 }
113
142 inline Tp::PendingVariant *requestPropertyRemoteMembers() const
143 {
144 return internalRequestProperty(QLatin1String("RemoteMembers"));
145 }
146
158 inline Tp::PendingVariant *requestPropertyRemoteMemberIdentifiers() const
159 {
160 return internalRequestProperty(QLatin1String("RemoteMemberIdentifiers"));
161 }
162
200 inline Tp::PendingVariant *requestPropertyLocalSendingState() const
201 {
202 return internalRequestProperty(QLatin1String("LocalSendingState"));
203 }
204
220 inline Tp::PendingVariant *requestPropertyCanRequestReceiving() const
221 {
222 return internalRequestProperty(QLatin1String("CanRequestReceiving"));
223 }
224
231 Tp::PendingVariantMap *requestAllProperties() const
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
377 class TP_QT_EXPORT CallStreamInterfaceMediaInterface : public Tp::AbstractInterface
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
400 CallStreamInterfaceMediaInterface(
401 const QString& busName,
402 const QString& objectPath,
403 QObject* parent = 0
404 );
405
414 CallStreamInterfaceMediaInterface(
415 const QDBusConnection& connection,
416 const QString& busName,
417 const QString& objectPath,
418 QObject* parent = 0
419 );
420
427 CallStreamInterfaceMediaInterface(Tp::DBusProxy *proxy);
428
436 explicit CallStreamInterfaceMediaInterface(const Tp::Client::CallStreamInterface& mainInterface);
437
445 CallStreamInterfaceMediaInterface(const Tp::Client::CallStreamInterface& mainInterface, QObject* parent);
446
462 inline Tp::PendingVariant *requestPropertySendingState() const
463 {
464 return internalRequestProperty(QLatin1String("SendingState"));
465 }
466
480 inline Tp::PendingVariant *requestPropertyReceivingState() const
481 {
482 return internalRequestProperty(QLatin1String("ReceivingState"));
483 }
484
494 inline Tp::PendingVariant *requestPropertyTransport() const
495 {
496 return internalRequestProperty(QLatin1String("Transport"));
497 }
498
508 inline Tp::PendingVariant *requestPropertyLocalCandidates() const
509 {
510 return internalRequestProperty(QLatin1String("LocalCandidates"));
511 }
512
526 inline Tp::PendingVariant *requestPropertyLocalCredentials() const
527 {
528 return internalRequestProperty(QLatin1String("LocalCredentials"));
529 }
530
552 inline Tp::PendingVariant *requestPropertySTUNServers() const
553 {
554 return internalRequestProperty(QLatin1String("STUNServers"));
555 }
556
654 inline Tp::PendingVariant *requestPropertyRelayInfo() const
655 {
656 return internalRequestProperty(QLatin1String("RelayInfo"));
657 }
658
678 inline Tp::PendingVariant *requestPropertyHasServerInfo() const
679 {
680 return internalRequestProperty(QLatin1String("HasServerInfo"));
681 }
682
693 inline Tp::PendingVariant *requestPropertyEndpoints() const
694 {
695 return internalRequestProperty(QLatin1String("Endpoints"));
696 }
697
708 inline Tp::PendingVariant *requestPropertyICERestartPending() const
709 {
710 return internalRequestProperty(QLatin1String("ICERestartPending"));
711 }
712
719 Tp::PendingVariantMap *requestAllProperties() const
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*)
1077 Q_DECLARE_METATYPE(Tp::Client::CallStreamInterfaceMediaInterface*)
Tp::Client::CallStreamInterfaceMediaInterface::ReportReceivingFailure
QDBusPendingReply ReportReceivingFailure(uint reason, const QString &error, const QString &message, int timeout=-1)
Definition: cli-call-stream.h:836
Tp::Client::CallStreamInterfaceMediaInterface::AddCandidates
QDBusPendingReply AddCandidates(const Tp::CandidateList &candidates, int timeout=-1)
Definition: cli-call-stream.h:903
Tp::Client::CallStreamInterfaceMediaInterface::requestPropertyLocalCandidates
Tp::PendingVariant * requestPropertyLocalCandidates() const
Definition: cli-call-stream.h:508
Tp::Client::CallStreamInterfaceMediaInterface::requestPropertySTUNServers
Tp::PendingVariant * requestPropertySTUNServers() const
Definition: cli-call-stream.h:552
Tp::DBusProxy
The DBusProxy class is a base class representing a remote object available over D-Bus.
Definition: dbus-proxy.h:42
Tp::CandidateList
QList< Candidate > CandidateList
Definition: build/TelepathyQt/_gen/types.h:413
Tp::Client::CallStreamInterfaceMediaInterface
Definition: cli-call-stream.h:377
Tp::Client::CallStreamInterfaceMediaInterface::CompleteSendingStateChange
QDBusPendingReply CompleteSendingStateChange(uint state, int timeout=-1)
Definition: cli-call-stream.h:745
Tp::Client::CallStreamInterface::requestPropertyRemoteMembers
Tp::PendingVariant * requestPropertyRemoteMembers() const
Definition: cli-call-stream.h:142
Tp::Client::CallStreamInterfaceMediaInterface::FinishInitialCandidates
QDBusPendingReply FinishInitialCandidates(int timeout=-1)
Definition: cli-call-stream.h:931
Tp::StringVariantMapList
QList< StringVariantMap > StringVariantMapList
Definition: build/TelepathyQt/_gen/types.h:3087
Tp::Client::CallStreamInterfaceMediaInterface::requestPropertyEndpoints
Tp::PendingVariant * requestPropertyEndpoints() const
Definition: cli-call-stream.h:693
Tp::Client::CallStreamInterfaceMediaInterface::Fail
QDBusPendingReply Fail(const Tp::CallStateReason &reason, int timeout=-1)
Definition: cli-call-stream.h:960
Tp::Client::CallStreamInterfaceMediaInterface::requestPropertyTransport
Tp::PendingVariant * requestPropertyTransport() const
Definition: cli-call-stream.h:494
Tp::CallStateReason
Definition: build/TelepathyQt/_gen/types.h:320
Tp::Client::CallStreamInterface::staticInterfaceName
static QLatin1String staticInterfaceName()
Definition: cli-call-stream.h:55
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
Tp::Client::CallStreamInterfaceMediaInterface::requestPropertyICERestartPending
Tp::PendingVariant * requestPropertyICERestartPending() const
Definition: cli-call-stream.h:708
Tp::UIntList
Definition: build/TelepathyQt/_gen/types.h:101
Tp::Client::CallStreamInterfaceMediaInterface::ReportSendingFailure
QDBusPendingReply ReportSendingFailure(uint reason, const QString &error, const QString &message, int timeout=-1)
Definition: cli-call-stream.h:773
Tp::Client::CallStreamInterface::RequestReceiving
QDBusPendingReply RequestReceiving(uint contact, bool receive, int timeout=-1)
Definition: cli-call-stream.h:302
Tp::Client::CallStreamInterfaceMediaInterface::requestPropertySendingState
Tp::PendingVariant * requestPropertySendingState() const
Definition: cli-call-stream.h:462
Tp::Client::CallStreamInterfaceMediaInterface::requestPropertyRelayInfo
Tp::PendingVariant * requestPropertyRelayInfo() const
Definition: cli-call-stream.h:654
Tp::SocketAddressIPList
QList< SocketAddressIP > SocketAddressIPList
Definition: build/TelepathyQt/_gen/types.h:2876
Tp::Client::CallStreamInterface
Definition: cli-call-stream.h:44
Tp::ObjectPathList
Definition: build/TelepathyQt/_gen/types.h:81
Tp::Client::CallStreamInterface::requestPropertyLocalSendingState
Tp::PendingVariant * requestPropertyLocalSendingState() const
Definition: cli-call-stream.h:200
Tp::Client::CallStreamInterface::SetSending
QDBusPendingReply SetSending(bool send, int timeout=-1)
Definition: cli-call-stream.h:262
Tp::Client::CallStreamInterface::requestPropertyInterfaces
Tp::PendingVariant * requestPropertyInterfaces() const
Definition: cli-call-stream.h:109
Tp::PendingVariant
The PendingVariant class is a generic subclass of PendingOperation representing a pending D-Bus metho...
Definition: pending-variant.h:38
Tp::Client::CallStreamInterfaceMediaInterface::requestPropertyReceivingState
Tp::PendingVariant * requestPropertyReceivingState() const
Definition: cli-call-stream.h:480
Tp::HandleIdentifierMap
Definition: build/TelepathyQt/_gen/types.h:1646
Tp::Client::CallStreamInterface::requestPropertyRemoteMemberIdentifiers
Tp::PendingVariant * requestPropertyRemoteMemberIdentifiers() const
Definition: cli-call-stream.h:158
Tp::Client::CallStreamInterfaceMediaInterface::requestPropertyLocalCredentials
Tp::PendingVariant * requestPropertyLocalCredentials() const
Definition: cli-call-stream.h:526
Tp::ContactSendingStateMap
Definition: build/TelepathyQt/_gen/types.h:1284
Tp::Client::CallStreamInterface::requestPropertyCanRequestReceiving
Tp::PendingVariant * requestPropertyCanRequestReceiving() const
Definition: cli-call-stream.h:220
Tp::PendingVariantMap
The PendingVariantMap class is a generic subclass of PendingOperation representing a pending D-Bus me...
Definition: pending-variant-map.h:38
Tp::Client::CallStreamInterfaceMediaInterface::requestAllProperties
Tp::PendingVariantMap * requestAllProperties() const
Definition: cli-call-stream.h:719
Tp::Client::CallStreamInterfaceMediaInterface::SetCredentials
QDBusPendingReply SetCredentials(const QString &username, const QString &password, int timeout=-1)
Definition: cli-call-stream.h:872
Tp::Client::CallStreamInterfaceMediaInterface::requestPropertyHasServerInfo
Tp::PendingVariant * requestPropertyHasServerInfo() const
Definition: cli-call-stream.h:678
Tp::Client::CallStreamInterfaceMediaInterface::staticInterfaceName
static QLatin1String staticInterfaceName()
Definition: cli-call-stream.h:388
Tp::Client::CallStreamInterfaceMediaInterface::CompleteReceivingStateChange
QDBusPendingReply CompleteReceivingStateChange(uint state, int timeout=-1)
Definition: cli-call-stream.h:808
Tp::Client::CallStreamInterface::requestAllProperties
Tp::PendingVariantMap * requestAllProperties() const
Definition: cli-call-stream.h:231