|
a/src/ohproduct.hxx |
|
b/src/ohproduct.hxx |
|
... |
|
... |
22 |
|
22 |
|
23 |
#include "libupnpp/device/device.hxx" // for UpnpService
|
23 |
#include "libupnpp/device/device.hxx" // for UpnpService
|
24 |
#include "libupnpp/soaphelp.hxx" // for SoapIncoming, SoapOutgoing
|
24 |
#include "libupnpp/soaphelp.hxx" // for SoapIncoming, SoapOutgoing
|
25 |
|
25 |
|
26 |
class UpMpd;
|
26 |
class UpMpd;
|
27 |
|
27 |
class SenderReceiver;
|
28 |
using namespace UPnPP;
|
28 |
using namespace UPnPP;
|
29 |
|
29 |
|
30 |
class OHProduct : public UPnPProvider::UpnpService {
|
30 |
class OHProduct : public UPnPProvider::UpnpService {
|
31 |
public:
|
31 |
public:
|
32 |
OHProduct(UpMpd *dev, const std::string& friendlyname, bool hasRcv);
|
32 |
OHProduct(UpMpd *dev, const std::string& friendlyname, bool hasRcv);
|
33 |
|
33 |
virtual ~OHProduct();
|
|
|
34 |
|
34 |
virtual bool getEventData(bool all, std::vector<std::string>& names,
|
35 |
virtual bool getEventData(bool all, std::vector<std::string>& names,
|
35 |
std::vector<std::string>& values);
|
36 |
std::vector<std::string>& values);
|
36 |
int iSetSourceIndex(int index);
|
37 |
int iSetSourceIndex(int index);
|
|
|
38 |
int iSetSourceIndexByName(const std::string& nm);
|
37 |
private:
|
39 |
private:
|
38 |
int manufacturer(const SoapIncoming& sc, SoapOutgoing& data);
|
40 |
int manufacturer(const SoapIncoming& sc, SoapOutgoing& data);
|
39 |
int model(const SoapIncoming& sc, SoapOutgoing& data);
|
41 |
int model(const SoapIncoming& sc, SoapOutgoing& data);
|
40 |
int product(const SoapIncoming& sc, SoapOutgoing& data);
|
42 |
int product(const SoapIncoming& sc, SoapOutgoing& data);
|
41 |
int standby(const SoapIncoming& sc, SoapOutgoing& data);
|
43 |
int standby(const SoapIncoming& sc, SoapOutgoing& data);
|
|
... |
|
... |
47 |
int setSourceIndexByName(const SoapIncoming& sc, SoapOutgoing& data);
|
49 |
int setSourceIndexByName(const SoapIncoming& sc, SoapOutgoing& data);
|
48 |
int source(const SoapIncoming& sc, SoapOutgoing& data);
|
50 |
int source(const SoapIncoming& sc, SoapOutgoing& data);
|
49 |
int attributes(const SoapIncoming& sc, SoapOutgoing& data);
|
51 |
int attributes(const SoapIncoming& sc, SoapOutgoing& data);
|
50 |
int sourceXMLChangeCount(const SoapIncoming& sc, SoapOutgoing& data);
|
52 |
int sourceXMLChangeCount(const SoapIncoming& sc, SoapOutgoing& data);
|
51 |
|
53 |
|
|
|
54 |
int iSrcNameToIndex(const std::string& nm);
|
|
|
55 |
|
52 |
UpMpd *m_dev;
|
56 |
UpMpd *m_dev;
|
|
|
57 |
SenderReceiver *m_sndrcv;
|
53 |
std::string m_roomOrName;
|
58 |
std::string m_roomOrName;
|
54 |
int m_sourceIndex;
|
59 |
int m_sourceIndex;
|
55 |
bool m_standby;
|
60 |
bool m_standby;
|
56 |
};
|
61 |
};
|
57 |
|
62 |
|