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

A simple wrapper containing details about a UPnP Media Server. More...

#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)
 
virtual ~MediaServer ()
 
void RegisterExtension (UPnpCDSExtension *pExtension)
 
void UnregisterExtension (UPnpCDSExtension *pExtension)
 
 MediaServer ()
 
 MediaServer (QUrl URL)
 
bool ResetContent (int new_id)
 
- Public Member Functions inherited from MediaServerItem
 MediaServerItem ()
 
 MediaServerItem (const QString &id, const QString &parent, const QString &name, const QString &url)
 
QString NextUnbrowsed (void)
 
MediaServerItemFind (QString &id)
 
bool Add (MediaServerItem &item)
 
void Reset (void)
 
- Public Member Functions inherited from UPnp
 UPnp ()
 
virtual ~UPnp ()
 
bool Initialize (int nServicePort, HttpServer *pHttpServer)
 
bool Initialize (QList< QHostAddress > &sIPAddrList, int nServicePort, HttpServer *pHttpServer)
 
bool isInitialized ()
 
virtual void Start ()
 
UPnpDeviceRootDevice ()
 
HttpServerGetHttpServer ()
 

Public Attributes

QUrl m_url
 
int m_connectionAttempts {0}
 
QUrl m_controlURL
 
QUrl m_eventSubURL
 
QString m_eventSubPath
 
QString m_friendlyName
 
bool m_subscribed {false}
 
int m_renewalTimerId {0}
 
int m_systemUpdateID {-1}
 
- Public Attributes inherited from MediaServerItem
QString m_id
 
QString m_parentid
 
QString m_name
 
QString m_url
 
bool m_scanned {false}
 
QMap< QString, MediaServerItemm_children
 

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

- Static Public Member Functions inherited from UPnp
static void SetConfiguration (Configuration *pConfig)
 
static ConfigurationGetConfiguration ()
 
static void CleanUp ()
 
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

A simple wrapper containing details about a UPnP Media Server.

Definition at line 32 of file mediaserver.h.

Constructor & Destructor Documentation

◆ MediaServer() [1/3]

MediaServer::MediaServer ( void  )
explicit

Definition at line 51 of file mediaserver.cpp.

◆ ~MediaServer()

MediaServer::~MediaServer ( )
virtual

Definition at line 288 of file mediaserver.cpp.

◆ MediaServer() [2/3]

MediaServer::MediaServer ( void  )
inline

Definition at line 82 of file upnpscanner.cpp.

◆ MediaServer() [3/3]

MediaServer::MediaServer ( QUrl  URL)
inlineexplicit

Definition at line 89 of file upnpscanner.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.

◆ ResetContent()

bool MediaServer::ResetContent ( int  new_id)
inline

Definition at line 97 of file upnpscanner.cpp.

Referenced by UPNPScanner::ParseBrowse().

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().

◆ m_url

QUrl MediaServer::m_url

Definition at line 109 of file upnpscanner.cpp.

◆ m_connectionAttempts

int MediaServer::m_connectionAttempts {0}

Definition at line 110 of file upnpscanner.cpp.

◆ m_controlURL

QUrl MediaServer::m_controlURL

Definition at line 111 of file upnpscanner.cpp.

◆ m_eventSubURL

QUrl MediaServer::m_eventSubURL

Definition at line 112 of file upnpscanner.cpp.

◆ m_eventSubPath

QString MediaServer::m_eventSubPath

Definition at line 113 of file upnpscanner.cpp.

◆ m_friendlyName

QString MediaServer::m_friendlyName

Definition at line 114 of file upnpscanner.cpp.

Referenced by UPNPScanner::ParseBrowse().

◆ m_subscribed

bool MediaServer::m_subscribed {false}

Definition at line 115 of file upnpscanner.cpp.

◆ m_renewalTimerId

int MediaServer::m_renewalTimerId {0}

Definition at line 116 of file upnpscanner.cpp.

Referenced by UPNPScanner::RemoveServer().

◆ m_systemUpdateID

int MediaServer::m_systemUpdateID {-1}

Definition at line 117 of file upnpscanner.cpp.

Referenced by UPNPScanner::ParseBrowse(), and ResetContent().


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