summaryrefslogtreecommitdiff
path: root/include/Task.h
diff options
context:
space:
mode:
authorPixel <Pixel>2001-10-30 17:38:54 +0000
committerPixel <Pixel>2001-10-30 17:38:54 +0000
commit57633137f749b0098eaf703f49ed00c96128966d (patch)
treef7e55be48d4724d44e5ed2362cf836162e866d05 /include/Task.h
parente5057005049b11af44cb804118f95370f03ab32c (diff)
Huge work on Tasking System.
Diffstat (limited to 'include/Task.h')
-rw-r--r--include/Task.h12
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;