|
a/upmpd/ohproduct.hxx |
|
b/upmpd/ohproduct.hxx |
|
... |
|
... |
15 |
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
15 |
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
16 |
*/
|
16 |
*/
|
17 |
#ifndef _OHPRODUCT_H_X_INCLUDED_
|
17 |
#ifndef _OHPRODUCT_H_X_INCLUDED_
|
18 |
#define _OHPRODUCT_H_X_INCLUDED_
|
18 |
#define _OHPRODUCT_H_X_INCLUDED_
|
19 |
|
19 |
|
20 |
#include <string>
|
20 |
#include <string> // for string
|
|
|
21 |
#include <vector> // for vector
|
21 |
|
22 |
|
22 |
#include "libupnpp/device/device.hxx"
|
23 |
#include "libupnpp/device/device.hxx" // for UpnpService
|
|
|
24 |
#include "libupnpp/soaphelp.hxx" // for SoapArgs, SoapData
|
|
|
25 |
|
|
|
26 |
class UpMpd;
|
23 |
|
27 |
|
24 |
using namespace UPnPP;
|
28 |
using namespace UPnPP;
|
25 |
|
29 |
|
26 |
class UpMpd;
|
|
|
27 |
|
|
|
28 |
class OHProduct : public UpnpService {
|
30 |
class OHProduct : public UPnPProvider::UpnpService {
|
29 |
public:
|
31 |
public:
|
30 |
OHProduct(UpMpd *dev, const string& friendlyname);
|
32 |
OHProduct(UpMpd *dev, const std::string& friendlyname);
|
31 |
|
33 |
|
32 |
virtual bool getEventData(bool all, std::vector<std::string>& names,
|
34 |
virtual bool getEventData(bool all, std::vector<std::string>& names,
|
33 |
std::vector<std::string>& values);
|
35 |
std::vector<std::string>& values);
|
34 |
private:
|
36 |
private:
|
35 |
int manufacturer(const SoapArgs& sc, SoapData& data);
|
37 |
int manufacturer(const SoapArgs& sc, SoapData& data);
|
|
... |
|
... |
45 |
int source(const SoapArgs& sc, SoapData& data);
|
47 |
int source(const SoapArgs& sc, SoapData& data);
|
46 |
int attributes(const SoapArgs& sc, SoapData& data);
|
48 |
int attributes(const SoapArgs& sc, SoapData& data);
|
47 |
int sourceXMLChangeCount(const SoapArgs& sc, SoapData& data);
|
49 |
int sourceXMLChangeCount(const SoapArgs& sc, SoapData& data);
|
48 |
|
50 |
|
49 |
UpMpd *m_dev;
|
51 |
UpMpd *m_dev;
|
50 |
string m_roomOrName;
|
52 |
std::string m_roomOrName;
|
51 |
};
|
53 |
};
|
52 |
|
54 |
|
53 |
#endif /* _OHPRODUCT_H_X_INCLUDED_ */
|
55 |
#endif /* _OHPRODUCT_H_X_INCLUDED_ */
|