MythTV  master
Public Member Functions | Protected Attributes | Private Attributes | List of all members
MediaServer Class Reference

#include <mediaserver.h>

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

Public Member Functions

 MediaServer ()
 
void Init (bool bIsMaster, bool bDisableUPnp=false)
 
 ~MediaServer () override
 
void RegisterExtension (UPnpCDSExtension *pExtension)
 
void UnregisterExtension (UPnpCDSExtension *pExtension)
 
- Public Member Functions inherited from UPnp
 UPnp ()
 
 ~UPnp () override
 
bool Initialize (int nServicePort, HttpServer *pHttpServer)
 
bool Initialize (QList< QHostAddress > &sIPAddrList, int nServicePort, HttpServer *pHttpServer)
 
bool isInitialized ()
 
virtual void Start ()
 
HttpServerGetHttpServer ()
 

Protected Attributes

UPnpCDSm_pUPnpCDS {nullptr}
 
UPnpCMGRm_pUPnpCMGR {nullptr}
 
QString m_sSharePath
 
- Protected Attributes inherited from UPnp
HttpServerm_pHttpServer {nullptr}
 
int m_nServicePort {0}
 

Private Attributes

WebSocketServerm_webSocketServer {nullptr}
 

Additional Inherited Members

- Public Slots inherited from UPnp
static void DisableNotifications (std::chrono::milliseconds)
 
void EnableNotificatins (std::chrono::milliseconds) const
 
- Static Public Member Functions inherited from UPnp
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 inherited from UPnp
static UPnpDeviceDesc g_UPnpDeviceDesc
 
static QList< QHostAddress > g_IPAddrList
 
- Static Protected Attributes inherited from UPnp
static Configurationg_pConfig = nullptr
 

Detailed Description

Definition at line 32 of file mediaserver.h.

Constructor & Destructor Documentation

◆ MediaServer()

MediaServer::MediaServer ( )
explicit

Definition at line 51 of file mediaserver.cpp.

◆ ~MediaServer()

MediaServer::~MediaServer ( )
override

Definition at line 288 of file mediaserver.cpp.

Member Function Documentation

◆ Init()

void MediaServer::Init ( bool  bIsMaster,
bool  bDisableUPnp = false 
)

Definition at line 69 of file mediaserver.cpp.

Referenced by run_backend().

◆ RegisterExtension()

void MediaServer::RegisterExtension ( UPnpCDSExtension pExtension)

Definition at line 323 of file mediaserver.cpp.

Referenced by Init().

◆ UnregisterExtension()

void MediaServer::UnregisterExtension ( UPnpCDSExtension pExtension)

Definition at line 332 of file mediaserver.cpp.

Member Data Documentation

◆ m_webSocketServer

WebSocketServer* MediaServer::m_webSocketServer {nullptr}
private

Definition at line 39 of file mediaserver.h.

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

◆ m_pUPnpCDS

UPnpCDS* MediaServer::m_pUPnpCDS {nullptr}
protected

Definition at line 43 of file mediaserver.h.

Referenced by Init(), RegisterExtension(), and UnregisterExtension().

◆ m_pUPnpCMGR

UPnpCMGR* MediaServer::m_pUPnpCMGR {nullptr}
protected

Definition at line 44 of file mediaserver.h.

Referenced by Init().

◆ m_sSharePath

QString MediaServer::m_sSharePath
protected

Definition at line 46 of file mediaserver.h.

Referenced by Init().


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