UPnp Class Reference

#include <upnp.h>

Inheritance diagram for UPnp:
MediaRenderer MediaServer

List of all members.

Public Member Functions

 UPnp ()
virtual ~UPnp ()
bool Initialize (int nServicePort, HttpServer *pHttpServer)
bool Initialize (QStringList &sIPAddrList, int nServicePort, HttpServer *pHttpServer)
virtual void Start ()
void CleanUp ()
UPnpDeviceRootDevice ()
HttpServerGetHttpServer ()

Static Public Member Functions

static void SetConfiguration (Configuration *pConfig)
static ConfigurationGetConfiguration ()
static UPnpDeviceDescGetDeviceDesc (QString &sURL, bool bInQtThread=true)
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 QStringList g_IPAddrList

Protected Attributes

HttpServerm_pHttpServer
int m_nServicePort

Static Protected Attributes

static Configurationg_pConfig = NULL

Detailed Description

Definition at line 94 of file upnp.h.


Constructor & Destructor Documentation

UPnp::UPnp (  ) 

Definition at line 38 of file upnp.cpp.

UPnp::~UPnp (  )  [virtual]

Definition at line 48 of file upnp.cpp.


Member Function Documentation

void UPnp::SetConfiguration ( Configuration pConfig  )  [static]

Definition at line 58 of file upnp.cpp.

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

Configuration * UPnp::GetConfiguration (  )  [static]
bool UPnp::Initialize ( int  nServicePort,
HttpServer pHttpServer 
)

Definition at line 85 of file upnp.cpp.

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

bool UPnp::Initialize ( QStringList &  sIPAddrList,
int  nServicePort,
HttpServer pHttpServer 
)

Definition at line 98 of file upnp.cpp.

void UPnp::Start ( void   )  [virtual]

Definition at line 135 of file upnp.cpp.

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

void UPnp::CleanUp (  ) 

Definition at line 152 of file upnp.cpp.

Referenced by ~UPnp().

UPnpDevice* UPnp::RootDevice (  )  [inline]

Definition at line 123 of file upnp.h.

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

HttpServer* UPnp::GetHttpServer (  )  [inline]

Definition at line 125 of file upnp.h.

Referenced by run_backend().

UPnpDeviceDesc * UPnp::GetDeviceDesc ( QString &  sURL,
bool  bInQtThread = true 
) [static]

Definition at line 170 of file upnp.cpp.

QString UPnp::GetResultDesc ( UPnPResultCode  eCode  )  [static]

Definition at line 179 of file upnp.cpp.

Referenced by FormatErrorResponse().

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

Definition at line 276 of file upnp.cpp.

Referenced by ServiceHost::ProcessRequest().


Member Data Documentation

Configuration * UPnp::g_pConfig = NULL [static, protected]

Reimplemented in MediaRenderer.

Definition at line 101 of file upnp.h.

Referenced by MediaServer::Init(), Initialize(), and MediaServer::~MediaServer().

int UPnp::m_nServicePort [protected]

Definition at line 102 of file upnp.h.

Referenced by Initialize(), and Start().

QStringList UPnp::g_IPAddrList [static]

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends
Generated on Mon May 28 06:42:31 2012 for MythTV by  doxygen 1.6.3