X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ftask.h;h=915ffe12a9e774f27adc9caede2736b59779492e;hb=d1f9551e05c9d341149eb490e05b1465d3d6b711;hp=0732453bfd460b0f0fe8ae881899c6d33581d89a;hpb=33d74db3e99f35a8984d4ad9b703f709d07d44c5;p=builder.git diff --git a/source/task.h b/source/task.h index 0732453..915ffe1 100644 --- a/source/task.h +++ b/source/task.h @@ -22,18 +22,18 @@ public: sigc::signal signal_finished; - Msp::FS::Path file; - bool unlink; - protected: - Task(); + std::vector files; + bool unlink = false; + + Task() = default; public: virtual ~Task() { } /** Associate the task with a file. */ - void set_file(const Msp::FS::Path &); + void add_file(const Msp::FS::Path &); - /** If set to true, the associated file is removed before the task is + /** If set to true, the associated files are removed before the task is started. */ void set_unlink(bool = true); @@ -45,8 +45,7 @@ public: virtual void start() = 0; protected: - /** Ensures that the output directory exists and removes the file if - necessary. */ + /// Ensures that the output directory exists and removes files if necessary. void prepare(); public: