mirror of
https://github.com/QuantumLeaps/qpc.git
synced 2025-01-28 07:03:10 +08:00
40 lines
609 B
C
40 lines
609 B
C
#ifndef my_app_h
|
|
#define my_app_h
|
|
|
|
enum MySignals {
|
|
MY_EVT0_SIG = Q_USER_SIG,
|
|
MY_EVT1_SIG,
|
|
MAX_PUB_SIG, /* the last published signal */
|
|
|
|
MY_EVT2_SIG,
|
|
MY_EVT3_SIG,
|
|
MAX_SIG /* the last signal */
|
|
};
|
|
|
|
typedef struct {
|
|
QEvt super; /* inherit QEvt */
|
|
|
|
uint32_t u32;
|
|
} MyEvt1;
|
|
|
|
typedef struct {
|
|
QEvt super; /* inherit QEvt */
|
|
|
|
uint32_t u32;
|
|
uint16_t u16;
|
|
} MyEvt2;
|
|
|
|
typedef struct {
|
|
QEvt super; /* inherit QEvt */
|
|
|
|
uint32_t u32;
|
|
uint16_t u16;
|
|
uint8_t u8;
|
|
} MyEvt3;
|
|
|
|
|
|
void MyAO_ctor(void);
|
|
extern QActive * const AO_MyAO;
|
|
|
|
#endif /* my_app_h */
|