]> git.tdb.fi Git - builder.git/blob - source/tar.h
Add class InternalAction for actions that use a thread to do their work
[builder.git] / source / tar.h
1 /* $Id$
2
3 This file is part of builder
4 Copyright © 2007 Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
6 */
7
8 #ifndef TAR_H_
9 #define TAR_H_
10
11 #include <msp/core/thread.h>
12 #include "internalaction.h"
13 #include "misc.h"
14
15 class TarBall;
16
17 class Tar: public InternalAction
18 {
19 public:
20         Tar(Builder &, const TarBall &);
21 private:
22         class Worker: public InternalAction::Worker
23         {
24         public:
25                 Worker(Tar &);
26         private:
27                 Tar &tar;
28
29                 void main();
30                 void store_number(char *, unsigned, unsigned);
31         };
32
33         const TarBall &tarball;
34         StringList files;
35 };
36
37 #endif