]> git.tdb.fi Git - builder.git/blobdiff - source/task.h
Convert all list containers to vectors
[builder.git] / source / task.h
index 0732453bfd460b0f0fe8ae881899c6d33581d89a..97cf8d627b1bedaae6c338b64399107047e95e30 100644 (file)
@@ -22,18 +22,18 @@ public:
 
        sigc::signal<void, bool> signal_finished;
 
-       Msp::FS::Path file;
+protected:
+       std::vector<Msp::FS::Path> files;
        bool unlink;
 
-protected:
        Task();
 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: