X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fexternalaction.h;h=6df268fd4c25e325fff5976da97ba9aab1f372c4;hb=699493ee7346c578537f4e310702c57012686c22;hp=2ab4ca0e00958432084771e25bbd383ed1ac0556;hpb=74266a6e650f019063cdcd1c9a7bd26d8f99041b;p=builder.git diff --git a/source/externalaction.h b/source/externalaction.h index 2ab4ca0..6df268f 100644 --- a/source/externalaction.h +++ b/source/externalaction.h @@ -1,3 +1,10 @@ +/* $Id$ + +This file is part of builder +Copyright © 2006-2009 Mikko Rasa, Mikkosoft Productions +Distributed under the LGPL +*/ + #ifndef EXTERNALACTION_H_ #define EXTERNALACTION_H_ @@ -11,15 +18,19 @@ Base class for Actions that want to execute an external program. */ class ExternalAction: public Action { -public: - int check(); protected: StringList argv; - 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