diff --git a/src/portcontrol.h b/src/portcontrol.h --- a/src/portcontrol.h +++ b/src/portcontrol.h @@ -1,5 +1,5 @@ /* - Copyright © 2015 Hasan Yavuz Özderya + Copyright © 2016 Hasan Yavuz Özderya This file is part of serialplot. @@ -27,6 +27,7 @@ #include #include #include +#include #include "portlist.h" @@ -43,8 +44,12 @@ public: ~PortControl(); QSerialPort* serialPort; + QToolBar* toolBar(); - QToolBar* toolBar(); + /// Stores port settings into a `QSettings` + void saveSettings(QSettings* settings); + /// Loads port settings from a `QSettings` + void loadSettings(QSettings* settings); private: Ui::PortControl *ui; @@ -60,6 +65,9 @@ private: QComboBox tbPortList; PortList portList; + /// Returns the currently selected (entered) "portName" in the UI + QString selectedPortName(); + public slots: void loadPortList(); void loadBaudRateList();