diff options
author | Pixel <Pixel> | 2001-10-30 17:38:54 +0000 |
---|---|---|
committer | Pixel <Pixel> | 2001-10-30 17:38:54 +0000 |
commit | 57633137f749b0098eaf703f49ed00c96128966d (patch) | |
tree | f7e55be48d4724d44e5ed2362cf836162e866d05 /include/Task.h | |
parent | e5057005049b11af44cb804118f95370f03ab32c (diff) |
Huge work on Tasking System.
Diffstat (limited to 'include/Task.h')
-rw-r--r-- | include/Task.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/include/Task.h b/include/Task.h index 12e3bff..c67a59c 100644 --- a/include/Task.h +++ b/include/Task.h @@ -4,19 +4,21 @@ #include "Exceptions.h" -#define TASK_ON_HOLD 0 -#define TASK_DONE 1 -#define TASK_WAITING_HANDLE 2 -#define TASK_WAITING_TIMEOUT 3 +#define TASK_ON_HOLD 1 +#define TASK_DONE 2 +#define TASK_WAITING_HANDLE 4 +#define TASK_WAITING_TIMEOUT 8 +#define TASK_WAITING_TASK 16 class Task : public Base { public: Task(); virtual ~Task(); - virtual int Do(); + virtual String GetName(); int Run(); int GetState(); protected: + virtual int Do(); private: int state; |