00001 #define IN_TELEPATHY_QT4_HEADER
00002 #include "TelepathyQt4/media-stream-handler.h"
00003
00004 namespace Tp
00005 {
00006 namespace Client
00007 {
00008
00009 MediaStreamHandlerInterface::MediaStreamHandlerInterface(const QString& busName, const QString& objectPath, QObject *parent)
00010 : Tp::AbstractInterface(busName, objectPath, staticInterfaceName(), QDBusConnection::sessionBus(), parent)
00011 {
00012 }
00013
00014 MediaStreamHandlerInterface::MediaStreamHandlerInterface(const QDBusConnection& connection, const QString& busName, const QString& objectPath, QObject *parent)
00015 : Tp::AbstractInterface(busName, objectPath, staticInterfaceName(), connection, parent)
00016 {
00017 }
00018
00019 MediaStreamHandlerInterface::MediaStreamHandlerInterface(Tp::DBusProxy *proxy)
00020 : Tp::AbstractInterface(proxy, staticInterfaceName())
00021 {
00022 }
00023
00024 void MediaStreamHandlerInterface::invalidate(Tp::DBusProxy *proxy,
00025 const QString &error, const QString &message)
00026 {
00027 disconnect(this, SIGNAL(AddRemoteCandidate(const QString&, const Tp::MediaStreamHandlerTransportList&)), NULL, NULL);
00028 disconnect(this, SIGNAL(Close()), NULL, NULL);
00029 disconnect(this, SIGNAL(RemoveRemoteCandidate(const QString&)), NULL, NULL);
00030 disconnect(this, SIGNAL(SetActiveCandidatePair(const QString&, const QString&)), NULL, NULL);
00031 disconnect(this, SIGNAL(SetRemoteCandidateList(const Tp::MediaStreamHandlerCandidateList&)), NULL, NULL);
00032 disconnect(this, SIGNAL(SetRemoteCodecs(const Tp::MediaStreamHandlerCodecList&)), NULL, NULL);
00033 disconnect(this, SIGNAL(SetStreamPlaying(bool)), NULL, NULL);
00034 disconnect(this, SIGNAL(SetStreamSending(bool)), NULL, NULL);
00035 disconnect(this, SIGNAL(StartTelephonyEvent(uchar)), NULL, NULL);
00036 disconnect(this, SIGNAL(StartNamedTelephonyEvent(uchar, uint)), NULL, NULL);
00037 disconnect(this, SIGNAL(StartSoundTelephonyEvent(uchar)), NULL, NULL);
00038 disconnect(this, SIGNAL(StopTelephonyEvent()), NULL, NULL);
00039 disconnect(this, SIGNAL(SetStreamHeld(bool)), NULL, NULL);
00040
00041 Tp::AbstractInterface::invalidate(proxy, error, message);
00042 }
00043 }
00044 }