Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
berryIExecutionListener.cpp
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 
18 
20 #include "berryExecutionEvent.h"
21 #include "berryCommandCategory.h"
22 #include "berryState.h"
23 #include "berryIHandler.h"
24 
25 namespace berry {
26 
28 {
29 }
30 
31 void
34 {
35  if (l == nullptr) return;
36 
41 }
42 
43 void
46 {
47  if (l == nullptr) return;
48 
53 }
54 
55 bool
58 {
59  return notHandled.HasListeners() || postExecuteFailure.HasListeners() ||
60  postExecuteSuccess.HasListeners() || preExecute.HasListeners();
61 }
62 
63 bool
65 ::IsEmpty() const
66 {
67  return !this->HasListeners();
68 }
69 
71 {
72 }
73 
74 }
75 
76 
77 
78 
virtual void PostExecuteSuccess(const QString &commandId, const Object::Pointer &returnValue)=0
virtual void PreExecute(const QString &commandId, const SmartPointer< const ExecutionEvent > &event)=0
virtual void PostExecuteFailure(const QString &commandId, const ExecutionException *exception)=0
virtual void RemoveListener(IExecutionListener *listener)
virtual void AddListener(IExecutionListener *listener)
virtual void NotHandled(const QString &commandId, const NotHandledException *exception)=0