00001 00002 // Program Name: mediaserver.h 00003 // 00004 // Purpose - uPnp Media Server main Class 00005 // 00006 // Created By : David Blain Created On : Jan. 15, 2007 00007 // Modified By : Modified On: 00008 // 00010 00011 #ifndef __MEDIASERVER_H__ 00012 #define __MEDIASERVER_H__ 00013 00014 #include <qobject.h> 00015 #include <qmutex.h> 00016 00017 #include "libmythupnp/upnp.h" 00018 00019 #include "libmythupnp/upnpcds.h" 00020 #include "libmythupnp/upnpcmgr.h" 00021 #include "libmythupnp/upnpmsrr.h" 00022 00023 #include "upnpmedia.h" 00024 00027 // 00028 // 00029 // 00032 00033 class MediaServer : public UPnp 00034 { 00035 00036 protected: 00037 00038 UPnpCDS *m_pUPnpCDS; // Do not delete (auto deleted) 00039 UPnpCMGR *m_pUPnpCMGR; // Do not delete (auto deleted) 00040 UPnpMedia *upnpMedia; 00041 00042 QString m_sSharePath; 00043 00044 public: 00045 MediaServer( bool bMaster, bool bDisableUPnp = FALSE ); 00046 00047 virtual ~MediaServer(); 00048 00049 void RebuildMediaMap(void) { upnpMedia->BuildMediaMap(); }; 00050 00051 // void customEvent( QCustomEvent *e ); 00052 00053 void RegisterExtension ( UPnpCDSExtension *pExtension ); 00054 void UnregisterExtension( UPnpCDSExtension *pExtension ); 00055 00056 }; 00057 00058 #endif
1.5.5