|
a/src/ohtime.hxx |
|
b/src/ohtime.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 |
#include "ohservice.hxx"
|
27 |
class UpMpd;
|
28 |
class UpMpd;
|
28 |
|
29 |
|
29 |
using namespace UPnPP;
|
30 |
using namespace UPnPP;
|
30 |
|
31 |
|
31 |
class OHTime : public UPnPProvider::UpnpService {
|
32 |
class OHTime : public OHService {
|
32 |
public:
|
33 |
public:
|
33 |
OHTime(UpMpd *dev);
|
34 |
OHTime(UpMpd *dev);
|
34 |
|
35 |
|
35 |
virtual bool getEventData(bool all, std::vector<std::string>& names,
|
36 |
protected:
|
36 |
std::vector<std::string>& values);
|
37 |
virtual bool makestate(std::unordered_map<std::string, std::string> &st);
|
|
|
38 |
|
37 |
private:
|
39 |
private:
|
38 |
int ohtime(const SoapIncoming& sc, SoapOutgoing& data);
|
40 |
int ohtime(const SoapIncoming& sc, SoapOutgoing& data);
|
39 |
|
41 |
|
40 |
void getdata(std::string& trackcount, std::string &duration, std::string& seconds);
|
42 |
void getdata(std::string& trackcount, std::string &duration,
|
41 |
bool makestate(std::unordered_map<std::string, std::string> &st);
|
43 |
std::string& seconds);
|
42 |
// State variable storage
|
|
|
43 |
std::unordered_map<std::string, std::string> m_state;
|
|
|
44 |
UpMpd *m_dev;
|
|
|
45 |
};
|
44 |
};
|
46 |
|
45 |
|
47 |
#endif /* _OHTIME_H_X_INCLUDED_ */
|
46 |
#endif /* _OHTIME_H_X_INCLUDED_ */
|