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  virtual ~MediaServer();
53 
54  void RegisterExtension ( UPnpCDSExtension *pExtension );
55  void UnregisterExtension( UPnpCDSExtension *pExtension );
56 
57 };
58 
59 #endif
UPnpCMGR * m_pUPnpCMGR
Definition: mediaserver.h:44
WebSocketServer * m_webSocketServer
Definition: mediaserver.h:39
Definition: upnp.h:95
A simple wrapper containing details about a UPnP Media Server.
Definition: mediaserver.h:32
QString m_sSharePath
Definition: mediaserver.h:46
virtual ~MediaServer()
The WebSocket server, which listens for connections.
Definition: websocket.h:37
void UnregisterExtension(UPnpCDSExtension *pExtension)
void Init(bool bIsMaster, bool bDisableUPnp=false)
Definition: mediaserver.cpp:69
UPnpCDS * m_pUPnpCDS
Definition: mediaserver.h:43
void RegisterExtension(UPnpCDSExtension *pExtension)