| 123456789101112131415161718192021222324252627282930 |
- #ifndef __DATAFIFO_H__
- #define __DATAFIFO_H__
- #include <QObject>
- #include <QThread>
- class DataFifo : public QObject
- {
- Q_OBJECT
- public:
- explicit DataFifo(QObject *parent = nullptr);
- void start();
- void stop();
- private:
- QThread m_thread;
- bool m_isRunning;
- signals:
- void updateScreen(const QJsonObject &obj);
- private slots:
- void doWork();
- };
- #endif // DATAFIFO_H
|