|  | SynchroTime
    | 
#include <serialportsettings.h>


| Signals | |
| void | paramChanged (void) | 
| void | pathChanged (void) | 
| Public Member Functions | |
| Settings (QObject *parent=0) | |
| Settings::Settings.  More... | |
| ~Settings () | |
| Settings::~Settings.  More... | |
| QString | param (void) const | 
| Settings::param.  More... | |
| QString | path (void) const | 
| void | setParam (const QString ¶m) | 
| Settings::setParam.  More... | |
| void | setPath (const QString &path) | 
| Settings::setPath.  More... | |
| QString | pathToLog (void) const | 
| Settings::pathToLog.  More... | |
| QString | portName (void) const | 
| Settings::portName.  More... | |
| void | setPortName (const QString &port) | 
| Settings::setPortName.  More... | |
| qint32 | portBaudRate (void) const | 
| Settings::portBaudRate.  More... | |
| void | setBaudRate (const qint32 baudRate) | 
| Settings::setBaudRate.  More... | |
| Public Attributes | |
| QString | name | 
| The name of the serial port.  More... | |
| qint32 | baudRate | 
| The data baud rate for the serial port.  More... | |
| QString | stringBaudRate | 
| The data baud rate for the UI.  More... | |
| QSerialPort::DataBits | dataBits | 
| This property holds the data bits in a frame.  More... | |
| QString | stringDataBits | 
| description of the parameter data bits in a frame.  More... | |
| QSerialPort::Parity | parity | 
| This property holds the parity checking mode.  More... | |
| QString | stringParity | 
| description of the parameter parity checking mode.  More... | |
| QSerialPort::StopBits | stopBits | 
| This property holds the number of stop bits in a frame.  More... | |
| QString | stringStopBits | 
| description of the parameter number of stop bits in a frame.  More... | |
| QSerialPort::FlowControl | flowControl | 
| This property holds the desired flow control mode.  More... | |
| QString | stringFlowControl | 
| description of the parameter flow control mode.  More... | |
| float | correctionFactor | 
| Additional parameter: Correction factor between frequency deviation and Aging register value.  More... | |
| int | requestRate | 
| Additional parameter: The interval, in milliseconds, between requests for device status.  More... | |
| bool | statusControlEnabled | 
| Additional parameter: This is a flag that allows periodic requests for device status.  More... | |
| bool | accessRateEnabled | 
| Additional parameter: This is a flag that allows determining access rate via the serial interface.  More... | |
| bool | localEchoEnabled | 
| Additional parameter: This is a flag that allows console input.  More... | |
| bool | isChanged = false | 
| This is a flag to save changes to the serial port parameters.  More... | |
| Properties | |
| QString | param | 
| QString | path | 
| Settings::path.  More... | |
| Private Member Functions | |
| void | readSettings (void) | 
| The function reads the parameters necessary for the user interface that were saved in the previous session.  More... | |
| void | writeSettings (void) const | 
| The function saves the user interface parameters that have been changed by the user in the current session.  More... | |
| Private Attributes | |
| QString | m_param | 
| QString | m_path | 
| bool | m_enableLog | 
| QString | m_pathToLog | 
| quint32 | m_maxSizeLog | 
| QString | m_portName | 
| qint32 | m_baudRate | 
The Settings class.
The Settings structure and new type Settings_t.
The structure contains specific fields for storing Serial Port / UART settings. This structure is necessary for storing user settings of the Serial Port / UART.
| 
 | explicit | 
| Settings::~Settings | ( | ) | 
| QString Settings::param | ( | void | ) | const | 
References m_param, m_path, and path().
Referenced by setParam().


| 
 | signal | 
| QString Settings::path | ( | void | ) | const | 
| 
 | signal | 
| QString Settings::pathToLog | ( | void | ) | const | 
References m_pathToLog.
Referenced by readSettings().

| qint32 Settings::portBaudRate | ( | void | ) | const | 
| QString Settings::portName | ( | void | ) | const | 
References m_portName.
Referenced by readSettings().

| 
 | private | 
The function reads the parameters necessary for the user interface that were saved in the previous session.
Such important parameters will be read as
References baudRate, m_baudRate, m_enableLog, m_maxSizeLog, m_pathToLog, m_portName, pathToLog(), and portName().
Referenced by Settings().


| void Settings::setBaudRate | ( | const qint32 | baudRate | ) | 
| void Settings::setParam | ( | const QString & | param | ) | 
| void Settings::setPath | ( | const QString & | path | ) | 
| void Settings::setPortName | ( | const QString & | port | ) | 
| 
 | private | 
