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
berryIExecutionListenerWithChecks.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 BERRYIEXECUTIONLISTENERWITHCHECKS_H_
19
#define BERRYIEXECUTIONLISTENERWITHCHECKS_H_
20
21
#include "
berryIExecutionListener.h
"
22
#include "
common/berryCommandExceptions.h
"
23
24
namespace
berry
{
25
38
struct
BERRY_COMMANDS
IExecutionListenerWithChecks
:
public
IExecutionListener
{
39
40
struct
Events
:
public
IExecutionListener::Events
{
41
42
Message2<const QString&, const NotDefinedException*>
notDefined
;
43
Message2<const QString&, const NotEnabledException*>
notEnabled
;
44
45
void
AddListener(
IExecutionListener
* listener)
override
;
46
void
RemoveListener(
IExecutionListener
* listener)
override
;
47
bool
HasListeners()
const override
;
48
bool
IsEmpty()
const override
;
49
50
private
:
51
52
typedef
MessageDelegate2<IExecutionListenerWithChecks, const QString&, const NotDefinedException* >
NotDefinedDelegate
;
53
typedef
MessageDelegate2<IExecutionListenerWithChecks, const QString&, const NotEnabledException*>
NotEnabledDelegate
;
54
};
55
66
virtual
void
NotDefined(
const
QString& commandId,
const
NotDefinedException* exception) = 0;
67
78
virtual
void
NotEnabled(
const
QString& commandId,
const
NotEnabledException* exception) = 0;
79
};
80
81
}
82
83
#endif
/* BERRYIEXECUTIONLISTENERWITHCHECKS_H_ */
berryIExecutionListener.h
berry
Definition:
QmitkPropertyItemModel.h:27
berry::IExecutionListenerWithChecks::Events::notEnabled
Message2< const QString &, const NotEnabledException * > notEnabled
Definition:
berryIExecutionListenerWithChecks.h:43
berryCommandExceptions.h
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
berry::IExecutionListenerWithChecks::Events::notDefined
Message2< const QString &, const NotDefinedException * > notDefined
Definition:
berryIExecutionListenerWithChecks.h:42
berry::IExecutionListenerWithChecks
Definition:
berryIExecutionListenerWithChecks.h:38
berry::MessageDelegate2
Definition:
berryMessage.h:220
berry::Message2< const QString &, const NotDefinedException * >
berry::IExecutionListenerWithChecks::Events
Definition:
berryIExecutionListenerWithChecks.h:40
git
MITK
Plugins
org.blueberry.core.commands
src
berryIExecutionListenerWithChecks.h
Generated on Fri Feb 3 2017 20:51:44 for Medical Imaging Interaction Toolkit by
1.8.9.1