KVIrc  4.9.2
DeveloperAPIs
Public Member Functions | Private Slots | Private Attributes | List of all members
UPnP::IgdControlPoint Class Reference

#include <igdcontrolpoint.h>

+ Inheritance diagram for UPnP::IgdControlPoint:

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 ()
 
virtual ~IgdControlPoint ()
 

Private Slots

void slotDeviceQueried (bool error)
 
void slotWanQueryFinished (bool error)
 

Private Attributes

bool m_bGatewayAvailable
 
int m_iIgdPort
 
RootServicem_pRootService
 
WanConnectionServicem_pWanConnectionService
 
QString m_szIgdHostname
 

Detailed Description

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.

Author
Diederik van der Boor

Constructor & Destructor Documentation

UPnP::IgdControlPoint::IgdControlPoint ( const QString &  hostname,
int  port,
const QString &  rootUrl 
)
UPnP::IgdControlPoint::~IgdControlPoint ( )
virtual

Member Function Documentation

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 
)
void UPnP::IgdControlPoint::deletePortMapping ( const QString &  protocol,
const QString &  remoteHost,
int  externalPort 
)
QString UPnP::IgdControlPoint::getExternalIpAddress ( ) const
void UPnP::IgdControlPoint::initialize ( )
bool UPnP::IgdControlPoint::isGatewayAvailable ( )
void UPnP::IgdControlPoint::slotDeviceQueried ( bool  error)
privateslot
void UPnP::IgdControlPoint::slotWanQueryFinished ( bool  error)
privateslot

Referenced by slotDeviceQueried().

Member Data Documentation

bool UPnP::IgdControlPoint::m_bGatewayAvailable
private
int UPnP::IgdControlPoint::m_iIgdPort
private
RootService* UPnP::IgdControlPoint::m_pRootService
private
WanConnectionService* UPnP::IgdControlPoint::m_pWanConnectionService
private
QString UPnP::IgdControlPoint::m_szIgdHostname
private

The documentation for this class was generated from the following files: