]> git.tdb.fi Git - builder.git/blobdiff - source/task.h
Comments and member ordering
[builder.git] / source / task.h
index d2cf5a4ccec91b78e051b8cca8577ba9762f6dc6..1f59473fd14f135da7933d18993f4936458e2e1c 100644 (file)
@@ -1,8 +1,13 @@
 #ifndef TASK_H_
 #define TASK_H_
 
+#include <string>
 #include <sigc++/signal.h>
 
+/**
+Tasks are used to manage other programs and worker threads involved in the
+build process.  They are run asynchronously.
+*/
 class Task
 {
 public:
@@ -20,6 +25,8 @@ protected:
 public:
        virtual ~Task() { }
 
+       virtual std::string get_command() const = 0;
+       virtual void start() = 0;
        virtual Status check() = 0;
 };