|
a/libupnpp/control/service.hxx |
|
b/libupnpp/control/service.hxx |
|
... |
|
... |
56 |
const UPnPServiceDesc& service);
|
56 |
const UPnPServiceDesc& service);
|
57 |
|
57 |
|
58 |
/** An empty one */
|
58 |
/** An empty one */
|
59 |
Service() : m_reporter(0) {}
|
59 |
Service() : m_reporter(0) {}
|
60 |
|
60 |
|
61 |
virtual ~Service()
|
61 |
virtual ~Service();
|
62 |
{
|
|
|
63 |
o_calls.erase(m_SID);
|
|
|
64 |
}
|
|
|
65 |
|
62 |
|
66 |
/** Retrieve my root device "friendly name". */
|
63 |
/** Retrieve my root device "friendly name". */
|
67 |
std::string getFriendlyName() const {return m_friendlyName;}
|
64 |
std::string getFriendlyName() const {return m_friendlyName;}
|
68 |
|
65 |
|
69 |
/** Return my root device id */
|
66 |
/** Return my root device id */
|
|
... |
|
... |
120 |
/** The static event callback given to libupnp */
|
117 |
/** The static event callback given to libupnp */
|
121 |
static int srvCB(Upnp_EventType et, void* vevp, void*);
|
118 |
static int srvCB(Upnp_EventType et, void* vevp, void*);
|
122 |
/* Tell the UPnP device (through libupnp) that we want to receive
|
119 |
/* Tell the UPnP device (through libupnp) that we want to receive
|
123 |
its events. This is called during construction and sets m_SID */
|
120 |
its events. This is called during construction and sets m_SID */
|
124 |
virtual bool subscribe();
|
121 |
virtual bool subscribe();
|
|
|
122 |
virtual bool unSubscribe();
|
125 |
|
123 |
|
126 |
Upnp_SID m_SID; /* Subscription Id */
|
124 |
Upnp_SID m_SID; /* Subscription Id */
|
127 |
};
|
125 |
};
|
128 |
|
126 |
|
129 |
} // namespace UPnPClient
|
127 |
} // namespace UPnPClient
|