|
a/libupnpp/device.hxx |
|
b/libupnpp/device.hxx |
|
... |
|
... |
46 |
virtual bool getEventData(bool all, const std::string& serviceid,
|
46 |
virtual bool getEventData(bool all, const std::string& serviceid,
|
47 |
std::vector<std::string>& names,
|
47 |
std::vector<std::string>& names,
|
48 |
std::vector<std::string>& values) = 0;
|
48 |
std::vector<std::string>& values) = 0;
|
49 |
|
49 |
|
50 |
/** To be called by the device layer when data changes and an
|
50 |
/** To be called by the device layer when data changes and an
|
51 |
event should happen. */
|
51 |
* event should happen. */
|
52 |
void notifyEvent(const std::string& serviceId,
|
52 |
void notifyEvent(const std::string& serviceId,
|
53 |
const std::vector<std::string>& names,
|
53 |
const std::vector<std::string>& names,
|
54 |
const std::vector<std::string>& values);
|
54 |
const std::vector<std::string>& values);
|
|
|
55 |
|
|
|
56 |
/** This loop polls getEventData and generates an UPnP event if
|
|
|
57 |
* there is anything to broadcast. To be called by main() when
|
|
|
58 |
* done with initialization. */
|
55 |
void eventloop();
|
59 |
void eventloop();
|
|
|
60 |
|
|
|
61 |
/** Called from a callback to Wakeup the event loop early if we
|
|
|
62 |
* need to broadcast something quickly. Will only do something if
|
|
|
63 |
* the previous event is not too recent.
|
|
|
64 |
*/
|
|
|
65 |
void loopWakeup(); // To trigger an early event
|
|
|
66 |
|
56 |
bool ok() {return m_lib != 0;}
|
67 |
bool ok() {return m_lib != 0;}
|
|
|
68 |
|
57 |
private:
|
69 |
private:
|
58 |
const std::string& serviceType(const std::string& serviceId);
|
70 |
const std::string& serviceType(const std::string& serviceId);
|
59 |
|
71 |
|
60 |
LibUPnP *m_lib;
|
72 |
LibUPnP *m_lib;
|
61 |
std::string m_deviceId;
|
73 |
std::string m_deviceId;
|