]> git.tdb.fi Git - builder.git/blobdiff - source/externalaction.h
Migrate from msppath to mspfs
[builder.git] / source / externalaction.h
index 0d0924a966e049777f0afe02bd700d80e9d6e025..26dbbfa5fa2220386efc7eafb28a63ccd7c81da8 100644 (file)
@@ -1,18 +1,30 @@
+/* $Id$
+
+This file is part of builder
+Copyright © 2006-2007 Mikko Rasa, Mikkosoft Productions
+Distributed under the LGPL
+*/
+
 #ifndef EXTERNALACTION_H_
 #define EXTERNALACTION_H_
 
 #include <list>
 #include <string>
 #include "action.h"
+#include "misc.h"
 
+/**
+Base class for Actions that want to execute an external program.
+*/
 class ExternalAction: public Action
 {
 public:
        int check();
 protected:
-       std::list<std::string> argv;
-       int pid;
-       int exit_code;
+       StringList argv;
+       Msp::FS::Path  work_dir;
+       int        pid;
+       int        exit_code;
        
        ExternalAction(Builder &b): Action(b), pid(0), exit_code(0) { }
        void launch();