]> git.tdb.fi Git - builder.git/blob - source/internalaction.h
Replace per-file copyright notices with a single file
[builder.git] / source / internalaction.h
1 #ifndef INTERNALACTION_H_
2 #define INTERNALACTION_H_
3
4 #include <msp/core/thread.h>
5 #include "action.h"
6
7 class InternalAction: public Action
8 {
9 protected:
10         class Worker: public Msp::Thread
11         {
12         public:
13                 bool get_done() const { return done; }
14                 bool get_error() const { return error; }
15         protected:
16                 bool done;
17                 bool error;
18
19                 Worker();
20         };
21
22         Worker *worker;
23
24         InternalAction(Builder &);
25 public:
26         virtual ~InternalAction();
27
28         virtual int check();
29 };
30
31 #endif