Relay dialog hooked up
This commit is contained in:
@ -11,17 +11,22 @@
|
||||
#include <QScopedPointer>
|
||||
#include <QEventLoop>
|
||||
#include <QTimer>
|
||||
#include <vector>
|
||||
|
||||
class Microcontroller: public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
private:
|
||||
|
||||
std::vector<bool> _relayStates; //ugh vector of bools
|
||||
QIODevice* _port = nullptr;
|
||||
|
||||
QScopedPointer<QEventLoop> loop;
|
||||
QString _buffer;
|
||||
|
||||
void processMicroReturn();
|
||||
void getState();
|
||||
|
||||
public:
|
||||
Microcontroller(QIODevice* port);
|
||||
Microcontroller();
|
||||
@ -45,6 +50,7 @@ public slots:
|
||||
|
||||
signals:
|
||||
void textRecived(const QString string);
|
||||
void relayStateChanged(std::vector<bool> relayStates);
|
||||
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user