From 57633137f749b0098eaf703f49ed00c96128966d Mon Sep 17 00:00:00 2001 From: Pixel Date: Tue, 30 Oct 2001 17:38:54 +0000 Subject: Huge work on Tasking System. --- include/Task.h | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'include/Task.h') 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; -- cgit v1.2.3