Roomba App  1.0
frameThread.hh
Go to the documentation of this file.
1 
12 #ifndef FRAMETHREAD_HH
13 #define FRAMETHREAD_HH
14 
15 #include <QThread>
16 
17 #include "communication.hh"
18 
22 class FrameThread : public QThread
23 {
24  Q_OBJECT
25 
30 
31  public:
37  FrameThread(Communication* communication = nullptr, QObject* parent = nullptr);
38 
42  void run() override;
43 
44  signals:
49  void info(const QString& info);
50 
55  void error(const QString& error);
56 };
57 
58 #endif // FRAMETHREAD_HH
The Communication class.
The FrameThread class.
Definition: frameThread.hh:23
void run() override
Start thread with all functionality.
Definition: frameThread.cpp:23
FrameThread(Communication *communication=nullptr, QObject *parent=nullptr)
Construct new FrameThread object.
Definition: frameThread.cpp:18
Communication * _communication
Communication class handle;.
Definition: frameThread.hh:29
void info(const QString &info)
Signal to be emmited to add information to logs.
void error(const QString &error)
Signal to be emmited when some error occured when running thread.
Header file for Communication class.