Roomba App  1.0
frameThread.hh
Go to the documentation of this file.
1 
16 #ifndef FRAMETHREAD_HH
17 #define FRAMETHREAD_HH
18 
19 #include <QThread>
20 
21 #include "communication.hh"
22 
26 class FrameThread : public QThread
27 {
28  Q_OBJECT
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 
61  void setSerialStatus(const QString& message);
62 };
63 
64 #endif /* FRAMETHREAD_HH */
The class connecting main application and serial port.
Thread wrapper class for communicating with the serial device on a separate thread.
Definition: frameThread.hh:27
void run() override
Run main thread function.
Definition: frameThread.cpp:26
void setSerialStatus(const QString &message)
Signal emmitted to change connection status with the serial device on the status bar.
FrameThread(Communication *communication=nullptr, QObject *parent=nullptr)
Construct a new FrameThread object.
Definition: frameThread.cpp:21
Communication * _communication
Communication class handle.
Definition: frameThread.hh:29
void info(const QString &info)
Signal emmitted to add informations to logs.
void error(const QString &error)
Signal emmitted to add errors on the status bar.
Communication class declaration.