Free Electron
SignalerI.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_SignalerI_h__
8 #define __signal_SignalerI_h__
9 
10 namespace fe
11 {
12 namespace ext
13 {
14 
15 /**************************************************************************//**
16  @brief Selective record broadcaster
17 
18  @ingroup signal
19 *//***************************************************************************/
20 class FE_DL_EXPORT SignalerI:
21  virtual public Component,
22  public CastableAs<SignalerI>
23 {
24  public:
25 
26 virtual void signal(Record &signal) = 0;
27 virtual void insert(sp<HandlerI> spHandlerI, sp<Layout> spLayout,
28  IWORD clue = -1) = 0;
29 virtual void remove(sp<HandlerI> spHandlerI, sp<Layout> spLayout) = 0;
30 virtual bool contains(sp<HandlerI> spHandlerI, sp<Layout> spLayout) = 0;
31 virtual void peek(Peeker &peeker);
32 #ifdef MODAL_SIGNALER
33 virtual void setMode(const String &aMode, bool aIsActive) = 0;
34 virtual bool getMode(const String &aMode) = 0;
35 virtual void insert(sp<HandlerI> spHandlerI, sp<Layout> spLayout,
36  const String &aMode, IWORD clue = -1) = 0;
37 #endif
38 };
39 
40 inline void SignalerI::peek(Peeker &peeker)
41 {
42  /* NOOP */
43 }
44 
45 } /* namespace ext */
46 } /* namespace fe */
47 
48 #endif /* __signal_SignalerI_h__ */
49 
kernel
Definition: namespace.dox:3
Selective record broadcaster.
Definition: SignalerI.h:20
Automatically reference-counted string container.
Definition: String.h:128
Reference to an instance of a Layout.
Definition: RecordSB.h:35
Base for all interfacable components.
Definition: Component.h:20
Intrusive Smart Pointer.
Definition: src/core/ptr.h:53
Per-class participation non-RTTI fallback dynamic casting mechanism.
Definition: Castable.h:192