diff options
| author | 2008-08-13 08:09:06 +0000 | |
|---|---|---|
| committer | 2008-08-13 08:09:06 +0000 | |
| commit | f6d479e00778ee70a84e46e01d40b7366bf224a2 (patch) | |
| tree | 17e6237f6779d3bb30da1ed841d9ce80450f7290 /src/modules/upnp/igdcontrolpoint.cpp | |
| parent | more work on upnp; should be able to get external ip address now (please test) (diff) | |
| download | KVIrc-f6d479e00778ee70a84e46e01d40b7366bf224a2.tar.gz KVIrc-f6d479e00778ee70a84e46e01d40b7366bf224a2.tar.bz2 KVIrc-f6d479e00778ee70a84e46e01d40b7366bf224a2.zip | |
wiped out layer3forwardingservice check from upnp module (incompatible between multiple vendors implementation)
git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@2235 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src/modules/upnp/igdcontrolpoint.cpp')
| -rw-r--r-- | src/modules/upnp/igdcontrolpoint.cpp | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/src/modules/upnp/igdcontrolpoint.cpp b/src/modules/upnp/igdcontrolpoint.cpp index c4d808a10..3ae288f22 100644 --- a/src/modules/upnp/igdcontrolpoint.cpp +++ b/src/modules/upnp/igdcontrolpoint.cpp @@ -35,14 +35,12 @@ #include "igdcontrolpoint.h" #include "rootservice.h" -#include "layer3forwardingservice.h" #include "wanconnectionservice.h" namespace UPnP { #define InternetGatewayDeviceType "urn:schemas-upnp-org:device:InternetGatewayDevice:1" -//#define Layer3ForwardingType "urn:schemas-upnp-org:service:Layer3Forwarding:1" #define WanIpConnectionType "urn:schemas-upnp-org:service:WANIPConnection:1" #define WanPPPConnectionType "urn:schemas-upnp-org:service:WANPPPConnection:1" @@ -50,7 +48,6 @@ namespace UPnP // The constructor IgdControlPoint::IgdControlPoint(const QString &hostname, int port, const QString &rootUrl) : QObject() -, m_pForwardingService(0) , m_bGatewayAvailable(false) , m_iIgdPort(0) , m_pRootService(0) @@ -76,7 +73,6 @@ IgdControlPoint::IgdControlPoint(const QString &hostname, int port, const QStrin IgdControlPoint::~IgdControlPoint() { delete m_pRootService; - delete m_pForwardingService; delete m_pWanConnectionService; qDebug() << "DESTROYED UPnP::IgdControlPoint [host=" << m_szIgdHostname << ", port=" << m_iIgdPort << "]" << endl; @@ -139,36 +135,6 @@ void IgdControlPoint::slotDeviceQueried(bool error) } -/* -// A WAN connection service was found -void IgdControlPoint::slotWanConnectionFound(bool error) -{ - if(! error) - { - // Get the retreived service description - QString deviceUrn = m_pForwardingService->getConnectionDeviceUdn(); - QString serviceId = m_pForwardingService->getConnectionServiceId(); - ServiceParameters params = m_pRootService->getServiceById(serviceId, deviceUrn); - - if(! params.controlUrl.isNull()) - { - qDebug() << "UPnP::IgdControlPoint: wan/ipconnection service found, " - << "querying service '" << params.serviceId << "' for external ip address..." << endl; - - // Call the service - m_pWanConnectionService = new WanConnectionService(params); - connect(m_pWanConnectionService, SIGNAL(queryFinished(bool)), this, SLOT(slotWanQueryFinished(bool))); - m_pWanConnectionService->queryExternalIpAddress(); - } - } - - // No longer need the forwarding service - m_pForwardingService->deleteLater(); - m_pForwardingService = 0; -} -*/ - - // A WAN connection query was finished void IgdControlPoint::slotWanQueryFinished(bool error) { |
