- Added a message log when an UPnP WAN service is detected

This commit is contained in:
Christophe Dumez 2007-03-29 14:49:01 +00:00
parent 3ff075c048
commit 4ca852c2b3
7 changed files with 18 additions and 2 deletions

View file

@ -90,6 +90,7 @@ void bittorrent::enableUPnP(int port){
"qBittorrent");
m_upnp = new CUPnPControlPoint(port);
connect(m_upnp, SIGNAL(noWanServiceDetected()), this, SLOT(noWanServiceEventHandler()));
connect(m_upnp, SIGNAL(yeswanServiceDetected()), this, SLOT(wanServiceEventHandler()));
m_upnp->AddPortMappings(m_upnpMappings);
}
}
@ -99,6 +100,11 @@ void bittorrent::noWanServiceEventHandler(){
emit noWanServiceDetected();
}
void bittorrent::wanServiceEventHandler(){
// Forward this signal
emit wanServiceDetected();
}
// Set UPnP port (>= 1000)
void bittorrent::setUPnPPort(int upnp_port){
if(!UPnPEnabled){