|
a/src/mediaserver/contentdirectory.hxx |
|
b/src/mediaserver/contentdirectory.hxx |
|
... |
|
... |
22 |
|
22 |
|
23 |
#include "libupnpp/device/device.hxx"
|
23 |
#include "libupnpp/device/device.hxx"
|
24 |
#include "libupnpp/soaphelp.hxx"
|
24 |
#include "libupnpp/soaphelp.hxx"
|
25 |
|
25 |
|
26 |
#include "cdplugins/cdplugin.hxx"
|
26 |
#include "cdplugins/cdplugin.hxx"
|
|
|
27 |
#include "mediaserver.hxx"
|
27 |
|
28 |
|
28 |
using namespace UPnPP;
|
29 |
using namespace UPnPP;
|
29 |
|
30 |
|
30 |
class ContentDirectory : public UPnPProvider::UpnpService,
|
31 |
class ContentDirectory : public UPnPProvider::UpnpService,
|
31 |
public CDPluginServices {
|
32 |
public CDPluginServices {
|
32 |
public:
|
33 |
public:
|
33 |
ContentDirectory(UPnPProvider::UpnpDevice *dev);
|
34 |
ContentDirectory(MediaServer *dev);
|
34 |
~ContentDirectory();
|
35 |
~ContentDirectory();
|
35 |
|
36 |
|
36 |
/// Returns something like "/tidal" (no end slash)
|
37 |
/// Returns something like "/tidal" (no end slash)
|
37 |
virtual std::string getpathprefix(CDPlugin *);
|
38 |
virtual std::string getpathprefix(CDPlugin *);
|
38 |
/// Return plugin based on path prefix
|
39 |
/// Return plugin based on path prefix
|
|
... |
|
... |
48 |
/// must be equal or begin with the pathprefix.
|
49 |
/// must be equal or begin with the pathprefix.
|
49 |
virtual bool setfileops(CDPlugin *, const std::string& path,
|
50 |
virtual bool setfileops(CDPlugin *, const std::string& path,
|
50 |
UPnPProvider::VirtualDir::FileOps ops);
|
51 |
UPnPProvider::VirtualDir::FileOps ops);
|
51 |
|
52 |
|
52 |
/// Access the main configuration file.
|
53 |
/// Access the main configuration file.
|
53 |
virtual ConfSimple *getconfig(CDPlugin *);
|
54 |
virtual bool config_get(const std::string& nm, std::string& val);
|
54 |
virtual std::string getexecpath(CDPlugin *);
|
|
|
55 |
|
55 |
|
|
|
56 |
virtual std::string getfname();
|
|
|
57 |
|
56 |
/// Check if the configuration indicates that the media server needs to be started.
|
58 |
/// Check if the configuration indicates that the media server
|
|
|
59 |
/// needs to be started.
|
57 |
static bool mediaServerNeeded();
|
60 |
static bool mediaServerNeeded();
|
|
|
61 |
|
58 |
|
62 |
|
59 |
private:
|
63 |
private:
|
60 |
int actGetSearchCapabilities(const SoapIncoming& sc, SoapOutgoing& data);
|
64 |
int actGetSearchCapabilities(const SoapIncoming& sc, SoapOutgoing& data);
|
61 |
int actGetSortCapabilities(const SoapIncoming& sc, SoapOutgoing& data);
|
65 |
int actGetSortCapabilities(const SoapIncoming& sc, SoapOutgoing& data);
|
62 |
int actGetSystemUpdateID(const SoapIncoming& sc, SoapOutgoing& data);
|
66 |
int actGetSystemUpdateID(const SoapIncoming& sc, SoapOutgoing& data);
|