X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ftar.h;h=63652bb544b78d17630c59fece0005487ca96495;hb=f4a10e1dc189f28367eafe3b91723d275928ced7;hp=137a7ee00969af8bcaa78307e614ee511fa0b63b;hpb=555190f7eafcf3a67750fc63872b23e17371aa98;p=builder.git diff --git a/source/tar.h b/source/tar.h index 137a7ee..63652bb 100644 --- a/source/tar.h +++ b/source/tar.h @@ -1,7 +1,7 @@ /* $Id$ This file is part of builder -Copyright © 2007 Mikko Rasa, Mikkosoft Productions +Copyright © 2007, 2009 Mikko Rasa, Mikkosoft Productions Distributed under the LGPL */ @@ -9,29 +9,20 @@ Distributed under the LGPL #define TAR_H_ #include -#include "action.h" +#include "internalaction.h" #include "misc.h" class TarBall; -class Tar: public Action +class Tar: public InternalAction { -public: - Tar(Builder &, const TarBall &); - ~Tar(); - - virtual int check(); private: - class Worker: public Msp::Thread + class Worker: public InternalAction::Worker { public: Worker(Tar &); - bool get_done() const { return done; } - bool get_error() const { return error; } private: Tar &tar; - bool done; - bool error; void main(); void store_number(char *, unsigned, unsigned); @@ -39,7 +30,9 @@ private: const TarBall &tarball; StringList files; - Worker *worker; + +public: + Tar(Builder &, const TarBall &); }; #endif