|
|
@ -33,6 +33,7 @@ |
|
|
|
#include <string> |
|
|
|
#include <string> |
|
|
|
#include <sstream> |
|
|
|
#include <sstream> |
|
|
|
#include <vector> |
|
|
|
#include <vector> |
|
|
|
|
|
|
|
#include <QObject> |
|
|
|
|
|
|
|
|
|
|
|
#include <upnp/upnp.h> |
|
|
|
#include <upnp/upnp.h> |
|
|
|
#include <upnp/upnptools.h> |
|
|
|
#include <upnp/upnptools.h> |
|
|
@ -49,14 +50,6 @@ |
|
|
|
|
|
|
|
|
|
|
|
#include <QWaitCondition> |
|
|
|
#include <QWaitCondition> |
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* Case insensitive std::string comparison |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
bool stdStringIsEqualCI( |
|
|
|
|
|
|
|
const std::string &s1, |
|
|
|
|
|
|
|
const std::string &s2); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class CUPnPPortMapping |
|
|
|
class CUPnPPortMapping |
|
|
|
{ |
|
|
|
{ |
|
|
|
private: |
|
|
|
private: |
|
|
@ -555,8 +548,9 @@ typedef std::map<const std::string, CUPnPService *> ServiceMap; |
|
|
|
typedef std::map<const std::string, CUPnPPortMapping> PortMappingMap; |
|
|
|
typedef std::map<const std::string, CUPnPPortMapping> PortMappingMap; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class CUPnPControlPoint |
|
|
|
class CUPnPControlPoint : public QObject { |
|
|
|
{ |
|
|
|
Q_OBJECT |
|
|
|
|
|
|
|
|
|
|
|
private: |
|
|
|
private: |
|
|
|
static CUPnPControlPoint *s_CtrlPoint; |
|
|
|
static CUPnPControlPoint *s_CtrlPoint; |
|
|
|
// upnp stuff
|
|
|
|
// upnp stuff
|
|
|
@ -603,6 +597,9 @@ public: |
|
|
|
void* Event, |
|
|
|
void* Event, |
|
|
|
void* Cookie); |
|
|
|
void* Cookie); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
signals: |
|
|
|
|
|
|
|
void noWanServiceDetected(); |
|
|
|
|
|
|
|
|
|
|
|
private: |
|
|
|
private: |
|
|
|
void OnEventReceived( |
|
|
|
void OnEventReceived( |
|
|
|
const std::string &Sid, |
|
|
|
const std::string &Sid, |
|
|
|