Fraxinus  2023.01.05-dev+develop.0da12
An IGT application
cxVideoServiceNull.h
Go to the documentation of this file.
1 /*=========================================================================
2 This file is part of CustusX, an Image Guided Therapy Application.
3 
4 Copyright (c) SINTEF Department of Medical Technology.
5 All rights reserved.
6 
7 CustusX is released under a BSD 3-Clause license.
8 
9 See Lisence.txt (https://github.com/SINTEFMedtek/CustusX/blob/master/License.txt) for details.
10 =========================================================================*/
11 
12 #ifndef CXVIDEOSERVICENULL_H
13 #define CXVIDEOSERVICENULL_H
14 
15 #include "cxResourceExport.h"
16 
17 #include "cxVideoService.h"
18 
19 namespace cx
20 {
21 
25 class cxResource_EXPORT VideoServiceNull : public VideoService
26 {
27 public:
28  virtual ~VideoServiceNull() {}
29 
30  virtual void setActiveVideoSource(QString uid);
31  virtual VideoSourcePtr getActiveVideoSource();
32  virtual std::vector<VideoSourcePtr> getVideoSources();
33 
34  virtual void setConnectionMethod(QString connectionMethod);
35  virtual QString getConnectionMethod();
36  virtual void openConnection();
37  virtual void closeConnection();
38  virtual bool isConnected() const;
39 
40  virtual void setPlaybackMode(PlaybackTimePtr controller);
41  virtual std::vector<TimelineEvent> getPlaybackEvents();
42 
43  virtual StreamerServicePtr getStreamerService(QString uid);
44  virtual QList<StreamerServicePtr> getStreamerServices();
45 
46  virtual bool isNull();
47 private:
48  void printWarning();
49 };
50 } //cx
51 #endif // CXVIDEOSERVICENULL_H
boost::shared_ptr< class PlaybackTime > PlaybackTimePtr
boost::shared_ptr< class VideoSource > VideoSourcePtr
Provides access to all video sources in the system, and connection stuff for the sources.
boost::shared_ptr< class StreamerService > StreamerServicePtr
Namespace for all CustusX production code.