]> git.tdb.fi Git - builder.git/blob - source/copy.h
Replace per-file copyright notices with a single file
[builder.git] / source / copy.h
1 #ifndef COPY_H_
2 #define COPY_H_
3
4 #include <msp/core/thread.h>
5 #include <msp/fs/path.h>
6 #include "internalaction.h"
7
8 class Package;
9
10 /**
11 Copies a file to another place.  Used by the Install target.
12 */
13 class Copy: public InternalAction
14 {
15 private:
16         /**
17         A worker thread that actually does the data transfer.
18         */
19         class Worker: public InternalAction::Worker
20         {
21         public:
22                 Worker(Copy &);
23         private:
24                 Copy &copy;
25
26                 void main();
27         };
28
29         Msp::FS::Path src;
30         Msp::FS::Path dest;
31
32 public:
33         Copy(Builder &, const Package &, const Msp::FS::Path &, const Msp::FS::Path &);
34 };
35
36 #endif