X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fexternalaction.h;h=26dbbfa5fa2220386efc7eafb28a63ccd7c81da8;hb=a2adbd9c0a8d7a7567848c4c6bdbf0de6ba32bb1;hp=0d0924a966e049777f0afe02bd700d80e9d6e025;hpb=f1c967215e6b08095bdf07518472beca3067ec37;p=builder.git diff --git a/source/externalaction.h b/source/externalaction.h index 0d0924a..26dbbfa 100644 --- a/source/externalaction.h +++ b/source/externalaction.h @@ -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 #include #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 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();