Medical Imaging Interaction Toolkit  2024.06.00
Medical Imaging Interaction Toolkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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 (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #ifndef QmitkSingleApplication_h
14 #define QmitkSingleApplication_h
15 
16 #include <MitkAppUtilExports.h>
17 
18 #include <qtsingleapplication.h>
19 
20 #include "QmitkSafeNotify.h"
21 
22 class MITKAPPUTIL_EXPORT QmitkSingleApplication : public QtSingleApplication
23 {
24 public:
25  QmitkSingleApplication(int &argc, char **argv, bool safeMode = true);
26 
34  bool notify(QObject *receiver, QEvent *event) override;
35 
36  void setSafeMode(bool safeMode);
37 
38  bool getSafeMode() const;
39 
40 private:
41  bool m_SafeMode;
42 };
43 
44 #endif
QmitkSingleApplication
Definition: QmitkSingleApplication.h:22
MITKAPPUTIL_EXPORT
#define MITKAPPUTIL_EXPORT
Definition: MitkAppUtilExports.h:15
MitkAppUtilExports.h
QmitkSafeNotify.h