Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
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 
23 
24 namespace berry {
25 
39 
41 
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 
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_ */
Message2< const QString &, const NotEnabledException * > notEnabled
Message2< const QString &, const NotDefinedException * > notDefined