Medical Imaging Interaction Toolkit
2024.06.00
Medical Imaging Interaction Toolkit
berryIExecutionListenerWithChecks.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
14
#ifndef BERRYIEXECUTIONLISTENERWITHCHECKS_H_
15
#define BERRYIEXECUTIONLISTENERWITHCHECKS_H_
16
17
#include "
berryIExecutionListener.h
"
18
#include "
common/berryCommandExceptions.h
"
19
20
namespace
berry
{
21
34
struct
BERRY_COMMANDS
IExecutionListenerWithChecks
:
public
IExecutionListener
{
35
36
struct
Events
:
public
IExecutionListener::Events
{
37
38
Message2<const QString&, const NotDefinedException*>
notDefined
;
39
Message2<const QString&, const NotEnabledException*>
notEnabled
;
40
41
void
AddListener(
IExecutionListener
* listener)
override
;
42
void
RemoveListener(
IExecutionListener
* listener)
override
;
43
bool
HasListeners()
const override
;
44
bool
IsEmpty()
const override
;
45
46
private
:
47
48
typedef
MessageDelegate2<IExecutionListenerWithChecks, const QString&, const NotDefinedException* >
NotDefinedDelegate
;
49
typedef
MessageDelegate2<IExecutionListenerWithChecks, const QString&, const NotEnabledException*>
NotEnabledDelegate
;
50
};
51
62
virtual
void
NotDefined(
const
QString& commandId,
const
NotDefinedException* exception) = 0;
63
74
virtual
void
NotEnabled(
const
QString& commandId,
const
NotEnabledException* exception) = 0;
75
};
76
77
}
78
79
#endif
/* BERRYIEXECUTIONLISTENERWITHCHECKS_H_ */
berry::IExecutionListener
Definition:
berryIExecutionListener.h:35
berry::IExecutionListenerWithChecks::Events::notEnabled
Message2< const QString &, const NotEnabledException * > notEnabled
Definition:
berryIExecutionListenerWithChecks.h:39
berryCommandExceptions.h
BERRY_COMMANDS
#define BERRY_COMMANDS
Definition:
org_blueberry_core_commands_Export.h:26
berry::IExecutionListenerWithChecks::Events::notDefined
Message2< const QString &, const NotDefinedException * > notDefined
Definition:
berryIExecutionListenerWithChecks.h:38
berry::Message2< const QString &, const NotDefinedException * >
berry::MessageDelegate2
Definition:
berryMessage.h:216
berry::IExecutionListener::Events
Definition:
berryIExecutionListener.h:38
berry::IExecutionListenerWithChecks::Events
Definition:
berryIExecutionListenerWithChecks.h:36
berry::IExecutionListenerWithChecks
Definition:
berryIExecutionListenerWithChecks.h:34
berry
Definition:
QmitkPropertyItemModel.h:24
berryIExecutionListener.h
src
MITK
Plugins
org.blueberry.core.commands
src
berryIExecutionListenerWithChecks.h
Generated on Mon Jun 17 2024 12:43:21 for Medical Imaging Interaction Toolkit by
1.8.17