OnlinePollerThread now works as intended
[irwi] / src / onlinepollerthread.h
index 11c1fe6..2bdbfb9 100644 (file)
@@ -7,11 +7,20 @@ class OnlinePollerThread : public QThread
 {
     Q_OBJECT
 public:
-    //overrides QThread::run()
-    void run();
+    OnlinePollerThread();
+    ~OnlinePollerThread();
+    void stop();
 
 signals:
     void online();
+
+protected:
+    //overrides QThread::run()
+    void run();
+
+private:
+    bool m_running;
+    bool m_exiting;
 };
 
 #endif //ONLINEPOLLERTHREAD_H