#ifndef COPY_H_
#define COPY_H_
-#include <msp/core/thread.h>
-#include <msp/fs/path.h>
-#include "internaltask.h"
#include "tool.h"
class InstalledFile;
*/
class Copy: public Tool
{
-private:
- /**
- A worker thread that actually does the data transfer.
- */
- class Worker: public InternalTask::Worker
- {
- private:
- const InstalledFile ⌖
-
- public:
- Worker(const InstalledFile &);
- private:
- void main() override;
- };
-
public:
Copy(Builder &);
Target *create_target(const std::vector<Target *> &, const std::string &) override;
- Task *run(const Target &) const override;
+
+private:
+ static bool _run(const InstalledFile &);
};
#endif