Medical Imaging Interaction Toolkit  2018.4.99-4c24e3cb
Medical Imaging Interaction Toolkit
berryHandlerEvent.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 BERRYHANDLEREVENT_H_
15 #define BERRYHANDLEREVENT_H_
16 
19 
20 namespace berry {
21 
22 struct IHandler;
23 
34 
35 public:
36 
38 
50  HandlerEvent(const SmartPointer<IHandler> handler, bool enabledChanged,
51  bool handledChanged);
52 
59  SmartPointer<IHandler> GetHandler() const;
60 
66  bool IsEnabledChanged() const;
67 
73  bool IsHandledChanged() const ;
74 
75 
76 private:
77 
82  static const int CHANGED_ENABLED; // = 1;
83 
88  static const int CHANGED_HANDLED; // = 1 << 1;
89 
94 
95 
96 };
97 
98 }
99 
100 #endif /* BERRYHANDLEREVENT_H_ */
static MsgHandler handler
Definition: usUtils.cpp:261
Implements transparent reference counting.
#define berryObjectMacro(...)
Definition: berryMacros.h:33