Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
QmitkSingleApplication.h
Go to the documentation of this file.
1 /*===================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
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 QMITKSINGLEAPPLICATION_H
18 #define QMITKSINGLEAPPLICATION_H
19 
20 #include <MitkAppUtilExports.h>
21 
22 #include <qtsingleapplication.h>
23 
24 #include "QmitkSafeNotify.h"
25 
26 class MITKAPPUTIL_EXPORT QmitkSingleApplication : public QtSingleApplication
27 {
28 public:
29  QmitkSingleApplication(int &argc, char **argv, bool safeMode = true);
30 
38  bool notify(QObject *receiver, QEvent *event) override;
39 
40  void setSafeMode(bool safeMode);
41 
42  bool getSafeMode() const;
43 
44 private:
45  bool m_SafeMode;
46 };
47 
48 #endif // QMITKSINGLEAPPLICATION_H
#define MITKAPPUTIL_EXPORT