Home · All Classes · All Namespaces · Modules · Functions · Files
cli-call-stream-body.hpp
00001 #define IN_TP_QT_HEADER
00002 #include "TelepathyQt/call-stream.h"
00003 
00004 namespace Tp
00005 {
00006 namespace Client
00007 {
00008 
00009 CallStreamInterface::CallStreamInterface(const QString& busName, const QString& objectPath, QObject *parent)
00010     : Tp::AbstractInterface(busName, objectPath, staticInterfaceName(), QDBusConnection::sessionBus(), parent)
00011 {
00012 }
00013 
00014 CallStreamInterface::CallStreamInterface(const QDBusConnection& connection, const QString& busName, const QString& objectPath, QObject *parent)
00015     : Tp::AbstractInterface(busName, objectPath, staticInterfaceName(), connection, parent)
00016 {
00017 }
00018 
00019 CallStreamInterface::CallStreamInterface(Tp::DBusProxy *proxy)
00020     : Tp::AbstractInterface(proxy, staticInterfaceName())
00021 {
00022 }
00023 
00024 void CallStreamInterface::invalidate(Tp::DBusProxy *proxy,
00025         const QString &error, const QString &message)
00026 {
00027     disconnect(this, SIGNAL(RemoteMembersChanged(const Tp::ContactSendingStateMap&, const Tp::HandleIdentifierMap&, const Tp::UIntList&, const Tp::CallStateReason&)), NULL, NULL);
00028     disconnect(this, SIGNAL(LocalSendingStateChanged(uint, const Tp::CallStateReason&)), NULL, NULL);
00029 
00030     Tp::AbstractInterface::invalidate(proxy, error, message);
00031 }
00032 
00033 CallStreamInterfaceMediaInterface::CallStreamInterfaceMediaInterface(const QString& busName, const QString& objectPath, QObject *parent)
00034     : Tp::AbstractInterface(busName, objectPath, staticInterfaceName(), QDBusConnection::sessionBus(), parent)
00035 {
00036 }
00037 
00038 CallStreamInterfaceMediaInterface::CallStreamInterfaceMediaInterface(const QDBusConnection& connection, const QString& busName, const QString& objectPath, QObject *parent)
00039     : Tp::AbstractInterface(busName, objectPath, staticInterfaceName(), connection, parent)
00040 {
00041 }
00042 
00043 CallStreamInterfaceMediaInterface::CallStreamInterfaceMediaInterface(Tp::DBusProxy *proxy)
00044     : Tp::AbstractInterface(proxy, staticInterfaceName())
00045 {
00046 }
00047 
00048 CallStreamInterfaceMediaInterface::CallStreamInterfaceMediaInterface(const Tp::Client::CallStreamInterface& mainInterface)
00049     : Tp::AbstractInterface(mainInterface.service(), mainInterface.path(), staticInterfaceName(), mainInterface.connection(), mainInterface.parent())
00050 {
00051 }
00052 
00053 CallStreamInterfaceMediaInterface::CallStreamInterfaceMediaInterface(const Tp::Client::CallStreamInterface& mainInterface, QObject *parent)
00054     : Tp::AbstractInterface(mainInterface.service(), mainInterface.path(), staticInterfaceName(), mainInterface.connection(), parent)
00055 {
00056 }
00057 
00058 void CallStreamInterfaceMediaInterface::invalidate(Tp::DBusProxy *proxy,
00059         const QString &error, const QString &message)
00060 {
00061     disconnect(this, SIGNAL(SendingStateChanged(uint)), NULL, NULL);
00062     disconnect(this, SIGNAL(ReceivingStateChanged(uint)), NULL, NULL);
00063     disconnect(this, SIGNAL(LocalCandidatesAdded(const Tp::CandidateList&)), NULL, NULL);
00064     disconnect(this, SIGNAL(LocalCredentialsChanged(const QString&, const QString&)), NULL, NULL);
00065     disconnect(this, SIGNAL(RelayInfoChanged(const Tp::StringVariantMapList&)), NULL, NULL);
00066     disconnect(this, SIGNAL(STUNServersChanged(const Tp::SocketAddressIPList&)), NULL, NULL);
00067     disconnect(this, SIGNAL(ServerInfoRetrieved()), NULL, NULL);
00068     disconnect(this, SIGNAL(EndpointsChanged(const Tp::ObjectPathList&, const Tp::ObjectPathList&)), NULL, NULL);
00069     disconnect(this, SIGNAL(ICERestartRequested()), NULL, NULL);
00070 
00071     Tp::AbstractInterface::invalidate(proxy, error, message);
00072 }
00073 }
00074 }


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