19 lines
351 B
C++
19 lines
351 B
C++
#ifndef _GWIBUTTONTASK_H
|
|
#define _GWIBUTTONTASK_H
|
|
#include "GwApi.h"
|
|
class IButtonTask : public GwApi::TaskInterfaces::Base
|
|
{
|
|
public:
|
|
typedef enum
|
|
{
|
|
OFF,
|
|
PRESSED,
|
|
PRESSED_5, // 5...10s
|
|
PRESSED_10 //>10s
|
|
} ButtonState;
|
|
ButtonState state=OFF;
|
|
long pressCount=0;
|
|
};
|
|
DECLARE_TASKIF(IButtonTask);
|
|
|
|
#endif |