X-Git-Url: http://git.tdb.fi/?p=builder.git;a=blobdiff_plain;f=source%2Flib%2Ftask.h;fp=source%2Flib%2Ftask.h;h=3520a91ae04ab3fe584a873ec6e56123d7f8e8ae;hp=b0f56f470399446d7339b1508300c2f0fd89e59f;hb=c88127503ec454a8f4d68dc55dd32f964d2a7e1a;hpb=ea15b8404257f49b529253b82de45f5e85814154 diff --git a/source/lib/task.h b/source/lib/task.h index b0f56f4..3520a91 100644 --- a/source/lib/task.h +++ b/source/lib/task.h @@ -2,10 +2,12 @@ #define TASK_H_ #include +#include #include -#include #include "libbuilder_api.h" +class FileTarget; + /** Tasks are used to manage other programs and worker threads involved in the build process. They are run asynchronously by default, but a wait() method is @@ -24,15 +26,15 @@ public: sigc::signal signal_finished; protected: - std::vector files; + std::vector targets; bool unlink = false; Task() = default; public: virtual ~Task() { } - /** Associate the task with a file. */ - void add_file(const Msp::FS::Path &); + /** Associate the task with a target. */ + void add_target(const FileTarget &); /** If set to true, the associated files are removed before the task is started. */