]> git.tdb.fi Git - builder.git/blobdiff - source/externalaction.h
Replace per-file copyright notices with a single file
[builder.git] / source / externalaction.h
index 26dbbfa5fa2220386efc7eafb28a63ccd7c81da8..1f830c988313e1f569ddbd684726d66bd12c13e5 100644 (file)
@@ -1,10 +1,3 @@
-/* $Id$
-
-This file is part of builder
-Copyright © 2006-2007 Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
 #ifndef EXTERNALACTION_H_
 #define EXTERNALACTION_H_
 
@@ -18,16 +11,19 @@ Base class for Actions that want to execute an external program.
 */
 class ExternalAction: public Action
 {
-public:
-       int check();
 protected:
        StringList argv;
-       Msp::FS::Path  work_dir;
-       int        pid;
-       int        exit_code;
+       Msp::FS::Path work_dir;
+       int pid;
+       int exit_code;
        
        ExternalAction(Builder &b): Action(b), pid(0), exit_code(0) { }
+
+       /** Starts the external program.  Fill in argv before calling this. */
        void launch();
+
+public:
+       virtual int check();
 };
 
 #endif