|
a/src/contentdirectory.hxx |
|
b/src/contentdirectory.hxx |
|
... |
|
... |
21 |
#include <vector>
|
21 |
#include <vector>
|
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"
|
|
|
27 |
|
26 |
using namespace UPnPP;
|
28 |
using namespace UPnPP;
|
27 |
|
29 |
|
28 |
class ContentDirectory : public UPnPProvider::UpnpService {
|
30 |
class ContentDirectory : public UPnPProvider::UpnpService,
|
|
|
31 |
public CDPluginServices {
|
29 |
public:
|
32 |
public:
|
30 |
ContentDirectory(UPnPProvider::UpnpDevice *dev);
|
33 |
ContentDirectory(UPnPProvider::UpnpDevice *dev);
|
31 |
~ContentDirectory();
|
34 |
~ContentDirectory();
|
32 |
|
35 |
|
|
|
36 |
/// Returns something like "/tidal" (no end slash)
|
|
|
37 |
virtual std::string getpathprefix(CDPlugin *);
|
|
|
38 |
|
|
|
39 |
/// Retrieve the IP address and port for the libupnp server. URLs
|
|
|
40 |
/// intended to be served this way (by adding a vdir) should use
|
|
|
41 |
/// these as host/port
|
|
|
42 |
virtual std::string getupnpaddr(CDPlugin *);
|
|
|
43 |
virtual int getupnpport(CDPlugin *);
|
|
|
44 |
|
|
|
45 |
/// Add a virtual directory and set file operation interface. path
|
|
|
46 |
/// must be equal or begin with the pathprefix.
|
|
|
47 |
virtual bool setfileops(CDPlugin *, const std::string& path,
|
|
|
48 |
UPnPProvider::VirtualDir::FileOps ops);
|
|
|
49 |
|
|
|
50 |
/// Access the main configuration file.
|
|
|
51 |
virtual ConfSimple *getconfig(CDPlugin *);
|
|
|
52 |
virtual const std::vector<std::string> getexecpath(CDPlugin *);
|
|
|
53 |
|
33 |
private:
|
54 |
private:
|
34 |
int actGetSearchCapabilities(const SoapIncoming& sc, SoapOutgoing& data);
|
55 |
int actGetSearchCapabilities(const SoapIncoming& sc, SoapOutgoing& data);
|
35 |
int actGetSortCapabilities(const SoapIncoming& sc, SoapOutgoing& data);
|
56 |
int actGetSortCapabilities(const SoapIncoming& sc, SoapOutgoing& data);
|
36 |
int actGetSystemUpdateID(const SoapIncoming& sc, SoapOutgoing& data);
|
57 |
int actGetSystemUpdateID(const SoapIncoming& sc, SoapOutgoing& data);
|
37 |
int actBrowse(const SoapIncoming& sc, SoapOutgoing& data);
|
58 |
int actBrowse(const SoapIncoming& sc, SoapOutgoing& data);
|