34 #ifndef UPNP_WANCONNECTIONSERVICE_H
35 #define UPNP_WANCONNECTIONSERVICE_H
74 void addPortMapping(
const QString & protocol,
const QString & remoteHost,
int externalPort,
75 const QString & internalClient,
int internalPort,
const QString & description,
76 bool enabled =
true,
int leaseDuration = 0);
78 void deletePortMapping(
const QString & protocol,
const QString & remoteHost,
int externalPort);
96 virtual void gotActionResponse(
const QString & responseType,
const QMap<QString, QString> & resultValues);
const KviPointerList< PortMapping > & getPortMappings() const
Definition: WanConnectionService.cpp:90
QString remoteHost
Definition: WanConnectionService.h:46
Definition: WanConnectionService.h:65
KviPointerList< PortMapping > m_lPortMappings
Definition: WanConnectionService.h:104
virtual ~WanConnectionService()
Definition: WanConnectionService.h:43
bool getNatEnabled() const
Definition: WanConnectionService.cpp:84
int internalPort
Definition: WanConnectionService.h:49
bool enabled
Definition: WanConnectionService.h:52
QString internalClient
Definition: WanConnectionService.h:48
WanConnectionService(const ServiceParameters ¶ms)
Definition: WanConnectionService.cpp:41
void addPortMapping(const QString &protocol, const QString &remoteHost, int externalPort, const QString &internalClient, int internalPort, const QString &description, bool enabled=true, int leaseDuration=0)
Definition: WanConnectionService.cpp:51
int leaseDuration
Definition: WanConnectionService.h:50
virtual void gotActionResponse(const QString &responseType, const QMap< QString, QString > &resultValues)
Definition: WanConnectionService.cpp:96
QString protocol
Definition: WanConnectionService.h:45
C++ Template based double linked pointer list class.
A template double linked list of pointers.
Definition: KviPointerList.h:55
void queryNatEnabled()
Definition: WanConnectionService.cpp:160
QString description
Definition: WanConnectionService.h:51
QString getExternalIpAddress() const
Definition: WanConnectionService.cpp:78
void queryExternalIpAddress()
Definition: WanConnectionService.cpp:154
void deletePortMapping(const QString &protocol, const QString &remoteHost, int externalPort)
Definition: WanConnectionService.cpp:68
bool m_bNatEnabled
Definition: WanConnectionService.h:102
void queryPortMappingEntry(int index)
Definition: WanConnectionService.cpp:166
QString m_szExternalIpAddress
Definition: WanConnectionService.h:100
int externalPort
Definition: WanConnectionService.h:47