WebRadioApp  0.1
_CoreSystemEventTask.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 _CoreSystemEventTask_H
28 #define _CoreSystemEventTask_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 #include "_CoreTask.h"
46 
47 /* Forward declaration of the class Core::SystemEvent */
48 #ifndef _CoreSystemEvent_
49  EW_DECLARE_CLASS( CoreSystemEvent )
50 #define _CoreSystemEvent_
51 #endif
52 
53 /* Forward declaration of the class Core::SystemEventTask */
54 #ifndef _CoreSystemEventTask_
55  EW_DECLARE_CLASS( CoreSystemEventTask )
56 #define _CoreSystemEventTask_
57 #endif
58 
59 /* Forward declaration of the class Core::TaskQueue */
60 #ifndef _CoreTaskQueue_
61  EW_DECLARE_CLASS( CoreTaskQueue )
62 #define _CoreTaskQueue_
63 #endif
64 
65 
66 /* Deklaration of class : 'Core::SystemEventTask' */
67 EW_DEFINE_FIELDS( CoreSystemEventTask, CoreTask )
68  EW_VARIABLE( context, XObject )
69  EW_VARIABLE( target, CoreSystemEvent )
70 EW_END_OF_FIELDS( CoreSystemEventTask )
71 
72 /* Virtual Method Table (VMT) for the class : 'Core::SystemEventTask' */
73 EW_DEFINE_METHODS( CoreSystemEventTask, CoreTask )
74  EW_METHOD( OnComplete, void )( CoreTask _this, CoreTaskQueue aQueue )
75  EW_METHOD( OnCancel, void )( CoreTask _this, CoreTaskQueue aQueue )
76  EW_METHOD( OnStart, void )( CoreSystemEventTask _this, CoreTaskQueue
77  aQueue )
78  EW_METHOD( Complete, void )( CoreTask _this )
79 EW_END_OF_METHODS( CoreSystemEventTask )
80 
81 /* The method OnStart() is called at the begin of the execution of this task. The
82  default implementation of the method simply cancels the task causing the next
83  available task in the task queue to be started. You should override this method
84  in derived task classes to implement what the task should do.
85  There are three typical application cases how to implement the OnStart() method:
86  - In its simplest case the entire task algorithm is implemented in the OnStart()
87  method. In this case the method @Complete() should be called before leaving OnStart().
88  - If the task does take long time for execution by using timers or effects, you
89  should put in OnStart() the code necessary to start the timers/effects. Don't
90  forget to call @Complete() when all timers/effects are done.
91  - If the task is divided in many small execution steps, the OnStart() method
92  should call @Continue() to request the @OnContinue() method to be executed after
93  a short delay (usually after the next screen update). In @OnContinue() you can
94  perform the next step of the task. If necessary, @OnContinue() can also request
95  to be called again after a short delay. At the end of the task, after the last
96  step is terminated, don't forget to call @Complete().
97  The parameter aQueue refers to the queue this task belongs to. It can be used
98  to schedule more task to execute later. */
99 void CoreSystemEventTask_OnStart( CoreSystemEventTask _this, CoreTaskQueue aQueue );
100 
101 /* 'C' function for method : 'Core::SystemEventTask.onDelivered()' */
102 void CoreSystemEventTask_onDelivered( CoreSystemEventTask _this, XObject sender );
103 
104 #ifdef __cplusplus
105  }
106 #endif
107 
108 #endif /* _CoreSystemEventTask_H */
109 
110 /* Embedded Wizard */
CoreSystemEventTask_onDelivered
void CoreSystemEventTask_onDelivered(CoreSystemEventTask _this, XObject sender)
Definition: Core.c:7008
ewrte.h
_CoreTask.h
EW_END_OF_FIELDS
#define EW_END_OF_FIELDS(aClass)
Definition: ewrte.h:460
CoreSystemEventTask_OnStart
void CoreSystemEventTask_OnStart(CoreSystemEventTask _this, CoreTaskQueue aQueue)
Definition: Core.c:6997
EW_DECLARE_CLASS
#define EW_DECLARE_CLASS(aClass)
Definition: ewrte.h:393
aQueue
CoreTaskQueue aQueue CoreTaskQueue aQueue CoreTaskQueue aQueue CoreTaskQueue aQueue
Definition: _CoreSystemEventTask.h:99
EW_VARIABLE
#define EW_VARIABLE(aName, aType)
Definition: ewrte.h:464
ewgfx.h
_obj_XObject
Definition: ewrte.h:281
EW_DEFINE_METHODS
#define EW_DEFINE_METHODS(aClass, aSuperClass)
Definition: ewrte.h:524
sender
XRect CoreOutline aOutline XObject sender
Definition: _ApplicationRadioInterface.h:186
EW_END_OF_METHODS
#define EW_END_OF_METHODS(aClass)
Definition: ewrte.h:539
EW_METHOD
EW_METHOD(OnComplete, void)(CoreTask _this
EW_DEFINE_FIELDS
#define EW_DEFINE_FIELDS(aClass, aSuperClass)
Definition: ewrte.h:451