![]() |
KVIrc 5.2.6
Developer APIs
|
#include <igdcontrolpoint.h>
Public Member Functions | |
void | addPortMapping (const QString &protocol, const QString &remoteHost, int externalPort, const QString &internalClient, int internalPort, const QString &description, bool enabled=true, int leaseDuration=0) |
void | deletePortMapping (const QString &protocol, const QString &remoteHost, int externalPort) |
QString | getExternalIpAddress () const |
IgdControlPoint (const QString &hostname, int port, const QString &rootUrl) | |
void | initialize () |
bool | isGatewayAvailable () |
~IgdControlPoint () | |
Private Slots | |
void | slotDeviceQueried (bool error) |
void | slotWanQueryFinished (bool error) |
Private Attributes | |
bool | m_bGatewayAvailable |
int | m_iIgdPort |
RootService * | m_pRootService |
WanConnectionService * | m_pWanConnectionService |
QString | m_szIgdHostname |
A control point is a UPnP term for "client". It's the host that controls the UPnP device. This control point specifically handles Internet Gateway Devices (routers in UPnP terminology). It queries the device for its port mapping service (an instance of a WanIPConnection or WanPPPConnection service). Once the service is found, it can be used from the Manager class to configure port mappings.
UPnP::IgdControlPoint::IgdControlPoint | ( | const QString & | hostname, |
int | port, | ||
const QString & | rootUrl ) |
References connect(), m_bGatewayAvailable, m_iIgdPort, m_pRootService, m_pWanConnectionService, m_szIgdHostname, nullptr, and slotDeviceQueried().
UPnP::IgdControlPoint::~IgdControlPoint | ( | ) |
References m_iIgdPort, m_pRootService, m_pWanConnectionService, and m_szIgdHostname.
void UPnP::IgdControlPoint::addPortMapping | ( | const QString & | protocol, |
const QString & | remoteHost, | ||
int | externalPort, | ||
const QString & | internalClient, | ||
int | internalPort, | ||
const QString & | description, | ||
bool | enabled = true, | ||
int | leaseDuration = 0 ) |
References m_pWanConnectionService.
void UPnP::IgdControlPoint::deletePortMapping | ( | const QString & | protocol, |
const QString & | remoteHost, | ||
int | externalPort ) |
References m_pWanConnectionService.
QString UPnP::IgdControlPoint::getExternalIpAddress | ( | ) | const |
References m_pWanConnectionService.
void UPnP::IgdControlPoint::initialize | ( | ) |
References m_pRootService.
bool UPnP::IgdControlPoint::isGatewayAvailable | ( | ) |
References m_bGatewayAvailable.
|
privateslot |
|
privateslot |
Referenced by slotDeviceQueried().
|
private |
Referenced by IgdControlPoint(), isGatewayAvailable(), and slotDeviceQueried().
|
private |
Referenced by IgdControlPoint(), and ~IgdControlPoint().
|
private |
Referenced by IgdControlPoint(), initialize(), slotDeviceQueried(), and ~IgdControlPoint().
|
private |
Referenced by addPortMapping(), deletePortMapping(), getExternalIpAddress(), IgdControlPoint(), slotDeviceQueried(), and ~IgdControlPoint().
|
private |
Referenced by IgdControlPoint(), and ~IgdControlPoint().