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

#include <Manager.h>

+ Inheritance diagram for UPnP::Manager:

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
 
bool isGatewayAvailable ()
 
virtual ~Manager ()
 

Static Public Member Functions

static Managerinstance ()
 

Private Slots

void slotBroadcastTimeout ()
 
void slotDeviceFound (const QString &hostname, int port, const QString &rootUrl)
 

Private Member Functions

void initialize ()
 
 Manager ()
 
 Manager (const Manager &)
 
Manageroperator= (const Manager &)
 

Private Attributes

bool m_bBroadcastFailed
 
bool m_bBroadcastFoundIt
 
KviPointerList< IgdControlPointm_lIgdControlPoints
 
IgdControlPointm_pActiveIgdControlPoint
 
SsdpConnectionm_pSsdpConnection
 
QTimer * m_pSsdpTimer
 

Static Private Attributes

static Managerm_pInstance
 

Detailed Description

The manager class is the public interface used by other networking classes. It's implemented as singleton to provide easy access by other classes. Devices are automatically detected at start-up, and maintained by this class. Underneath, the actual work is done by the SsdpConnection and IgdControlPoint classes.

Author
Diederik van der Boor

Constructor & Destructor Documentation

UPnP::Manager::~Manager ( )
virtual
UPnP::Manager::Manager ( )
private

Referenced by instance().

UPnP::Manager::Manager ( const Manager )
private

Member Function Documentation

void UPnP::Manager::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::Manager::deletePortMapping ( const QString &  protocol,
const QString &  remoteHost,
int  externalPort 
)
QString UPnP::Manager::getExternalIpAddress ( ) const
void UPnP::Manager::initialize ( )
private
Manager * UPnP::Manager::instance ( )
static
bool UPnP::Manager::isGatewayAvailable ( )
Manager& UPnP::Manager::operator= ( const Manager )
private
void UPnP::Manager::slotBroadcastTimeout ( )
privateslot

References m_bBroadcastFailed, and m_bBroadcastFoundIt.

Referenced by initialize().

void UPnP::Manager::slotDeviceFound ( const QString &  hostname,
int  port,
const QString &  rootUrl 
)
privateslot

Member Data Documentation

bool UPnP::Manager::m_bBroadcastFailed
private

Referenced by initialize(), and slotBroadcastTimeout().

bool UPnP::Manager::m_bBroadcastFoundIt
private
KviPointerList<IgdControlPoint> UPnP::Manager::m_lIgdControlPoints
private

Referenced by slotDeviceFound().

IgdControlPoint* UPnP::Manager::m_pActiveIgdControlPoint
private
Manager * UPnP::Manager::m_pInstance
staticprivate

Referenced by instance(), and ~Manager().

SsdpConnection* UPnP::Manager::m_pSsdpConnection
private

Referenced by initialize(), and ~Manager().

QTimer* UPnP::Manager::m_pSsdpTimer
private

Referenced by initialize(), and ~Manager().


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