X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcopy.h;h=6150fadfefa660c287d8f2a850da098489f51893;hb=338eefb513953ae55e8e3614c009c242ba8ad74e;hp=c8917c371cbd57a117a95ec9492e0cad3e4dab6d;hpb=43bd25ffcb0b4f7882773f4676b209a99cb73c04;p=builder.git diff --git a/source/copy.h b/source/copy.h index c8917c3..6150fad 100644 --- a/source/copy.h +++ b/source/copy.h @@ -3,34 +3,36 @@ #include #include -#include "internalaction.h" +#include "internaltask.h" +#include "tool.h" -class Package; +class Install; /** Copies a file to another place. Used by the Install target. */ -class Copy: public InternalAction +class Copy: public Tool { private: /** A worker thread that actually does the data transfer. */ - class Worker: public InternalAction::Worker + class Worker: public InternalTask::Worker { - public: - Worker(Copy &); private: - Copy © + const Install ⌖ - void main(); + public: + Worker(const Install &); + private: + virtual void main(); }; - Msp::FS::Path src; - Msp::FS::Path dest; - public: - Copy(Builder &, const Package &, const Msp::FS::Path &, const Msp::FS::Path &); + Copy(Builder &); + + virtual Target *create_target(const std::list &, const std::string &) const; + virtual Task *run(const Target &) const; }; #endif