]> git.tdb.fi Git - builder.git/blobdiff - source/install.h
Builder can build itself now.
[builder.git] / source / install.h
diff --git a/source/install.h b/source/install.h
new file mode 100644 (file)
index 0000000..3c179c6
--- /dev/null
@@ -0,0 +1,29 @@
+#ifndef INSTALL_H_
+#define INSTALL_H_
+
+#include <msp/core/thread.h>
+#include <msp/path/path.h>
+#include "action.h"
+
+class Install: public Action
+{
+public:
+       Install(const Msp::Path::Path &, const Msp::Path::Path &);
+private:
+       class Worker: public Msp::Thread
+       {
+       public:
+               Worker(Install &i): install(i), done(false) { launch(); }
+       private:
+               Install &install;
+               bool done;
+
+               void main();
+       };
+
+       Msp::Path::Path src;
+       Msp::Path::Path dest;
+       Worker worker;
+};
+
+#endif