#ifndef __TASK_H__ #define __TASK_H__ #ifdef __cplusplus #include "Exceptions.h" #define TASK_ON_HOLD 0 #define TASK_DONE 1 #define TASK_WAITING_HANDLE 2 #define TASK_WAITING_TIMEOUT 3 class Task : public Base { public: Task(); virtual ~Task(); virtual int Do(); int Run(); int GetState(); protected: private: int state; }; #else #error This only works with a C++ compiler #endif #endif