]> git.tdb.fi Git - builder.git/blob - source/internalaction.h
Reorder class members
[builder.git] / source / internalaction.h
1 /* $Id$
2
3 This file is part of builder
4 Copyright © 2007, 2009  Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
6 */
7
8 #ifndef INTERNALACTION_H_
9 #define INTERNALACTION_H_
10
11 #include <msp/core/thread.h>
12 #include "action.h"
13
14 class InternalAction: public Action
15 {
16 protected:
17         class Worker: public Msp::Thread
18         {
19         public:
20                 bool get_done() const { return done; }
21                 bool get_error() const { return error; }
22         protected:
23                 bool done;
24                 bool error;
25
26                 Worker();
27         };
28
29         Worker *worker;
30
31         InternalAction(Builder &);
32 public:
33         virtual ~InternalAction();
34
35         virtual int check();
36 };
37
38 #endif