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
berryIExecutionListener.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 BERRYIEXECUTIONLISTENER_H_
19
#define BERRYIEXECUTIONLISTENER_H_
20
21
#include <
berryObject.h
>
22
#include <
berryMessage.h
>
23
24
#include <
org_blueberry_core_commands_Export.h
>
25
#include "
common/berryCommandExceptions.h
"
26
27
namespace
berry
{
28
29
class
ExecutionEvent;
30
39
struct
BERRY_COMMANDS
IExecutionListener
40
{
41
42
struct
Events
{
43
44
Message2<const QString&, const NotHandledException*>
notHandled
;
45
Message2<const QString&, const ExecutionException*>
postExecuteFailure
;
46
Message2<const QString&, const Object::Pointer&>
postExecuteSuccess
;
47
Message2<const QString&, const SmartPointer<const ExecutionEvent>
& >
preExecute
;
48
49
virtual
~
Events
();
50
51
virtual
void
AddListener(
IExecutionListener
* listener);
52
virtual
void
RemoveListener(
IExecutionListener
* listener);
53
virtual
bool
HasListeners()
const
;
54
virtual
bool
IsEmpty()
const
;
55
56
private
:
57
58
typedef
MessageDelegate2<IExecutionListener, const QString&, const NotHandledException* >
NotHandledDelegate
;
59
typedef
MessageDelegate2<IExecutionListener, const QString&, const ExecutionException*>
PostExecuteFailureDelegate
;
60
typedef
MessageDelegate2<IExecutionListener, const QString&, const Object::Pointer&>
PostExecuteSuccessDelegate
;
61
typedef
MessageDelegate2<IExecutionListener, const QString&, const SmartPointer<const ExecutionEvent>
& >
PreExecuteDelegate
;
62
};
63
64
virtual
~
IExecutionListener
();
65
76
virtual
void
NotHandled(
const
QString& commandId,
const
NotHandledException* exception) = 0;
77
87
virtual
void
PostExecuteFailure(
const
QString& commandId,
88
const
ExecutionException* exception) = 0;
89
100
virtual
void
PostExecuteSuccess(
const
QString& commandId,
const
Object::Pointer
& returnValue) = 0;
101
112
virtual
void
PreExecute(
const
QString& commandId,
const
SmartPointer<const ExecutionEvent>
& event) = 0;
113
};
114
115
}
116
117
#endif
/* BERRYIEXECUTIONLISTENER_H_ */
berry
Definition:
QmitkPropertyItemModel.h:27
berryCommandExceptions.h
berryMessage.h
berry::IExecutionListener::Events::postExecuteFailure
Message2< const QString &, const ExecutionException * > postExecuteFailure
Definition:
berryIExecutionListener.h:45
berry::SmartPointer< Self >
berry::IExecutionListener
Definition:
berryIExecutionListener.h:39
berry::IExecutionListener::Events
Definition:
berryIExecutionListener.h:42
BERRY_COMMANDS
#define BERRY_COMMANDS
Definition:
org_blueberry_core_commands_Export.h:23
berryObject.h
org_blueberry_core_commands_Export.h
berry::IExecutionListener::Events::postExecuteSuccess
Message2< const QString &, const Object::Pointer & > postExecuteSuccess
Definition:
berryIExecutionListener.h:46
berry::MessageDelegate2
Definition:
berryMessage.h:220
berry::Message2< const QString &, const NotHandledException * >
berry::IExecutionListener::Events::preExecute
Message2< const QString &, const SmartPointer< const ExecutionEvent > & > preExecute
Definition:
berryIExecutionListener.h:47
berry::IExecutionListener::Events::notHandled
Message2< const QString &, const NotHandledException * > notHandled
Definition:
berryIExecutionListener.h:44
git
MITK
Plugins
org.blueberry.core.commands
src
berryIExecutionListener.h
Generated on Fri Feb 3 2017 20:51:44 for Medical Imaging Interaction Toolkit by
1.8.9.1