diff --git a/portcontrol.h b/portcontrol.h --- a/portcontrol.h +++ b/portcontrol.h @@ -23,6 +23,7 @@ #include #include #include +#include namespace Ui { class PortControl; @@ -46,6 +47,9 @@ private: QButtonGroup stopBitsButtons; QButtonGroup flowControlButtons; + QStringList discoveredPorts; // list of port names returned by availablePorts + QStringList userEnteredPorts; // list of port names entered by user + public slots: void loadPortList(); void loadBaudRateList(); @@ -59,6 +63,9 @@ public slots: void selectStopBits(int stopBits); // stopBits must be one of QSerialPort::StopBits void selectFlowControl(int flowControl); // flowControl must be one of QSerialPort::FlowControl +private slots: + void onPortNameChanged(QString portName); + signals: void skipByteRequested(); void portToggled(bool open);