]> git.tdb.fi Git - builder.git/blobdiff - source/externaltask.h
Big rewrite for a more tool-centric approach
[builder.git] / source / externaltask.h
diff --git a/source/externaltask.h b/source/externaltask.h
new file mode 100644 (file)
index 0000000..1701313
--- /dev/null
@@ -0,0 +1,21 @@
+#ifndef EXTERNALTASK_H_
+#define EXTERNALTASK_H_
+
+#include <string>
+#include <vector>
+#include <msp/fs/path.h>
+#include "task.h"
+
+class ExternalTask: public Task
+{
+private:
+       int pid;
+       int exit_code;
+
+public:
+       ExternalTask(const std::vector<std::string> &, const Msp::FS::Path &);
+
+       virtual Status check();
+};
+
+#endif