MythTV  master
Public Slots | Public Member Functions | Static Public Member Functions | Static Public Attributes | 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 (std::chrono::milliseconds)
 
void EnableNotificatins (std::chrono::milliseconds) 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 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}
 

Private Attributes

MythPowerm_power
 

Detailed Description

Definition at line 98 of file upnp.h.

Constructor & Destructor Documentation

◆ UPnp()

UPnp::UPnp ( )

Definition at line 37 of file upnp.cpp.

◆ ~UPnp()

UPnp::~UPnp ( )
override

Definition at line 57 of file upnp.cpp.

Member Function Documentation

◆ Initialize() [1/2]

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

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

◆ isInitialized()

bool UPnp::isInitialized ( )
inline

Definition at line 120 of file upnp.h.

Referenced by main().

◆ Start()

void UPnp::Start ( )
virtual

Definition at line 144 of file upnp.cpp.

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

◆ CleanUp()

void UPnp::CleanUp ( )
static

Definition at line 161 of file upnp.cpp.

Referenced by ~UPnp().

◆ RootDevice()

static UPnpDevice* UPnp::RootDevice ( )
inlinestatic

Definition at line 126 of file upnp.h.

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

◆ GetHttpServer()

HttpServer* UPnp::GetHttpServer ( )
inline

Definition at line 128 of file upnp.h.

Referenced by run_backend().

◆ GetDeviceDesc()

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

Definition at line 172 of file upnp.cpp.

◆ GetResultDesc()

QString UPnp::GetResultDesc ( UPnPResultCode  eCode)
static

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

Referenced by ServiceHost::ProcessRequest().

◆ DisableNotifications

void UPnp::DisableNotifications ( std::chrono::milliseconds  )
staticslot

Definition at line 300 of file upnp.cpp.

Referenced by UPnp().

◆ EnableNotificatins

void UPnp::EnableNotificatins ( std::chrono::milliseconds  ) const
slot

Definition at line 305 of file upnp.cpp.

Referenced by UPnp().

Member Data Documentation

◆ m_pHttpServer

HttpServer* UPnp::m_pHttpServer {nullptr}
protected

◆ m_nServicePort

int UPnp::m_nServicePort {0}
protected

Definition at line 105 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 145 of file upnp.h.

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


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