The function saves the user interface parameters that have been changed by the user in the current session.
Such parameters will be updated as
References m_baudRate, m_enableLog, m_maxSizeLog, m_pathToLog, and m_portName.
Referenced by ~Settings().

| bool Settings::accessRateEnabled | 
Additional parameter: This is a flag that allows determining access rate via the serial interface.
Referenced by SettingsDialog::fillSettingsUi(), MainWindow::putRate(), MainWindow::readSettings(), SettingsDialog::updateSettings(), and MainWindow::writeSettings().
| qint32 Settings::baudRate | 
The data baud rate for the serial port.
Referenced by SettingsDialog::fillSettingsUi(), readSettings(), MainWindow::readSettings(), RTC::RTC(), setBaudRate(), SettingsDialog::updateSettings(), and MainWindow::writeSettings().
| float Settings::correctionFactor | 
Additional parameter: Correction factor between frequency deviation and Aging register value.
Referenced by SettingsDialog::fillSettingsUi(), MainWindow::readSettings(), SettingsDialog::updateSettings(), and MainWindow::writeSettings().
| QSerialPort::DataBits Settings::dataBits | 
This property holds the data bits in a frame.
Referenced by RTC::RTC(), and SettingsDialog::updateSettings().
| QSerialPort::FlowControl Settings::flowControl | 
This property holds the desired flow control mode.
Referenced by RTC::RTC(), and SettingsDialog::updateSettings().
| bool Settings::isChanged = false | 
This is a flag to save changes to the serial port parameters.
Referenced by SettingsDialog::apply(), and MainWindow::writeSettings().
| bool Settings::localEchoEnabled | 
Additional parameter: This is a flag that allows console input.
| 
 | private | 
Referenced by portBaudRate(), readSettings(), setBaudRate(), and writeSettings().
| 
 | private | 
Referenced by readSettings(), and writeSettings().
| 
 | private | 
Referenced by readSettings(), and writeSettings().
| 
 | private | 
Referenced by param(), and setParam().
| 
 | private | 
Referenced by pathToLog(), readSettings(), and writeSettings().
| 
 | private | 
Referenced by portName(), readSettings(), setPortName(), and writeSettings().
| QString Settings::name | 
The name of the serial port.
Referenced by SettingsDialog::fillSettingsUi(), MainWindow::readSettings(), RTC::RTC(), SettingsDialog::updateSettings(), and MainWindow::writeSettings().
| QSerialPort::Parity Settings::parity | 
This property holds the parity checking mode.
Referenced by RTC::RTC(), and SettingsDialog::updateSettings().
| int Settings::requestRate | 
Additional parameter: The interval, in milliseconds, between requests for device status.
Referenced by SettingsDialog::fillSettingsUi(), MainWindow::readSettings(), RTC::RTC(), SettingsDialog::updateSettings(), and MainWindow::writeSettings().
| bool Settings::statusControlEnabled | 
Additional parameter: This is a flag that allows periodic requests for device status.
Referenced by SettingsDialog::fillSettingsUi(), MainWindow::readSettings(), RTC::RTC(), SettingsDialog::updateSettings(), and MainWindow::writeSettings().
| QSerialPort::StopBits Settings::stopBits | 
This property holds the number of stop bits in a frame.
Referenced by RTC::RTC(), and SettingsDialog::updateSettings().
| QString Settings::stringBaudRate | 
The data baud rate for the UI.
Referenced by SettingsDialog::fillSettingsUi(), MainWindow::readSettings(), and SettingsDialog::updateSettings().
| QString Settings::stringDataBits | 
description of the parameter data bits in a frame.
Referenced by SettingsDialog::fillSettingsUi(), MainWindow::readSettings(), SettingsDialog::updateSettings(), and MainWindow::writeSettings().
| QString Settings::stringFlowControl | 
description of the parameter flow control mode.
Referenced by SettingsDialog::fillSettingsUi(), MainWindow::readSettings(), SettingsDialog::updateSettings(), and MainWindow::writeSettings().
| QString Settings::stringParity | 
description of the parameter parity checking mode.
Referenced by SettingsDialog::fillSettingsUi(), MainWindow::readSettings(), SettingsDialog::updateSettings(), and MainWindow::writeSettings().
| QString Settings::stringStopBits | 
description of the parameter number of stop bits in a frame.
Referenced by SettingsDialog::fillSettingsUi(), MainWindow::readSettings(), SettingsDialog::updateSettings(), and MainWindow::writeSettings().
| 
 | readwrite | 
| 
 | readwrite | 
 1.8.11
 1.8.11