44 lines
693 B
C++
44 lines
693 B
C++
#ifndef DIALOGSETPORT_H
|
|
#define DIALOGSETPORT_H
|
|
|
|
#include <QDialog>
|
|
#include <QString>
|
|
#include <QtSerialPort>
|
|
#include <QSerialPortInfo>
|
|
|
|
namespace Ui {
|
|
class DialogSetPort;
|
|
}
|
|
|
|
class DialogSetPort : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
QSerialPort mSerialPort;
|
|
|
|
explicit DialogSetPort(QWidget *parent = nullptr);
|
|
~DialogSetPort();
|
|
|
|
bool getSerialPortConfig();
|
|
|
|
private slots:
|
|
void on_cboxSerialPort_clicked();
|
|
|
|
void on_rbtnOpen_clicked(bool checked);
|
|
|
|
void on_buttonOK_clicked();
|
|
|
|
private:
|
|
Ui::DialogSetPort *ui;
|
|
|
|
|
|
QString mPortName;
|
|
QString mBaudRate;
|
|
QString mParity;
|
|
QString mDataBits;
|
|
QString mStopBits;
|
|
};
|
|
|
|
#endif // DIALOGSETPORT_H
|