|
a/src/mediaserver/contentdirectory.hxx |
|
b/src/mediaserver/contentdirectory.hxx |
|
... |
|
... |
29 |
using namespace UPnPP;
|
29 |
using namespace UPnPP;
|
30 |
|
30 |
|
31 |
class ContentDirectory : public UPnPProvider::UpnpService,
|
31 |
class ContentDirectory : public UPnPProvider::UpnpService,
|
32 |
public CDPluginServices {
|
32 |
public CDPluginServices {
|
33 |
public:
|
33 |
public:
|
|
|
34 |
// Enabled==false : used for ohcredentials, no services locally
|
|
|
35 |
// enabled, force some initializations
|
34 |
ContentDirectory(MediaServer *dev);
|
36 |
ContentDirectory(MediaServer *dev, bool enabled);
|
35 |
~ContentDirectory();
|
37 |
~ContentDirectory();
|
36 |
|
38 |
|
37 |
/// Return plugin based on path prefix
|
39 |
/// Return plugin based on path prefix
|
38 |
CDPlugin *getpluginforpath(const std::string& path);
|
40 |
CDPlugin *getpluginforpath(const std::string& path);
|
39 |
|
41 |
|
|
... |
|
... |
45 |
|
47 |
|
46 |
/// Add a virtual directory and set file operation interface. path
|
48 |
/// Add a virtual directory and set file operation interface. path
|
47 |
/// must be equal or begin with the pathprefix.
|
49 |
/// must be equal or begin with the pathprefix.
|
48 |
virtual bool setfileops(CDPlugin *, const std::string& path,
|
50 |
virtual bool setfileops(CDPlugin *, const std::string& path,
|
49 |
UPnPProvider::VirtualDir::FileOps ops);
|
51 |
UPnPProvider::VirtualDir::FileOps ops);
|
50 |
|
|
|
51 |
/// Access the main configuration file.
|
|
|
52 |
virtual bool config_get(const std::string& nm, std::string& val);
|
|
|
53 |
|
52 |
|
54 |
virtual std::string getfname();
|
53 |
virtual std::string getfname();
|
55 |
|
54 |
|
56 |
/// Check if the configuration indicates that the media server
|
55 |
/// Check if the configuration indicates that the media server
|
57 |
/// needs to be started.
|
56 |
/// needs to be started.
|