]> git.tdb.fi Git - builder.git/blob - source/externalaction.h
Use package directory as work dir for ExternalActions and make filename arguments...
[builder.git] / source / externalaction.h
1 /* $Id$
2
3 This file is part of builder
4 Copyright © 2006-2007 Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
6 */
7
8 #ifndef EXTERNALACTION_H_
9 #define EXTERNALACTION_H_
10
11 #include <list>
12 #include <string>
13 #include "action.h"
14 #include "misc.h"
15
16 /**
17 Base class for Actions that want to execute an external program.
18 */
19 class ExternalAction: public Action
20 {
21 public:
22         int check();
23 protected:
24         StringList argv;
25         Msp::Path  work_dir;
26         int        pid;
27         int        exit_code;
28         
29         ExternalAction(Builder &b): Action(b), pid(0), exit_code(0) { }
30         void launch();
31 };
32
33 #endif