|
a/libupnpp/control/renderingcontrol.hxx |
|
b/libupnpp/control/renderingcontrol.hxx |
|
... |
|
... |
16 |
*/
|
16 |
*/
|
17 |
#ifndef _RENDERINGCONTROL_HXX_INCLUDED_
|
17 |
#ifndef _RENDERINGCONTROL_HXX_INCLUDED_
|
18 |
#define _RENDERINGCONTROL_HXX_INCLUDED_
|
18 |
#define _RENDERINGCONTROL_HXX_INCLUDED_
|
19 |
|
19 |
|
20 |
#include <string>
|
20 |
#include <string>
|
|
|
21 |
#include <memory>
|
21 |
|
22 |
|
22 |
#include "service.hxx"
|
23 |
#include "service.hxx"
|
23 |
|
24 |
|
24 |
namespace UPnPClient {
|
25 |
namespace UPnPClient {
|
|
|
26 |
|
|
|
27 |
class RenderingControl;
|
|
|
28 |
typedef std::shared_ptr<RenderingControl> RDCH;
|
25 |
|
29 |
|
26 |
/**
|
30 |
/**
|
27 |
* RenderingControl Service client class.
|
31 |
* RenderingControl Service client class.
|
28 |
*
|
32 |
*
|
29 |
*/
|
33 |
*/
|
|
... |
|
... |
33 |
/** Construct by copying data from device and service objects.
|
37 |
/** Construct by copying data from device and service objects.
|
34 |
*
|
38 |
*
|
35 |
*/
|
39 |
*/
|
36 |
RenderingControl(const UPnPDeviceDesc& device,
|
40 |
RenderingControl(const UPnPDeviceDesc& device,
|
37 |
const UPnPServiceDesc& service)
|
41 |
const UPnPServiceDesc& service)
|
38 |
: Service(device, service), m_volume(0), m_mute(false)
|
42 |
: Service(device, service)
|
39 |
{
|
43 |
{
|
40 |
registerCallback();
|
44 |
registerCallback();
|
41 |
}
|
45 |
}
|
42 |
|
46 |
|
43 |
RenderingControl() {}
|
47 |
RenderingControl() {}
|
|
... |
|
... |
55 |
static const string SType;
|
59 |
static const string SType;
|
56 |
|
60 |
|
57 |
private:
|
61 |
private:
|
58 |
void evtCallback(const std::unordered_map<std::string, std::string>&);
|
62 |
void evtCallback(const std::unordered_map<std::string, std::string>&);
|
59 |
void registerCallback();
|
63 |
void registerCallback();
|
60 |
|
|
|
61 |
int m_volume;
|
|
|
62 |
bool m_mute;
|
|
|
63 |
};
|
64 |
};
|
64 |
|
65 |
|
65 |
} // namespace UPnPClient
|
66 |
} // namespace UPnPClient
|
66 |
|
67 |
|
67 |
#endif /* _RENDERINGCONTROL_HXX_INCLUDED_ */
|
68 |
#endif /* _RENDERINGCONTROL_HXX_INCLUDED_ */
|