aboutsummaryrefslogtreecommitdiffstats
path: root/gui/ice40/worker.h
diff options
context:
space:
mode:
authorMiodrag Milanovic <mmicko@gmail.com>2018-06-21 17:44:18 +0200
committerMiodrag Milanovic <mmicko@gmail.com>2018-06-21 17:44:18 +0200
commit54549d36e911aac8d0b0a2eea6074654c06c9717 (patch)
treebacd09c5c7637ed7ffc918f222b2ce50fef9d73d /gui/ice40/worker.h
parentfcfb85e9dc7cc4a858c938692a8612cef3c9538b (diff)
downloadnextpnr-54549d36e911aac8d0b0a2eea6074654c06c9717.tar.gz
nextpnr-54549d36e911aac8d0b0a2eea6074654c06c9717.tar.bz2
nextpnr-54549d36e911aac8d0b0a2eea6074654c06c9717.zip
log_error now trows exception, main is covering catch
Diffstat (limited to 'gui/ice40/worker.h')
-rw-r--r--gui/ice40/worker.h18
1 files changed, 10 insertions, 8 deletions
diff --git a/gui/ice40/worker.h b/gui/ice40/worker.h
index 5dc25d89..12d740dd 100644
--- a/gui/ice40/worker.h
+++ b/gui/ice40/worker.h
@@ -1,8 +1,8 @@
#ifndef WORKER_H
#define WORKER_H
-#include "nextpnr.h"
#include <QThread>
+#include "nextpnr.h"
// FIXME
USING_NEXTPNR_NAMESPACE
@@ -10,13 +10,14 @@ USING_NEXTPNR_NAMESPACE
class Worker : public QObject
{
Q_OBJECT
-public:
+ public:
Worker(Context *ctx);
-public Q_SLOTS:
+ public Q_SLOTS:
void parsejson(const std::string &filename);
-Q_SIGNALS:
+ Q_SIGNALS:
void log(const std::string &text);
-private:
+
+ private:
Context *ctx;
};
@@ -24,12 +25,13 @@ class TaskManager : public QObject
{
Q_OBJECT
QThread workerThread;
-public:
+
+ public:
TaskManager(Context *ctx);
~TaskManager();
-public Q_SLOTS:
+ public Q_SLOTS:
void info(const std::string &text);
-Q_SIGNALS:
+ Q_SIGNALS:
void parsejson(const std::string &);
void log(const std::string &text);
};