MythTV  master
mediaserver.h
Go to the documentation of this file.
1 // Program Name: mediaserver.h
3 //
4 // Purpose - uPnp Media Server main Class
5 //
6 // Created By : David Blain Created On : Jan. 15, 2007
7 // Modified By : Modified On:
8 //
10 
11 #ifndef MEDIASERVER_H
12 #define MEDIASERVER_H
13 
14 #include <QString>
15 
16 #include "upnp.h"
17 #include "upnpcds.h"
18 #include "upnpcmgr.h"
19 #include "upnpmsrr.h"
20 #include <websocket.h>
21 
22 class BonjourRegister;
23 
26 //
27 //
28 //
31 
32 class MediaServer : public UPnp
33 {
34  private:
35 
36 #ifdef USING_LIBDNS_SD
37  BonjourRegister *m_bonjour {nullptr};
38 #endif
40 
41  protected:
42 
43  UPnpCDS *m_pUPnpCDS {nullptr}; // Do not delete (auto deleted)
44  UPnpCMGR *m_pUPnpCMGR {nullptr}; // Do not delete (auto deleted)
45 
46  QString m_sSharePath;
47 
48  public:
49  explicit MediaServer();
50  void Init(bool bIsMaster, bool bDisableUPnp = false);
51 
52  ~MediaServer() override;
53 
54  void RegisterExtension ( UPnpCDSExtension *pExtension );
55  void UnregisterExtension( UPnpCDSExtension *pExtension );
56 
57 };
58 
59 #endif // MEDIASERVER_H
UPnpCDSExtension
Definition: upnpcds.h:203
MediaServer
A simple wrapper containing details about a UPnP Media Server.
Definition: mediaserver.h:33
MediaServer::m_pUPnpCMGR
UPnpCMGR * m_pUPnpCMGR
Definition: mediaserver.h:44
websocket.h
upnpcmgr.h
BonjourRegister
Definition: bonjourregister.h:12
MediaServer::RegisterExtension
void RegisterExtension(UPnpCDSExtension *pExtension)
Definition: mediaserver.cpp:323
upnpcds.h
MediaServer::m_sSharePath
QString m_sSharePath
Definition: mediaserver.h:46
upnp.h
UPnpCDS
Definition: upnpcds.h:284
MediaServer::UnregisterExtension
void UnregisterExtension(UPnpCDSExtension *pExtension)
Definition: mediaserver.cpp:332
MediaServer::Init
void Init(bool bIsMaster, bool bDisableUPnp=false)
Definition: mediaserver.cpp:69
MediaServer::MediaServer
MediaServer()
Definition: mediaserver.cpp:51
UPnpCMGR
Definition: upnpcmgr.h:49
MediaServer::m_pUPnpCDS
UPnpCDS * m_pUPnpCDS
Definition: mediaserver.h:43
UPnp
Definition: upnp.h:100
upnpmsrr.h
MediaServer::~MediaServer
~MediaServer() override
Definition: mediaserver.cpp:288
WebSocketServer
The WebSocket server, which listens for connections.
Definition: websocket.h:38
MediaServer::m_webSocketServer
WebSocketServer * m_webSocketServer
Definition: mediaserver.h:39