Initial commit

This commit is contained in:
2023-09-19 15:59:49 +02:00
commit bef0bade14
1860 changed files with 582828 additions and 0 deletions

View File

@ -0,0 +1,24 @@
#ifndef EVENTIDS_H
#define EVENTIDS_H
/**
* This class is responsible to distribute to every event
* used in the project a different event id.
*
* Only values grater than zero should be used
*
*/
class EventId
{
public:
/**
* The event identifiers available
*/
typedef enum
{
Unknown = 0, ///< Unknown event. Must not be used.
evRestart = 1 ///< Restart event
} eEventId;
};
#endif // EVENTIDS_H

View File

@ -0,0 +1,9 @@
#include "evrestart.h"
evRestart::evRestart() : XFCustomEvent(EventId::evRestart)
{
}
evRestart::~evRestart()
{
}

View File

@ -0,0 +1,19 @@
#ifndef EVRESTART_H
#define EVRESTART_H
#include "xf/customevent.h"
#include "eventids.h"
/**
* Restart event used to reset a state machine
*/
class evRestart : public XFCustomEvent
{
public:
evRestart();
~evRestart() override;
};
#endif // EVRESTART_H