diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2017-12-03 22:23:08 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2017-12-04 12:19:26 +0100 |
commit | b256886a5cb9f2ae3ebda70a2045b19ed9f4233e (patch) | |
tree | 4fa1e46de224cf834a05824dc1eb86001bdb3300 /tracker-s2bot | |
parent | e89709a801e7874bc02c66848c638c6a0ccc85c1 (diff) |
api: add status check for modules
Diffstat (limited to 'tracker-s2bot')
-rw-r--r-- | tracker-s2bot/ftnoir_tracker_s2bot.cpp | 4 | ||||
-rw-r--r-- | tracker-s2bot/ftnoir_tracker_s2bot.h | 4 |
2 files changed, 5 insertions, 3 deletions
diff --git a/tracker-s2bot/ftnoir_tracker_s2bot.cpp b/tracker-s2bot/ftnoir_tracker_s2bot.cpp index 6621e605..8bd1f5db 100644 --- a/tracker-s2bot/ftnoir_tracker_s2bot.cpp +++ b/tracker-s2bot/ftnoir_tracker_s2bot.cpp @@ -85,11 +85,13 @@ void tracker_s2bot::run() { timer.stop(); } -void tracker_s2bot::start_tracker(QFrame*) +module_status tracker_s2bot::start_tracker(QFrame*) { start(); timer.moveToThread(this); m_nam->moveToThread(this); + + return status_ok(); } void tracker_s2bot::data(double *data) diff --git a/tracker-s2bot/ftnoir_tracker_s2bot.h b/tracker-s2bot/ftnoir_tracker_s2bot.h index d4d3fd2a..f0493284 100644 --- a/tracker-s2bot/ftnoir_tracker_s2bot.h +++ b/tracker-s2bot/ftnoir_tracker_s2bot.h @@ -30,12 +30,12 @@ struct settings : opts { {} }; -class tracker_s2bot : public ITracker, private QThread +class tracker_s2bot : public ITracker, private virtual QThread { public: tracker_s2bot(); ~tracker_s2bot() override; - void start_tracker(QFrame *) override; + module_status start_tracker(QFrame *) override; void data(double *data) override; protected: void run() override; |