MCUXpresso_LPC55S69/boards/lpcxpresso55s69/ew_gui_examples/ew_gui_animated_list/GeneratedCode/_CoreTask.h
2022-04-08 22:42:47 +08:00

84 lines
3.0 KiB
C

/*******************************************************************************
*
* E M B E D D E D W I Z A R D P R O J E C T
*
* Copyright (c) TARA Systems GmbH
* written by Paul Banach and Manfred Schweyer
*
********************************************************************************
*
* This software is delivered "as is" and shows the usage of other software
* components. It is provided as an example software which is intended to be
* modified and extended according to particular requirements.
*
* TARA Systems hereby disclaims all warranties and conditions with regard to the
* software, including all implied warranties and conditions of merchantability
* and non-infringement of any third party IPR or other rights which may result
* from the use or the inability to use the software.
*
* This file was generated automatically by Embedded Wizard Studio.
*
* Please do not make any modifications of this file! The modifications are lost
* when the file is generated again by Embedded Wizard Studio!
*
* Version : 10.0
* Date : 17.02.2021 8:00:50
* Profile : NxpLpc
* Platform : NXP.LPC.RGB565
*
*******************************************************************************/
#ifndef _CoreTask_H
#define _CoreTask_H
#ifdef __cplusplus
extern "C"
{
#endif
#include "ewrte.h"
#if EW_RTE_VERSION != 0x000A0000
#error Wrong version of Embedded Wizard Runtime Environment.
#endif
#include "ewgfx.h"
#if EW_GFX_VERSION != 0x000A0000
#error Wrong version of Embedded Wizard Graphics Engine.
#endif
/* Forward declaration of the class Core::Task */
#ifndef _CoreTask_
EW_DECLARE_CLASS( CoreTask )
#define _CoreTask_
#endif
/* The class Core::Task provides the basic functionality for implementing tasks
which then can be scheduled for later execution. The execution of tasks is controlled
by instances of the class Core::TaskQueue.
Usually you will use this class to derive your own task class. In your task class
you can implement what to do when the task is started, canceled or completed.
For this purpose you can override the methods @OnStart(), @OnCancel(), @OnComplete()
and @OnContinue().
It is essential to understand, that the entire 'task' functionality has nothing
to do with multi-threading or multi-tasking features known from operating systems.
Applications developed with Chora are limited to a single-thread environment.
There is no real background thread activity. Accordingly your implementation
of a task should behave cooperatively. A well designed task should perform its
job quickly, use timers or effects to delay execution and when the job is done
reports its completion by calling the method @Complete(). */
EW_DEFINE_FIELDS( CoreTask, XObject )
EW_END_OF_FIELDS( CoreTask )
/* Virtual Method Table (VMT) for the class : 'Core::Task' */
EW_DEFINE_METHODS( CoreTask, XObject )
EW_END_OF_METHODS( CoreTask )
#ifdef __cplusplus
}
#endif
#endif /* _CoreTask_H */
/* Embedded Wizard */