void Controller::removeMappings() { #if HAVE_LIBUPNP removeMappings(PortType::UDP); removeMappings(PortType::TCP); #endif }
Controller::~Controller() { /* remove all mappings */ removeMappings(); if (listToken_ and upnpContext_) upnpContext_->removeIGDListener(listToken_); }
void ActionSignalMapper::slotActionDestroyed(QObject *which) { QAction *asAction = qobject_cast<QAction*>(which); if (asAction) { removeMappings(asAction); } }
void WSignalMapper::senderDestroyed(WObject *sender) { removeMappings(sender); }