aboutsummaryrefslogtreecommitdiffstats
path: root/gui/ice40/worker.h
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2018-06-21 15:47:54 +0200
committerClifford Wolf <clifford@clifford.at>2018-06-21 15:47:54 +0200
commit417e67938c12be20a1c314d42386ede0ad8993a7 (patch)
treedf36dd3aad9296a5d47bbb9c397bfb2175b51124 /gui/ice40/worker.h
parenta29bfc788eba9f11f1e0cd3d62a32c3894cddf49 (diff)
parent097df1869d654b1214b925fe991aa09d2ef5b3cd (diff)
downloadnextpnr-417e67938c12be20a1c314d42386ede0ad8993a7.tar.gz
nextpnr-417e67938c12be20a1c314d42386ede0ad8993a7.tar.bz2
nextpnr-417e67938c12be20a1c314d42386ede0ad8993a7.zip
Merge branch 'master' of gitlab.com:SymbioticEDA/nextpnr
Diffstat (limited to 'gui/ice40/worker.h')
-rw-r--r--gui/ice40/worker.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/gui/ice40/worker.h b/gui/ice40/worker.h
new file mode 100644
index 00000000..5dc25d89
--- /dev/null
+++ b/gui/ice40/worker.h
@@ -0,0 +1,37 @@
+#ifndef WORKER_H
+#define WORKER_H
+
+#include "nextpnr.h"
+#include <QThread>
+
+// FIXME
+USING_NEXTPNR_NAMESPACE
+
+class Worker : public QObject
+{
+ Q_OBJECT
+public:
+ Worker(Context *ctx);
+public Q_SLOTS:
+ void parsejson(const std::string &filename);
+Q_SIGNALS:
+ void log(const std::string &text);
+private:
+ Context *ctx;
+};
+
+class TaskManager : public QObject
+{
+ Q_OBJECT
+ QThread workerThread;
+public:
+ TaskManager(Context *ctx);
+ ~TaskManager();
+public Q_SLOTS:
+ void info(const std::string &text);
+Q_SIGNALS:
+ void parsejson(const std::string &);
+ void log(const std::string &text);
+};
+
+#endif // WORKER_H