Rev 348 | Blame | Last modification | View Log | Download | RSS feed
#ifndef SERIALCONTROLLER_H#define SERIALCONTROLLER_H#include "GlobalDefines.h"#include "SerialHelper.h"class SerialController : public QWidget{Q_OBJECTpublic:SerialController(QWidget *parent = 0);~SerialController();public slots:// Inbound from SerialHelpervoid Serial_UpdateParameters(QStringList ports, QStringList speeds, QStringList dataBits,QStringList stopBits, QStringList parity, QStringList flowControl);// Local GUI processingvoid Serial_ConnectToggleBtn(void);void Serial_LocalConnected(void);void Serial_LocalDisconnected(void);signals:// Outbound to SerialHelpervoid Serial_QueryParameters(void);void Serial_Connect(QString port, QString speed, QString dataBits,QString stopBits, QString parity, QString flowControl);void Serial_Disconnect(void);void Serial_TransmitString(QString string);void Serial_TransmitByteArray(QByteArray buffer);// Outbound to MainWindowvoid Serial_ReceivedByte(char byte);void Serial_Connected(void);void Serial_Disconnected(void);void UpdateStatus(QString string);private:SerialHelper *serialHelper;QThread *serialThread;QPushButton *btnSerialConnect;QPushButton *btnSerialRefresh;QLabel *labelSerialPort;QLabel *labelSerialSpeed;QLabel *labelSerialDataBits;QLabel *labelSerialStopBits;QLabel *labelSerialParity;QLabel *labelSerialFlowControl;QComboBox *cboxSerialPort;QComboBox *cboxSerialSpeed;QComboBox *cboxSerialDataBits;QComboBox *cboxSerialStopBits;QComboBox *cboxSerialParity;QComboBox *cboxSerialFlowControl;};#endif // SERIALCONTROLLER_H