Medical Imaging Interaction Toolkit  2021.02.99-e55a5d2f
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_ */
Message2< const QString &, const NotEnabledException * > notEnabled
Message2< const QString &, const NotDefinedException * > notDefined