X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ftask.h;h=9cf2bac9081b7b2c8df1627342aa1dd14600d8ff;hb=f515e91176cb4fcb1df379cdf664c90b3a565c95;hp=d2cf5a4ccec91b78e051b8cca8577ba9762f6dc6;hpb=338eefb513953ae55e8e3614c009c242ba8ad74e;p=builder.git diff --git a/source/task.h b/source/task.h index d2cf5a4..9cf2bac 100644 --- a/source/task.h +++ b/source/task.h @@ -1,8 +1,13 @@ #ifndef TASK_H_ #define TASK_H_ +#include #include +/** +Tasks are used to manage other programs and worker threads involved in the +build process. They are run asynchronously. +*/ class Task { public: @@ -20,7 +25,10 @@ protected: public: virtual ~Task() { } + virtual std::string get_command() const = 0; + virtual void start() = 0; virtual Status check() = 0; + virtual Status wait() = 0; }; #endif