X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ftask.h;h=1f59473fd14f135da7933d18993f4936458e2e1c;hb=666bf60f80a3f220a112c2a97ed00b72871924d3;hp=d2cf5a4ccec91b78e051b8cca8577ba9762f6dc6;hpb=338eefb513953ae55e8e3614c009c242ba8ad74e;p=builder.git diff --git a/source/task.h b/source/task.h index d2cf5a4..1f59473 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,6 +25,8 @@ protected: public: virtual ~Task() { } + virtual std::string get_command() const = 0; + virtual void start() = 0; virtual Status check() = 0; };