|
a/src/ohservice.hxx |
|
b/src/ohservice.hxx |
|
... |
|
... |
29 |
|
29 |
|
30 |
// A parent class for all openhome service, to share a bit of state
|
30 |
// A parent class for all openhome service, to share a bit of state
|
31 |
// variable and event management code.
|
31 |
// variable and event management code.
|
32 |
class OHService : public UPnPProvider::UpnpService {
|
32 |
class OHService : public UPnPProvider::UpnpService {
|
33 |
public:
|
33 |
public:
|
34 |
OHService(const std::string& servtp, const std::string &servid, UpMpd *dev)
|
34 |
OHService(const std::string& servtp, const std::string &servid,
|
|
|
35 |
const std::string& xmlfn, UpMpd *dev)
|
35 |
: UpnpService(servtp, servid, dev), m_dev(dev) {
|
36 |
: UpnpService(servtp, servid, xmlfn, dev), m_dev(dev) {
|
36 |
}
|
37 |
}
|
37 |
virtual ~OHService() { }
|
38 |
virtual ~OHService() { }
|
38 |
|
39 |
|
39 |
virtual bool getEventData(bool all, std::vector<std::string>& names,
|
40 |
virtual bool getEventData(bool all, std::vector<std::string>& names,
|
40 |
std::vector<std::string>& values) {
|
41 |
std::vector<std::string>& values) {
|