CustusX  22.04-rc5
An IGT application
cxFileManagerImplService.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 CXFILEMANAGERIMPLSERVICE_H
13 #define CXFILEMANAGERIMPLSERVICE_H
14 
17 #include "org_custusx_core_filemanager_Export.h"
19 class ctkPluginContext;
20 
21 namespace cx
22 {
23 
29 class org_custusx_core_filemanager_EXPORT FileManagerImpService : public FileManagerServiceBase
30 {
31 public:
32  Q_INTERFACES(cx::FileManagerService)
33 
34  FileManagerImpService(ctkPluginContext *context);
35  virtual ~FileManagerImpService();
36 
37 private:
38  void initServiceListener(ctkPluginContext *context);
39  void onServiceAdded(FileReaderWriterService *service);
40  void onServiceRemoved(FileReaderWriterService *service);
41 
42  boost::shared_ptr<ServiceTrackerListener<FileReaderWriterService> > mServiceListener;
43 
44 };
45 
46 typedef boost::shared_ptr<FileManagerImpService> FileManagerImplServicePtr;
47 
48 } //cx
49 
50 #endif // CXFILEMANAGERIMPLSERVICE_H
boost::shared_ptr< FileManagerImpService > FileManagerImplServicePtr
Namespace for all CustusX production code.