X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcopy.h;h=d65bb05a0c70e62b87382cea20fb16950b8b5061;hb=1ed833343bc83b83c5f61cbfd74423bbba677a04;hp=6150fadfefa660c287d8f2a850da098489f51893;hpb=338eefb513953ae55e8e3614c009c242ba8ad74e;p=builder.git diff --git a/source/copy.h b/source/copy.h index 6150fad..d65bb05 100644 --- a/source/copy.h +++ b/source/copy.h @@ -1,38 +1,22 @@ #ifndef COPY_H_ #define COPY_H_ -#include -#include -#include "internaltask.h" #include "tool.h" -class Install; +class InstalledFile; /** -Copies a file to another place. Used by the Install target. +Copies a file to another place. Used by the InstalledFile target. */ class Copy: public Tool { -private: - /** - A worker thread that actually does the data transfer. - */ - class Worker: public InternalTask::Worker - { - private: - const Install ⌖ - - public: - Worker(const Install &); - private: - virtual void main(); - }; - public: Copy(Builder &); - virtual Target *create_target(const std::list &, const std::string &) const; - virtual Task *run(const Target &) const; + Target *create_target(const std::vector &, const std::string &) override; + +private: + static bool _run(const InstalledFile &); }; #endif