MythTV  master
Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Attributes | Static Protected Attributes | List of all members
UPnp Class Reference

#include <upnp.h>

Inheritance diagram for UPnp:
Inheritance graph
[legend]
Collaboration diagram for UPnp:
Collaboration graph
[legend]

Public Member Functions

 UPnp ()
 
virtual ~UPnp ()
 
bool Initialize (int nServicePort, HttpServer *pHttpServer)
 
bool Initialize (QList< QHostAddress > &sIPAddrList, int nServicePort, HttpServer *pHttpServer)
 
bool isInitialized ()
 
virtual void Start ()
 
void CleanUp ()
 
UPnpDeviceRootDevice ()
 
HttpServerGetHttpServer ()
 

Static Public Member Functions

static void SetConfiguration (Configuration *pConfig)
 
static ConfigurationGetConfiguration ()
 
static UPnpDeviceDescGetDeviceDesc (QString &sURL)
 
static QString GetResultDesc (UPnPResultCode eCode)
 
static void FormatErrorResponse (HTTPRequest *pRequest, UPnPResultCode eCode, const QString &sMsg="")
 
static void FormatRedirectResponse (HTTPRequest *pRequest, const QString &hostName)
 

Static Public Attributes

static UPnpDeviceDesc g_UPnpDeviceDesc
 
static QList< QHostAddress > g_IPAddrList
 

Protected Attributes

HttpServerm_pHttpServer {nullptr}
 
int m_nServicePort {0}
 

Static Protected Attributes

static Configurationg_pConfig = nullptr
 

Detailed Description

Definition at line 95 of file upnp.h.

Constructor & Destructor Documentation

◆ UPnp()

UPnp::UPnp ( )

Definition at line 42 of file upnp.cpp.

◆ ~UPnp()

UPnp::~UPnp ( )
virtual

Definition at line 51 of file upnp.cpp.

Member Function Documentation

◆ SetConfiguration()

void UPnp::SetConfiguration ( Configuration pConfig)
static

Definition at line 61 of file upnp.cpp.

Referenced by MediaRenderer::MediaRenderer(), and MediaServer::MediaServer().

◆ GetConfiguration()

Configuration * UPnp::GetConfiguration ( )
static

◆ Initialize() [1/2]

bool UPnp::Initialize ( int  nServicePort,
HttpServer pHttpServer 
)

Definition at line 86 of file upnp.cpp.

Referenced by MediaServer::Init(), and MediaRenderer::MediaRenderer().

◆ Initialize() [2/2]

bool UPnp::Initialize ( QList< QHostAddress > &  sIPAddrList,
int  nServicePort,
HttpServer pHttpServer 
)

Definition at line 102 of file upnp.cpp.

◆ isInitialized()

bool UPnp::isInitialized ( )
inline

Definition at line 121 of file upnp.h.

Referenced by main().

◆ Start()

void UPnp::Start ( void  )
virtual

Definition at line 163 of file upnp.cpp.

Referenced by MediaServer::Init(), and MediaRenderer::MediaRenderer().

◆ CleanUp()

void UPnp::CleanUp ( void  )

Definition at line 180 of file upnp.cpp.

Referenced by ~UPnp().

◆ RootDevice()

UPnpDevice* UPnp::RootDevice ( )
inline

Definition at line 127 of file upnp.h.

Referenced by MediaServer::Init(), and MediaRenderer::MediaRenderer().

◆ GetHttpServer()

HttpServer* UPnp::GetHttpServer ( )
inline

Definition at line 129 of file upnp.h.

Referenced by run_backend().

◆ GetDeviceDesc()

UPnpDeviceDesc * UPnp::GetDeviceDesc ( QString &  sURL)
static

Definition at line 198 of file upnp.cpp.

◆ GetResultDesc()

QString UPnp::GetResultDesc ( UPnPResultCode  eCode)
static

Definition at line 207 of file upnp.cpp.

Referenced by FormatErrorResponse().

◆ FormatErrorResponse()

void UPnp::FormatErrorResponse ( HTTPRequest pRequest,
UPnPResultCode  eCode,
const QString &  sMsg = "" 
)
static

◆ FormatRedirectResponse()

void UPnp::FormatRedirectResponse ( HTTPRequest pRequest,
const QString &  hostName 
)
static

Definition at line 305 of file upnp.cpp.

Referenced by ServiceHost::ProcessRequest().

Member Data Documentation

◆ g_pConfig

Configuration * UPnp::g_pConfig = nullptr
staticprotected

◆ m_pHttpServer

HttpServer* UPnp::m_pHttpServer {nullptr}
protected

◆ m_nServicePort

int UPnp::m_nServicePort {0}
protected

Definition at line 103 of file upnp.h.

Referenced by Initialize(), and Start().

◆ g_UPnpDeviceDesc

UPnpDeviceDesc UPnp::g_UPnpDeviceDesc
static

◆ g_IPAddrList

QList< QHostAddress > UPnp::g_IPAddrList
static

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