WebRadioApp  0.1
_CoreSystemEventHandler.h
Go to the documentation of this file.
1 /*******************************************************************************
2 *
3 * E M B E D D E D W I Z A R D P R O J E C T
4 *
5 * Copyright (c) TARA Systems GmbH
6 * written by Paul Banach and Manfred Schweyer
7 *
8 ********************************************************************************
9 *
10 * This file was generated automatically by Embedded Wizard Studio.
11 *
12 * Please do not make any modifications of this file! The modifications are lost
13 * when the file is generated again by Embedded Wizard Studio!
14 *
15 * The template of this heading text can be found in the file 'head.ewt' in the
16 * directory 'Platforms' of your Embedded Wizard installation directory. If you
17 * wish to adapt this text, please copy the template file 'head.ewt' into your
18 * project directory and edit the copy only. Please avoid any modifications of
19 * the original template file!
20 *
21 * Version : 10.00
22 * Profile : STM32H747
23 * Platform : STM.STM32.RGB565
24 *
25 *******************************************************************************/
26 
27 #ifndef _CoreSystemEventHandler_H
28 #define _CoreSystemEventHandler_H
29 
30 #ifdef __cplusplus
31  extern "C"
32  {
33 #endif
34 
35 #include "ewrte.h"
36 #if EW_RTE_VERSION != 0x000A0000
37  #error Wrong version of Embedded Wizard Runtime Environment.
38 #endif
39 
40 #include "ewgfx.h"
41 #if EW_GFX_VERSION != 0x000A0000
42  #error Wrong version of Embedded Wizard Graphics Engine.
43 #endif
44 
45 /* Forward declaration of the class Core::SystemEvent */
46 #ifndef _CoreSystemEvent_
47  EW_DECLARE_CLASS( CoreSystemEvent )
48 #define _CoreSystemEvent_
49 #endif
50 
51 /* Forward declaration of the class Core::SystemEventHandler */
52 #ifndef _CoreSystemEventHandler_
53  EW_DECLARE_CLASS( CoreSystemEventHandler )
54 #define _CoreSystemEventHandler_
55 #endif
56 
57 
58 /* The class Core::SystemEventHandler provides a convenient component able to react
59  to system events. Such events are usually generated by the real device the GUI
60  application is designed for. Every time the device notifies the GUI application
61  about a particular event, the corresponding system event handlers are activated.
62  Here for example, the device can report the current status of an engine every
63  time this engine starts or stops. Thereupon the GUI application can react to
64  such event and e.g. update the screen.
65  In Embedded Wizard every system event is represented by its own Core::SystemEvent
66  instance. Usually you create and maintain such instances globally, e.g. within
67  a device autoobject. Once a system event instance is available, you can connect
68  a system event handler with it. For this purpose assign the system event instance
69  to the property @Event. Later at the runtime when the system event instance is
70  triggered, all associated system event handlers will be notified causing each
71  handler to send a signal to a slot method stored in its property @OnEvent. In
72  the slot method you are free to implement what to do in response to the event.
73  Please note, the delivery of events succeeds asynchronously however always accordingly
74  to the order in which the events were triggered. */
75 EW_DEFINE_FIELDS( CoreSystemEventHandler, XObject )
76  EW_VARIABLE( Context, XObject )
77  EW_PROPERTY( Event, CoreSystemEvent )
78  EW_PROPERTY( OnEvent, XSlot )
79  EW_PROPERTY( Enabled, XBool )
80 EW_END_OF_FIELDS( CoreSystemEventHandler )
81 
82 /* Virtual Method Table (VMT) for the class : 'Core::SystemEventHandler' */
83 EW_DEFINE_METHODS( CoreSystemEventHandler, XObject )
84 EW_END_OF_METHODS( CoreSystemEventHandler )
85 
86 /* 'C' function for method : 'Core::SystemEventHandler.onEvent()' */
87 void CoreSystemEventHandler_onEvent( CoreSystemEventHandler _this, XObject sender );
88 
89 /* 'C' function for method : 'Core::SystemEventHandler.OnSetEvent()' */
90 void CoreSystemEventHandler_OnSetEvent( CoreSystemEventHandler _this, CoreSystemEvent
91  value );
92 
93 #ifdef __cplusplus
94  }
95 #endif
96 
97 #endif /* _CoreSystemEventHandler_H */
98 
99 /* Embedded Wizard */
ewrte.h
EW_END_OF_FIELDS
#define EW_END_OF_FIELDS(aClass)
Definition: ewrte.h:460
EW_DECLARE_CLASS
#define EW_DECLARE_CLASS(aClass)
Definition: ewrte.h:393
XSlot
Definition: ewrte.h:2114
CoreSystemEventHandler_onEvent
void CoreSystemEventHandler_onEvent(CoreSystemEventHandler _this, XObject sender)
Definition: Core.c:7735
EW_VARIABLE
#define EW_VARIABLE(aName, aType)
Definition: ewrte.h:464
ewgfx.h
_obj_XObject
Definition: ewrte.h:281
value
XRect CoreOutline aOutline XPoint value
Definition: _ViewsWarpView.h:137
CoreSystemEventHandler_OnSetEvent
void CoreSystemEventHandler_OnSetEvent(CoreSystemEventHandler _this, CoreSystemEvent value)
Definition: Core.c:7749
XBool
char XBool
Definition: ewrte.h:1592
EW_DEFINE_METHODS
#define EW_DEFINE_METHODS(aClass, aSuperClass)
Definition: ewrte.h:524
sender
XRect CoreOutline aOutline XObject sender
Definition: _ApplicationRadioInterface.h:186
EW_PROPERTY
#define EW_PROPERTY(aName, aType)
Definition: ewrte.h:466
EW_END_OF_METHODS
#define EW_END_OF_METHODS(aClass)
Definition: ewrte.h:539
EW_DEFINE_FIELDS
#define EW_DEFINE_FIELDS(aClass, aSuperClass)
Definition: ewrte.h:451