forked from pkaselj/CAN_PacketSniffer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathserialportsettings.h
42 lines (30 loc) · 851 Bytes
/
serialportsettings.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#ifndef SERIALPORTSETTINGS_H
#define SERIALPORTSETTINGS_H
#include <QDialog>
#include <SerialReader.h>
#include <QComboBox>
namespace Ui {
class SerialPortSettings;
}
class SerialPortSettings : public QDialog
{
Q_OBJECT
public:
explicit SerialPortSettings(QWidget *parent = nullptr);
~SerialPortSettings();
signals:
void SerialPortSettingsChanged(SerialPortConnectionInfo connectionInfo);
private slots:
void on_buttonBox_accepted();
private:
Ui::SerialPortSettings *ui;
QComboBox* pMenuBaudRate;
QComboBox* pMenuSerialPorts;
QList<QSerialPortInfo> m_availablePorts;
QList<qint32> m_availableBaudRates;
void displayAvailablePorts();
void displayAvailableBaudRates();
void setDefault_BaudRate_9600();
int findSerialPortInfoByName(QString& portName);
};
#endif // SERIALPORTSETTINGS_H