NifTK  16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
niftkBaseApplication.h
Go to the documentation of this file.
1 /*=============================================================================
2 
3  NifTK: A software platform for medical image computing.
4 
5  Copyright (c) University College London (UCL). All rights reserved.
6 
7  This software is distributed WITHOUT ANY WARRANTY; without even
8  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
9  PURPOSE.
10 
11  See LICENSE.txt in the top level directory for details.
12 
13 =============================================================================*/
14 
15 #ifndef niftkBaseApplication_h
16 #define niftkBaseApplication_h
17 
18 #include <uk_ac_ucl_cmic_commonapps_Export.h>
19 
20 #include <berryIApplication.h>
21 #include <berryWorkbenchAdvisor.h>
22 
23 
24 namespace niftk
25 {
26 
32 class COMMONAPPS_EXPORT BaseApplication : public QObject, public berry::IApplication
33 {
34  Q_OBJECT
35  Q_INTERFACES(berry::IApplication)
36 
37 public:
38 
40  BaseApplication(const BaseApplication& other);
41 
42  QVariant Start(berry::IApplicationContext* context) override;
43  void Stop() override;
44 
45 protected:
46 
48  virtual berry::WorkbenchAdvisor* GetWorkbenchAdvisor() = 0;
49 };
50 
51 }
52 
53 #endif
Abstract plugin class to start up an application.
Definition: niftkBaseApplication.h:32
Definition: niftkExceptionObject.h:21