X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ftask.h;h=183deee40e5c8d0b6b3b60455a2e3f14e933fdb5;hb=HEAD;hp=1f59473fd14f135da7933d18993f4936458e2e1c;hpb=0368a9c1972ff5fd6cd8984901ff0bdbd86afc9f;p=builder.git diff --git a/source/task.h b/source/task.h deleted file mode 100644 index 1f59473..0000000 --- a/source/task.h +++ /dev/null @@ -1,33 +0,0 @@ -#ifndef TASK_H_ -#define TASK_H_ - -#include -#include - -/** -Tasks are used to manage other programs and worker threads involved in the -build process. They are run asynchronously. -*/ -class Task -{ -public: - enum Status - { - RUNNING, - SUCCESS, - ERROR - }; - - sigc::signal signal_finished; - -protected: - Task() { } -public: - virtual ~Task() { } - - virtual std::string get_command() const = 0; - virtual void start() = 0; - virtual Status check() = 0; -}; - -#endif