14 #include <boost/bind.hpp> 15 #include <ctkPluginContext.h> 30 mPluginContext(pluginContext),
33 this->initServiceListener();
36 void VideoServiceProxy::initServiceListener()
40 boost::bind(&VideoServiceProxy::onVideoServiceAdded,
this, _1),
42 boost::bind(&VideoServiceProxy::onVideoServiceRemoved,
this, _1)
44 mVideoServiceListener->open();
47 void VideoServiceProxy::onVideoServiceAdded(
VideoService* service)
59 void VideoServiceProxy::onVideoServiceRemoved(
VideoService *service)
74 return mVideoService->isNull();
79 return mVideoService->getStreamerService(uid);
84 return mVideoService->getStreamerServices();
89 mVideoService->setActiveVideoSource(uid);
94 return mVideoService->getActiveVideoSource();
99 return mVideoService->getVideoSources();
104 mVideoService->setConnectionMethod(connectionMethod);
109 return mVideoService->getConnectionMethod();
114 mVideoService->openConnection();
119 mVideoService->closeConnection();
124 return mVideoService->isConnected();
129 mVideoService->setPlaybackMode(controller);
134 return mVideoService->getPlaybackEvents();
boost::shared_ptr< class VideoService > VideoServicePtr
virtual VideoSourcePtr getActiveVideoSource()
virtual void openConnection()
virtual QString getConnectionMethod()
virtual void setPlaybackMode(PlaybackTimePtr controller)
virtual std::vector< TimelineEvent > getPlaybackEvents()
static VideoServicePtr create(ctkPluginContext *pluginContext)
virtual std::vector< VideoSourcePtr > getVideoSources()
boost::shared_ptr< class PlaybackTime > PlaybackTimePtr
virtual StreamerServicePtr getStreamerService(QString uid)
virtual void closeConnection()
void connectionMethodChanged()
boost::shared_ptr< class VideoSource > VideoSourcePtr
virtual QList< StreamerServicePtr > getStreamerServices()
static VideoServicePtr getNullObject()
Helper class for listening to services being added, modified and removed.
Provides access to all video sources in the system, and connection stuff for the sources.
virtual void setConnectionMethod(QString connectionMethod)
virtual void setActiveVideoSource(QString uid)
boost::shared_ptr< class StreamerService > StreamerServicePtr
virtual bool isConnected() const
void activeVideoSourceChanged()
VideoServiceProxy(ctkPluginContext *pluginContext)
Namespace for all CustusX production code.