]> git.tdb.fi Git - builder.git/blobdiff - source/tar.h
Add class InternalAction for actions that use a thread to do their work
[builder.git] / source / tar.h
index 137a7ee00969af8bcaa78307e614ee511fa0b63b..d81d31bae195beb4ffd925a119cb14862a236a41 100644 (file)
@@ -9,29 +9,22 @@ Distributed under the LGPL
 #define TAR_H_
 
 #include <msp/core/thread.h>
-#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 +32,6 @@ private:
 
        const TarBall &tarball;
        StringList files;
-       Worker *worker;
 };
 
 #endif