Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
Home
Manual
API Reference
Download
Bugzilla
Groups
Namespace List
Class List
File List
Examples
File List
File Members
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
berrySafeRunnable.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
18
#ifndef BERRYSAFERUNNABLE_H_
19
#define BERRYSAFERUNNABLE_H_
20
21
#include <
berryISafeRunnable.h
>
22
#include "
berryISafeRunnableRunner.h
"
23
24
namespace
berry
{
25
33
class
BERRY_UI_QT
SafeRunnable
:
public
ISafeRunnable
{
34
35
private
:
36
37
static
bool
ignoreErrors;
38
39
static
ISafeRunnableRunner::Pointer
runner;
40
41
QString message;
42
48
static
ISafeRunnableRunner::Pointer
CreateDefaultRunner();
49
50
public
:
51
52
using
ISafeRunnable::Run
;
53
60
SafeRunnable
(
const
QString& message =
""
);
61
62
/*
63
* @see ISafeRunnable#HandleException(const ctkException&)
64
*/
65
void
HandleException(
const
ctkException& e)
override
;
66
73
static
bool
GetIgnoreErrors();
74
81
static
void
SetIgnoreErrors(
bool
flag);
82
89
static
ISafeRunnableRunner::Pointer
GetRunner();
90
98
static
void
SetRunner(
ISafeRunnableRunner::Pointer
runner);
99
108
static
void
Run(
ISafeRunnable::Pointer
runnable);
109
110
};
111
112
113
}
114
115
#endif
/* BERRYSAFERUNNABLE_H_ */
berry
Definition:
QmitkPropertyItemModel.h:27
berry::ISafeRunnable::Run
virtual void Run()=0
berry::SmartPointer< Self >
berry::SafeRunnable
Definition:
berrySafeRunnable.h:33
berryISafeRunnable.h
berryISafeRunnableRunner.h
berry::ISafeRunnable
Definition:
berryISafeRunnable.h:40
BERRY_UI_QT
#define BERRY_UI_QT
Definition:
org_blueberry_ui_qt_Export.h:23
git
MITK
Plugins
org.blueberry.ui.qt
src
util
berrySafeRunnable.h
Generated on Fri Feb 3 2017 20:51:44 for Medical Imaging Interaction Toolkit by
1.8.9.1