mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJClient.git
synced 2026-03-28 05:25:39 +03:00
Init commit
This commit is contained in:
24
Core/nonblockedinput.h
Normal file
24
Core/nonblockedinput.h
Normal file
@@ -0,0 +1,24 @@
|
||||
#ifndef NONBLOCKEDINPUT_H
|
||||
#define NONBLOCKEDINPUT_H
|
||||
|
||||
#include <QTextStream>
|
||||
#include <QDebug>
|
||||
#include <QThread>
|
||||
|
||||
class NonBlockedInput : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit NonBlockedInput(QObject* parent = nullptr);
|
||||
|
||||
private:
|
||||
QThread thread;
|
||||
|
||||
signals:
|
||||
void LineIsRead(QString line);
|
||||
private slots:
|
||||
void ReadLine();
|
||||
};
|
||||
|
||||
#endif // NONBLOCKEDINPUT_H
|
||||
Reference in New Issue
Block a user