diff options
Diffstat (limited to 'tracker-tobii/thread.hpp')
-rw-r--r-- | tracker-tobii/thread.hpp | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/tracker-tobii/thread.hpp b/tracker-tobii/thread.hpp index a2838272..d311db87 100644 --- a/tracker-tobii/thread.hpp +++ b/tracker-tobii/thread.hpp @@ -14,12 +14,11 @@ class tobii_thread : public QThread Q_OBJECT void run() override; -signals: - void tobii_error_signal(QString error_message); - void tobii_ready_signal(); - public: - tobii_thread(); + tobii_thread() + { + head_pose = new tobii_head_pose_t(); + } ~tobii_thread() override; tobii_head_pose_t* head_pose; @@ -28,10 +27,9 @@ private: tobii_api_t* api; tobii_device_t* device; - const unsigned int retries = 300; - const unsigned int interval = 100; - std::atomic<bool> exit_thread = false; + static constexpr unsigned int retries = 300; + static constexpr unsigned int interval = 100; - void tobii_error_signal_impl(QString error_message); - void tobii_ready_signal_impl(); + QString error_last = ""; + std::atomic<bool> exit_thread = false; }; |