X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fexternalaction.h;h=c9c3bf53b08cd2320f7440d28023385019924f2e;hb=ab25857fd626152bc9a2832de82b400c062857e6;hp=52eed37e5da12857725d19b128b2f2869dc5cb27;hpb=59ac0a44d6edf179c01604c6ced744873213f855;p=builder.git diff --git a/source/externalaction.h b/source/externalaction.h index 52eed37..c9c3bf5 100644 --- a/source/externalaction.h +++ b/source/externalaction.h @@ -1,19 +1,31 @@ +/* $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; + StringList argv; + int pid; + int exit_code; - ExternalAction(Builder &b): Action(b) { } + ExternalAction(Builder &b): Action(b), pid(0), exit_code(0) { } void launch(); };