Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
berryIApplication.h
Go to the documentation of this file.
1 /*===================================================================
2 
3 BlueBerry Platform
4 
5 Copyright (c) German Cancer Research Center,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 #ifndef BERRYIAPPLICATION_H_
18 #define BERRYIAPPLICATION_H_
19 
21 
22 #include <QObject>
23 
24 namespace berry {
25 
26 struct IApplicationContext;
27 
38 {
39 
43  static const int EXIT_OK;
44 
48  static const int EXIT_RESTART;
49 
55  static const int EXIT_RELAUNCH;
56 
57  virtual ~IApplication();
77  virtual QVariant Start(IApplicationContext* context) = 0;
78 
92  virtual void Stop() = 0;
93 
94 };
95 
96 }
97 
98 Q_DECLARE_INTERFACE(berry::IApplication, "org.blueberry.IApplication")
99 
100 #endif /*BERRYIAPPLICATION_H_*/
static const int EXIT_OK
#define org_blueberry_core_runtime_EXPORT
static const int EXIT_RESTART
static const int EXIT_RELAUNCH