MythTV  master
Public Slots | Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Attributes | Static Protected Attributes | Private 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 Slots

static void DisableNotifications (uint)
 
void EnableNotificatins (qint64) const
 

Public Member Functions

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

Static Public Member Functions

static void SetConfiguration (Configuration *pConfig)
 
static ConfigurationGetConfiguration ()
 
static void CleanUp ()
 
static UPnpDeviceRootDevice ()
 
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
 

Private Attributes

MythPowerm_power
 

Detailed Description

Definition at line 99 of file upnp.h.

Constructor & Destructor Documentation

◆ UPnp()

UPnp::UPnp ( )

Definition at line 42 of file upnp.cpp.

◆ ~UPnp()

UPnp::~UPnp ( )
override

Definition at line 62 of file upnp.cpp.

Member Function Documentation

◆ SetConfiguration()

void UPnp::SetConfiguration ( Configuration pConfig)
static

Definition at line 74 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 99 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 115 of file upnp.cpp.

◆ isInitialized()

bool UPnp::isInitialized ( )
inline

Definition at line 126 of file upnp.h.

Referenced by main().

◆ Start()

void UPnp::Start ( void  )
virtual

Definition at line 175 of file upnp.cpp.

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

◆ CleanUp()

void UPnp::CleanUp ( void  )
static

Definition at line 192 of file upnp.cpp.

Referenced by ~UPnp().

◆ RootDevice()

static UPnpDevice* UPnp::RootDevice ( )
inlinestatic

Definition at line 132 of file upnp.h.

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

◆ GetHttpServer()

HttpServer* UPnp::GetHttpServer ( )
inline

Definition at line 134 of file upnp.h.

Referenced by run_backend().

◆ GetDeviceDesc()

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

Definition at line 210 of file upnp.cpp.

◆ GetResultDesc()

QString UPnp::GetResultDesc ( UPnPResultCode  eCode)
static

Definition at line 219 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 317 of file upnp.cpp.

Referenced by ServiceHost::ProcessRequest().

◆ DisableNotifications

void UPnp::DisableNotifications ( uint  )
staticslot

Definition at line 338 of file upnp.cpp.

Referenced by UPnp().

◆ EnableNotificatins

void UPnp::EnableNotificatins ( qint64  ) const
slot

Definition at line 343 of file upnp.cpp.

Referenced by UPnp().

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 108 of file upnp.h.

Referenced by EnableNotificatins(), Initialize(), and Start().

◆ g_UPnpDeviceDesc

UPnpDeviceDesc UPnp::g_UPnpDeviceDesc
static

◆ g_IPAddrList

QList< QHostAddress > UPnp::g_IPAddrList
static

◆ m_power

MythPower* UPnp::m_power
private

Definition at line 151 of file upnp.h.

Referenced by UPnp(), and ~UPnp().


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