cli-call-stream-body.hpp Source File

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

cli-call-stream-body.hpp
1 #define IN_TP_QT_HEADER
2 #include "TelepathyQt/call-stream.h"
3
4 namespace Tp
5 {
6 namespace Client
7 {
8
9 CallStreamInterface::CallStreamInterface(const QString& busName, const QString& objectPath, QObject *parent)
10 : Tp::AbstractInterface(busName, objectPath, staticInterfaceName(), QDBusConnection::sessionBus(), parent)
11 {
12 }
13
14 CallStreamInterface::CallStreamInterface(const QDBusConnection& connection, const QString& busName, const QString& objectPath, QObject *parent)
15 : Tp::AbstractInterface(busName, objectPath, staticInterfaceName(), connection, parent)
16 {
17 }
18
19 CallStreamInterface::CallStreamInterface(Tp::DBusProxy *proxy)
20 : Tp::AbstractInterface(proxy, staticInterfaceName())
21 {
22 }
23
24 void CallStreamInterface::invalidate(Tp::DBusProxy *proxy,
25 const QString &error, const QString &message)
26 {
27 disconnect(this, SIGNAL(RemoteMembersChanged(const Tp::ContactSendingStateMap&, const Tp::HandleIdentifierMap&, const Tp::UIntList&, const Tp::CallStateReason&)), NULL, NULL);
28 disconnect(this, SIGNAL(LocalSendingStateChanged(uint, const Tp::CallStateReason&)), NULL, NULL);
29
30 Tp::AbstractInterface::invalidate(proxy, error, message);
31 }
32
33 CallStreamInterfaceMediaInterface::CallStreamInterfaceMediaInterface(const QString& busName, const QString& objectPath, QObject *parent)
34 : Tp::AbstractInterface(busName, objectPath, staticInterfaceName(), QDBusConnection::sessionBus(), parent)
35 {
36 }
37
38 CallStreamInterfaceMediaInterface::CallStreamInterfaceMediaInterface(const QDBusConnection& connection, const QString& busName, const QString& objectPath, QObject *parent)
39 : Tp::AbstractInterface(busName, objectPath, staticInterfaceName(), connection, parent)
40 {
41 }
42
43 CallStreamInterfaceMediaInterface::CallStreamInterfaceMediaInterface(Tp::DBusProxy *proxy)
44 : Tp::AbstractInterface(proxy, staticInterfaceName())
45 {
46 }
47
48 CallStreamInterfaceMediaInterface::CallStreamInterfaceMediaInterface(const Tp::Client::CallStreamInterface& mainInterface)
49 : Tp::AbstractInterface(mainInterface.service(), mainInterface.path(), staticInterfaceName(), mainInterface.connection(), mainInterface.parent())
50 {
51 }
52
53 CallStreamInterfaceMediaInterface::CallStreamInterfaceMediaInterface(const Tp::Client::CallStreamInterface& mainInterface, QObject *parent)
54 : Tp::AbstractInterface(mainInterface.service(), mainInterface.path(), staticInterfaceName(), mainInterface.connection(), parent)
55 {
56 }
57
58 void CallStreamInterfaceMediaInterface::invalidate(Tp::DBusProxy *proxy,
59 const QString &error, const QString &message)
60 {
61 disconnect(this, SIGNAL(SendingStateChanged(uint)), NULL, NULL);
62 disconnect(this, SIGNAL(ReceivingStateChanged(uint)), NULL, NULL);
63 disconnect(this, SIGNAL(LocalCandidatesAdded(const Tp::CandidateList&)), NULL, NULL);
64 disconnect(this, SIGNAL(LocalCredentialsChanged(const QString&, const QString&)), NULL, NULL);
65 disconnect(this, SIGNAL(RelayInfoChanged(const Tp::StringVariantMapList&)), NULL, NULL);
66 disconnect(this, SIGNAL(STUNServersChanged(const Tp::SocketAddressIPList&)), NULL, NULL);
67 disconnect(this, SIGNAL(ServerInfoRetrieved()), NULL, NULL);
68 disconnect(this, SIGNAL(EndpointsChanged(const Tp::ObjectPathList&, const Tp::ObjectPathList&)), NULL, NULL);
69 disconnect(this, SIGNAL(ICERestartRequested()), NULL, NULL);
70
71 Tp::AbstractInterface::invalidate(proxy, error, message);
72 }
73 }
74 }
Tp::DBusProxy
The DBusProxy class is a base class representing a remote object available over D-Bus.
Definition: dbus-proxy.h:42
Tp::Client::CallStreamInterfaceMediaInterface::SendingStateChanged
void SendingStateChanged(uint state)
Tp::CandidateList
QList< Candidate > CandidateList
Definition: build/TelepathyQt/_gen/types.h:413
Tp::Client::CallStreamInterfaceMediaInterface::invalidate
virtual void invalidate(Tp::DBusProxy *, const QString &, const QString &)
Definition: cli-call-stream-body.hpp:58
Tp::Client::CallStreamInterfaceMediaInterface::LocalCredentialsChanged
void LocalCredentialsChanged(const QString &username, const QString &password)
Tp::StringVariantMapList
QList< StringVariantMap > StringVariantMapList
Definition: build/TelepathyQt/_gen/types.h:3087
Tp::CallStateReason
Definition: build/TelepathyQt/_gen/types.h:320
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::UIntList
Definition: build/TelepathyQt/_gen/types.h:101
Tp::Client::CallStreamInterfaceMediaInterface::ReceivingStateChanged
void ReceivingStateChanged(uint state)
Tp::Client::CallStreamInterfaceMediaInterface::EndpointsChanged
void EndpointsChanged(const Tp::ObjectPathList &endpointsAdded, const Tp::ObjectPathList &endpointsRemoved)
Tp::Client::CallStreamInterface::LocalSendingStateChanged
void LocalSendingStateChanged(uint state, const Tp::CallStateReason &reason)
Tp::SocketAddressIPList
QList< SocketAddressIP > SocketAddressIPList
Definition: build/TelepathyQt/_gen/types.h:2876
Tp::Client::CallStreamInterface
Definition: cli-call-stream.h:44
Tp::AbstractInterface::invalidate
virtual void invalidate(Tp::DBusProxy *proxy, const QString &error, const QString &message)
Definition: abstract-interface.cpp:101
Tp::ObjectPathList
Definition: build/TelepathyQt/_gen/types.h:81
Tp::Client::CallStreamInterfaceMediaInterface::CallStreamInterfaceMediaInterface
CallStreamInterfaceMediaInterface(const QString &busName, const QString &objectPath, QObject *parent=0)
Definition: cli-call-stream-body.hpp:33
Tp::Client::CallStreamInterface::invalidate
virtual void invalidate(Tp::DBusProxy *, const QString &, const QString &)
Definition: cli-call-stream-body.hpp:24
Tp::Client::CallStreamInterfaceMediaInterface::STUNServersChanged
void STUNServersChanged(const Tp::SocketAddressIPList &servers)
Tp::HandleIdentifierMap
Definition: build/TelepathyQt/_gen/types.h:1646
Tp::Client::CallStreamInterfaceMediaInterface::RelayInfoChanged
void RelayInfoChanged(const Tp::StringVariantMapList &relayInfo)
Tp::Client::CallStreamInterface::RemoteMembersChanged
void RemoteMembersChanged(const Tp::ContactSendingStateMap &updates, const Tp::HandleIdentifierMap &identifiers, const Tp::UIntList &removed, const Tp::CallStateReason &reason)
Tp::Client::CallStreamInterface::CallStreamInterface
CallStreamInterface(const QString &busName, const QString &objectPath, QObject *parent=0)
Definition: cli-call-stream-body.hpp:9
Tp::ContactSendingStateMap
Definition: build/TelepathyQt/_gen/types.h:1284
Tp::Client::CallStreamInterfaceMediaInterface::ServerInfoRetrieved
void ServerInfoRetrieved()
Tp::Client::CallStreamInterfaceMediaInterface::LocalCandidatesAdded
void LocalCandidatesAdded(const Tp::CandidateList &candidates)
Tp::Client::CallStreamInterfaceMediaInterface::ICERestartRequested
void ICERestartRequested()