]> git.tdb.fi Git - builder.git/blob - source/copy.h
Adapt to changes in msppath
[builder.git] / source / copy.h
1 /* $Id$
2
3 This file is part of builder
4 Copyright © 2006-2007 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/path/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 public:
23         Copy(Builder &, const Package &, const Msp::Path &, const Msp::Path &);
24 private:
25         /**
26         A worker thread that actually does the data transfer.
27         */
28         class Worker: public InternalAction::Worker
29         {
30         public:
31                 Worker(Copy &);
32         private:
33                 Copy &copy;
34
35                 void main();
36         };
37
38         Msp::Path src;
39         Msp::Path dest;
40 };
41
42 #endif