]> git.tdb.fi Git - builder.git/blob - source/externalaction.h
c9c3bf53b08cd2320f7440d28023385019924f2e
[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         int        pid;
26         int        exit_code;
27         
28         ExternalAction(Builder &b): Action(b), pid(0), exit_code(0) { }
29         void launch();
30 };
31
32 #endif