File indexing completed on 2023-12-03 08:28:36
0001 #define IN_TP_QT_HEADER 0002 #include "channel-proxy-interface.h" 0003 0004 namespace KTp 0005 { 0006 namespace Client 0007 { 0008 0009 ChannelProxyInterfaceOTRInterface::ChannelProxyInterfaceOTRInterface(const QString& busName, const QString& objectPath, QObject *parent) 0010 : Tp::AbstractInterface(busName, objectPath, staticInterfaceName(), QDBusConnection::sessionBus(), parent) 0011 { 0012 } 0013 0014 ChannelProxyInterfaceOTRInterface::ChannelProxyInterfaceOTRInterface(const QDBusConnection& connection, const QString& busName, const QString& objectPath, QObject *parent) 0015 : Tp::AbstractInterface(busName, objectPath, staticInterfaceName(), connection, parent) 0016 { 0017 } 0018 0019 ChannelProxyInterfaceOTRInterface::ChannelProxyInterfaceOTRInterface(Tp::DBusProxy *proxy) 0020 : Tp::AbstractInterface(proxy, staticInterfaceName()) 0021 { 0022 } 0023 0024 ChannelProxyInterfaceOTRInterface::ChannelProxyInterfaceOTRInterface(const Tp::AbstractInterface& mainInterface) 0025 : Tp::AbstractInterface(mainInterface.service(), mainInterface.path(), staticInterfaceName(), mainInterface.connection(), mainInterface.parent()) 0026 { 0027 } 0028 0029 ChannelProxyInterfaceOTRInterface::ChannelProxyInterfaceOTRInterface(const Tp::AbstractInterface& mainInterface, QObject *parent) 0030 : Tp::AbstractInterface(mainInterface.service(), mainInterface.path(), staticInterfaceName(), mainInterface.connection(), parent) 0031 { 0032 } 0033 0034 void ChannelProxyInterfaceOTRInterface::invalidate(Tp::DBusProxy *proxy, 0035 const QString &error, const QString &message) 0036 { 0037 disconnect(this, SIGNAL(MessageSent(const Tp::MessagePartList&, uint, const QString&)), nullptr, nullptr); 0038 disconnect(this, SIGNAL(MessageReceived(const Tp::MessagePartList&)), nullptr, nullptr); 0039 disconnect(this, SIGNAL(PendingMessagesRemoved(const Tp::UIntList&)), nullptr, nullptr); 0040 disconnect(this, SIGNAL(PeerAuthenticationRequested(const QString&)), nullptr, nullptr); 0041 disconnect(this, SIGNAL(PeerAuthenticationConcluded(bool)), nullptr, nullptr); 0042 disconnect(this, SIGNAL(PeerAuthenticationInProgress()), nullptr, nullptr); 0043 disconnect(this, SIGNAL(PeerAuthenticationAborted()), nullptr, nullptr); 0044 disconnect(this, SIGNAL(PeerAuthenticationError()), nullptr, nullptr); 0045 disconnect(this, SIGNAL(PeerAuthenticationCheated()), nullptr, nullptr); 0046 disconnect(this, SIGNAL(SessionRefreshed()), nullptr, nullptr); 0047 disconnect(this, SIGNAL(TrustLevelChanged(uint)), nullptr, nullptr); 0048 0049 Tp::AbstractInterface::invalidate(proxy, error, message); 0050 } 0051 } 0052 }