From 5f5be5d1e78ef0a95bc7ea66103c8d3cc35bcec1 Mon Sep 17 00:00:00 2001 From: pixel Date: Wed, 11 Apr 2007 09:36:12 +0000 Subject: Adding LuaTask class. --- include/LuaTask.h | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 include/LuaTask.h (limited to 'include') diff --git a/include/LuaTask.h b/include/LuaTask.h new file mode 100644 index 0000000..48f65bf --- /dev/null +++ b/include/LuaTask.h @@ -0,0 +1,26 @@ +#ifndef __LUATASK_H__ +#define __LUATASK_H__ + +#include +#include +#include + +class LuaTask : public Task { + public: + LuaTask(Lua *, const String &); + virtual ~LuaTask(); + virtual String GetName(); + protected: + virtual int Do() throw (GeneralException); + private: + Lua * L; + String cmd; + Task * c; + Buffer * b; + + String task; + + static LuaTask * top; +}; + +#endif -- cgit v1.2.3