diff options
author | Pixel <Pixel> | 2001-10-29 15:44:12 +0000 |
---|---|---|
committer | Pixel <Pixel> | 2001-10-29 15:44:12 +0000 |
commit | 2e5bed84841f33ff28dd95b77b555720c875a286 (patch) | |
tree | de6cbcbf5fa65e90e1888d52a9426373a1638c61 /include/Task.h | |
parent | 0a6190d0269392e875a479df01b152d47ea4143c (diff) |
Beginning task manager
Diffstat (limited to 'include/Task.h')
-rw-r--r-- | include/Task.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/include/Task.h b/include/Task.h index fe70d7b..12e3bff 100644 --- a/include/Task.h +++ b/include/Task.h @@ -2,6 +2,26 @@ #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 |