]> git.tdb.fi Git - builder.git/blob - source/copy.h
Reorder class members
[builder.git] / source / copy.h
1 /* $Id$
2
3 This file is part of builder
4 Copyright © 2006-2009  Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
6 */
7
8 #ifndef COPY_H_
9 #define COPY_H_
10
11 #include <msp/core/thread.h>
12 #include <msp/fs/path.h>
13 #include "internalaction.h"
14
15 class Package;
16
17 /**
18 Copies a file to another place.  Used by the Install target.
19 */
20 class Copy: public InternalAction
21 {
22 private:
23         /**
24         A worker thread that actually does the data transfer.
25         */
26         class Worker: public InternalAction::Worker
27         {
28         public:
29                 Worker(Copy &);
30         private:
31                 Copy &copy;
32
33                 void main();
34         };
35
36         Msp::FS::Path src;
37         Msp::FS::Path dest;
38
39 public:
40         Copy(Builder &, const Package &, const Msp::FS::Path &, const Msp::FS::Path &);
41 };
42
43 #endif