Free Electron
HandlerI.h
Go to the documentation of this file.
1 /* Copyright (C) 2003-2021 Free Electron Organization
2  Any use of this software requires a license. If a valid license
3  was not distributed with this file, visit freeelectron.org. */
4 
5 /** @file */
6 
7 #ifndef __signal_HandlerI_h__
8 #define __signal_HandlerI_h__
9 
10 namespace fe
11 {
12 namespace ext
13 {
14 
15 class SignalerI;
16 
17 /**************************************************************************//**
18  @brief Interface to handle signals from an SignalerI
19 
20  @ingroup signal
21 *//***************************************************************************/
22 class FE_DL_EXPORT HandlerI:
23  virtual public Component,
24  public CastableAs<HandlerI>
25 {
26  public:
27 virtual ~HandlerI(void) {}
28 
29 virtual void handleBind(sp<SignalerI> spSignalerI,
30  sp<Layout> spLayout) {}
31 virtual void handle(Record &signal) {}
32 
33 virtual void handleSignal(Record &signal, sp<SignalerI> spSignalerI)
34  { handle(signal); }
35 };
36 
37 } /* namespace ext */
38 } /* namespace fe */
39 
40 #endif /* __signal_HandlerI_h__ */
kernel
Definition: namespace.dox:3
Interface to handle signals from an SignalerI.
Definition: HandlerI.h:22
Reference to an instance of a Layout.
Definition: RecordSB.h:35
Base for all interfacable components.
Definition: Component.h:20
Per-class participation non-RTTI fallback dynamic casting mechanism.
Definition: Castable.h:192