Medical Imaging Interaction Toolkit  2024.06.99-60d9b802
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 
19 
20 namespace berry {
21 
35 
37 
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 
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