|
a/upmpd/ohtime.cxx |
|
b/upmpd/ohtime.cxx |
|
... |
|
... |
44 |
static const string sIdProduct("urn:av-openhome-org:serviceId:Time");
|
44 |
static const string sIdProduct("urn:av-openhome-org:serviceId:Time");
|
45 |
|
45 |
|
46 |
OHTime::OHTime(UpMpd *dev)
|
46 |
OHTime::OHTime(UpMpd *dev)
|
47 |
: UpnpService(sTpProduct, sIdProduct, dev), m_dev(dev)
|
47 |
: UpnpService(sTpProduct, sIdProduct, dev), m_dev(dev)
|
48 |
{
|
48 |
{
|
49 |
dev->addActionMapping("Time", bind(&OHTime::ohtime, this, _1, _2));
|
49 |
dev->addActionMapping(this, "Time", bind(&OHTime::ohtime, this, _1, _2));
|
50 |
}
|
50 |
}
|
51 |
|
51 |
|
52 |
void OHTime::getdata(string& trackcount, string &duration,
|
52 |
void OHTime::getdata(string& trackcount, string &duration,
|
53 |
string& seconds)
|
53 |
string& seconds)
|
54 |
{
|
54 |
{
|