Switch to unified view

a/src/ohvolume.hxx b/src/ohvolume.hxx
...
...
22
#include <vector>                       // for vector
22
#include <vector>                       // for vector
23
23
24
#include "libupnpp/device/device.hxx"   // for UpnpService
24
#include "libupnpp/device/device.hxx"   // for UpnpService
25
#include "libupnpp/soaphelp.hxx"        // for SoapIncoming, SoapOutgoing
25
#include "libupnpp/soaphelp.hxx"        // for SoapIncoming, SoapOutgoing
26
26
27
class UpMpd;
27
#include "ohservice.hxx"
28
class UpMpdRenderCtl;
29
28
30
using namespace UPnPP;
31
32
class OHVolume : public UPnPProvider::UpnpService {
29
class OHVolume : public OHService {
33
public:
30
public:
34
    OHVolume(UpMpd *dev);
31
    OHVolume(UpMpd *dev);
35
32
36
    virtual bool getEventData(bool all, std::vector<std::string>& names, 
33
protected:
37
                              std::vector<std::string>& values);
38
private:
39
    int characteristics(const SoapIncoming& sc, SoapOutgoing& data);
34
    int characteristics(const SoapIncoming& sc, SoapOutgoing& data);
40
    int setVolume(const SoapIncoming& sc, SoapOutgoing& data);
35
    int setVolume(const SoapIncoming& sc, SoapOutgoing& data);
41
    int volume(const SoapIncoming& sc, SoapOutgoing& data);
36
    int volume(const SoapIncoming& sc, SoapOutgoing& data);
42
    int volumeInc(const SoapIncoming& sc, SoapOutgoing& data);
37
    int volumeInc(const SoapIncoming& sc, SoapOutgoing& data);
43
    int volumeDec(const SoapIncoming& sc, SoapOutgoing& data);
38
    int volumeDec(const SoapIncoming& sc, SoapOutgoing& data);
44
    int volumeLimit(const SoapIncoming& sc, SoapOutgoing& data);
39
    int volumeLimit(const SoapIncoming& sc, SoapOutgoing& data);
45
    int mute(const SoapIncoming& sc, SoapOutgoing& data);
40
    int mute(const SoapIncoming& sc, SoapOutgoing& data);
46
    int setMute(const SoapIncoming& sc, SoapOutgoing& data);
41
    int setMute(const SoapIncoming& sc, SoapOutgoing& data);
47
42
48
    bool makestate(std::unordered_map<std::string, std::string> &st);
43
    virtual bool makestate(std::unordered_map<std::string, std::string> &st);
49
    // State variable storage
50
    std::unordered_map<std::string, std::string> m_state;
51
    UpMpd *m_dev;
52
};
44
};
53
45
54
#endif /* _OHVOLUME_H_X_INCLUDED_ */
46
#endif /* _OHVOLUME_H_X_INCLUDED_ */