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();
64 if(service && service->
getName() == mServiceName)
70 if(service && (service->
getName() == mServiceName))
static StreamerServicePtr getNullObject()
virtual QString getType() const
virtual QString getName()=0
virtual StreamerPtr createStreamer(QDomElement root)
virtual QString getName()
Helper class for listening to services being added, modified and removed.
StreamerServiceProxy(ctkPluginContext *context, QString name)
Abstract class. Interface to Streamers.
virtual std::vector< PropertyPtr > getSettings(QDomElement root)
boost::shared_ptr< class Streamer > StreamerPtr
Namespace for all CustusX production code.