Switch to unified view

a/src/ohproduct.hxx b/src/ohproduct.hxx
...
...
21
#include <vector>                       // for vector
21
#include <vector>                       // for vector
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
#include "ohservice.hxx"
27
26
class UpMpd;
28
class UpMpd;
27
using namespace UPnPP;
29
using namespace UPnPP;
28
30
29
class OHProduct : public UPnPProvider::UpnpService {
31
class OHProduct : public OHService {
30
public:
32
public:
31
    OHProduct(UpMpd *dev, const std::string& friendlyname);
33
    OHProduct(UpMpd *dev, const std::string& friendlyname);
32
    virtual ~OHProduct();
34
    virtual ~OHProduct();
33
    
35
    
34
    virtual bool getEventData(bool all, std::vector<std::string>& names, 
35
                              std::vector<std::string>& values);
36
    int iSetSourceIndex(int index);
36
    int iSetSourceIndex(int index);
37
    int iSetSourceIndexByName(const std::string& nm);
37
    int iSetSourceIndexByName(const std::string& nm);
38
39
protected:
40
    virtual bool makestate(std::unordered_map<std::string, std::string> &st);
41
38
private:
42
private:
39
    int manufacturer(const SoapIncoming& sc, SoapOutgoing& data);
43
    int manufacturer(const SoapIncoming& sc, SoapOutgoing& data);
40
    int model(const SoapIncoming& sc, SoapOutgoing& data);
44
    int model(const SoapIncoming& sc, SoapOutgoing& data);
41
    int product(const SoapIncoming& sc, SoapOutgoing& data);
45
    int product(const SoapIncoming& sc, SoapOutgoing& data);
42
    int standby(const SoapIncoming& sc, SoapOutgoing& data);
46
    int standby(const SoapIncoming& sc, SoapOutgoing& data);
...
...
49
    int source(const SoapIncoming& sc, SoapOutgoing& data);
53
    int source(const SoapIncoming& sc, SoapOutgoing& data);
50
    int attributes(const SoapIncoming& sc, SoapOutgoing& data);
54
    int attributes(const SoapIncoming& sc, SoapOutgoing& data);
51
    int sourceXMLChangeCount(const SoapIncoming& sc, SoapOutgoing& data);
55
    int sourceXMLChangeCount(const SoapIncoming& sc, SoapOutgoing& data);
52
56
53
    int iSrcNameToIndex(const std::string& nm);
57
    int iSrcNameToIndex(const std::string& nm);
54
    bool makestate(std::unordered_map<std::string, std::string> &st);
55
    
58
    
56
    std::unordered_map<std::string, std::string> m_state;
57
    UpMpd *m_dev;
58
    std::string m_roomOrName;
59
    std::string m_roomOrName;
59
    int m_sourceIndex;
60
    int m_sourceIndex;
60
    bool m_standby;
61
    bool m_standby;
61
};
62
};
62
63