]> git.tdb.fi Git - builder.git/blob - source/install.h
Builder can build itself now.
[builder.git] / source / install.h
1 #ifndef INSTALL_H_
2 #define INSTALL_H_
3
4 #include <msp/core/thread.h>
5 #include <msp/path/path.h>
6 #include "action.h"
7
8 class Install: public Action
9 {
10 public:
11         Install(const Msp::Path::Path &, const Msp::Path::Path &);
12 private:
13         class Worker: public Msp::Thread
14         {
15         public:
16                 Worker(Install &i): install(i), done(false) { launch(); }
17         private:
18                 Install &install;
19                 bool done;
20
21                 void main();
22         };
23
24         Msp::Path::Path src;
25         Msp::Path::Path dest;
26         Worker worker;
27 };
28
29 #endif