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

cli-call-stream-endpoint-body.hpp
1 #define IN_TP_QT_HEADER
2 #include "TelepathyQt/call-stream-endpoint.h"
3
4 namespace Tp
5 {
6 namespace Client
7 {
8
9 CallStreamEndpointInterface::CallStreamEndpointInterface(const QString& busName, const QString& objectPath, QObject *parent)
10 : Tp::AbstractInterface(busName, objectPath, staticInterfaceName(), QDBusConnection::sessionBus(), parent)
11 {
12 }
13
14 CallStreamEndpointInterface::CallStreamEndpointInterface(const QDBusConnection& connection, const QString& busName, const QString& objectPath, QObject *parent)
15 : Tp::AbstractInterface(busName, objectPath, staticInterfaceName(), connection, parent)
16 {
17 }
18
19 CallStreamEndpointInterface::CallStreamEndpointInterface(Tp::DBusProxy *proxy)
20 : Tp::AbstractInterface(proxy, staticInterfaceName())
21 {
22 }
23
24 void CallStreamEndpointInterface::invalidate(Tp::DBusProxy *proxy,
25 const QString &error, const QString &message)
26 {
27 disconnect(this, SIGNAL(RemoteCredentialsSet(const QString&, const QString&)), NULL, NULL);
28 disconnect(this, SIGNAL(RemoteCandidatesAdded(const Tp::CandidateList&)), NULL, NULL);
29 disconnect(this, SIGNAL(CandidatePairSelected(const Tp::Candidate&, const Tp::Candidate&)), NULL, NULL);
30 disconnect(this, SIGNAL(EndpointStateChanged(uint, uint)), NULL, NULL);
31 disconnect(this, SIGNAL(ControllingChanged(bool)), NULL, NULL);
32
33 Tp::AbstractInterface::invalidate(proxy, error, message);
34 }
35 }
36 }
Tp::Client::CallStreamEndpointInterface::EndpointStateChanged
void EndpointStateChanged(uint component, uint state)
QDBusConnection
QObject::disconnect
bool disconnect(const QObject *sender, const char *signal, const QObject *receiver, const char *method)
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::CallStreamEndpointInterface::RemoteCredentialsSet
void RemoteCredentialsSet(const QString &username, const QString &password)
Tp::Client::CallStreamEndpointInterface::CallStreamEndpointInterface
CallStreamEndpointInterface(const QString &busName, const QString &objectPath, QObject *parent=0)
Definition: cli-call-stream-endpoint-body.hpp:9
QObject
QDBusAbstractInterface::connection
QDBusConnection connection() const
Tp::AbstractInterface::invalidate
virtual void invalidate(Tp::DBusProxy *proxy, const QString &error, const QString &message)
Definition: abstract-interface.cpp:101
Tp::Client::CallStreamEndpointInterface::invalidate
virtual void invalidate(Tp::DBusProxy *, const QString &, const QString &)
Definition: cli-call-stream-endpoint-body.hpp:24
QString
QList
Tp::Candidate
Definition: obj-x86_64-linux-gnu/TelepathyQt/_gen/types.h:388
Tp::Client::CallStreamEndpointInterface::RemoteCandidatesAdded
void RemoteCandidatesAdded(const Tp::CandidateList &candidates)
Tp::Client::CallStreamEndpointInterface::ControllingChanged
void ControllingChanged(bool controlling)
Tp::Client::CallStreamEndpointInterface::staticInterfaceName
static QLatin1String staticInterfaceName()
Definition: cli-call-stream-endpoint.h:55
Tp::DBusProxy
The DBusProxy class is a base class representing a remote object available over D-Bus.
Definition: dbus-proxy.h:42
QObject::parent
QObject * parent() const
Tp::Client::CallStreamEndpointInterface::CandidatePairSelected
void CandidatePairSelected(const Tp::Candidate &localCandidate, const Tp::Candidate &remoteCandidate)
Tp
Definition: abstract-adaptor.cpp:31