13 #include <boost/bind.hpp>
19 mPluginContext(context),
23 this->initServiceListener();
28 return mStreamerService->getName();
33 return mStreamerService->getType();
38 return mStreamerService->stop();
43 return mStreamerService->getSettings(root);
48 return mStreamerService->createStreamer(root);
51 void StreamerServiceProxy::initServiceListener()
55 boost::bind(&StreamerServiceProxy::onServiceAdded,
this, _1),
57 boost::bind(&StreamerServiceProxy::onServiceRemoved,
this, _1)
59 mServiceListener->open();
62 void StreamerServiceProxy::onServiceAdded(StreamerService* service)
64 if(service && service->getName() == mServiceName)
65 mStreamerService.reset(service, null_deleter());
68 void StreamerServiceProxy::onServiceRemoved(StreamerService *service)
70 if(service && (service->getName() == mServiceName))