|
a/hello_src/helloctl.cpp |
|
b/hello_src/helloctl.cpp |
|
... |
|
... |
27 |
const UPnPClient::UPnPServiceDesc& service)
|
27 |
const UPnPClient::UPnPServiceDesc& service)
|
28 |
: UPnPClient::Service(device, service) {
|
28 |
: UPnPClient::Service(device, service) {
|
29 |
// No event handling. Look at, e.g. rdcvolume.cpp for an example
|
29 |
// No event handling. Look at, e.g. rdcvolume.cpp for an example
|
30 |
}
|
30 |
}
|
31 |
|
31 |
|
32 |
virtual ~HelloCTL() { }
|
32 |
virtual ~HelloCTL() {}
|
|
|
33 |
|
|
|
34 |
virtual bool serviceTypeMatch(const std::string& tp) {
|
|
|
35 |
return isHelloService(tp);
|
|
|
36 |
}
|
33 |
|
37 |
|
34 |
/* Test that a service type matches ours. This can be used
|
38 |
/* Test that a service type matches ours. This can be used
|
35 |
with the directory traversal routine */
|
39 |
with the directory traversal routine */
|
36 |
static bool isHelloService(const std::string& st) {
|
40 |
static bool isHelloService(const std::string& st) {
|
37 |
// Note that we do not care about the version
|
41 |
// Note that we do not care about the version
|