X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fexternalaction.h;h=1f830c988313e1f569ddbd684726d66bd12c13e5;hb=43bd25ffcb0b4f7882773f4676b209a99cb73c04;hp=232e0847c1770dd0c3dec2d586758e7cc080c6b7;hpb=4c11e2a041d2064f44b7eb3dbf1976c35fc8881c;p=builder.git diff --git a/source/externalaction.h b/source/externalaction.h index 232e084..1f830c9 100644 --- a/source/externalaction.h +++ b/source/externalaction.h @@ -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::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