33#include "NDEVRSerialPort/Headers/DLLInfo.h"
34#include "HardwareWidgets/Headers/ConnectionDialog.h"
35#include "Base/Headers/String.h"
140 void fillPortsParameters();
144 void fillPortsInfo();
148 void updateSettings();
151 Ui::SerialSetupUI *ui =
nullptr;
153 QIntValidator *m_intValidator =
nullptr;
Used to, given a Connection, generate an appropriate ConnectionDialog to allow adjustment of paramete...
A virtual dialog that provides an interface that allows the user to adjust certain parameters for a C...
ConnectionDialog(QWidget *parent=nullptr)
Constructs a ConnectionDialog.
A standard interface for all types of connections that allow transmitting and receiving of data betwe...
virtual void clear() override
Clears all dialog fields and resets to defaults.
void checkCustomDevicePathPolicy(int idx)
Handles custom device path entry when the user selects the custom option.
void apply()
Applies the current dialog settings and closes the dialog.
virtual void setConnectionInfo(const ConnectionInfo &connection) override
Populates the dialog fields from the given connection information.
virtual bool handlesConnection(const ConnectionInfo &connection) override
Checks whether this dialog can handle the given connection type.
QSerialPort * createSerialPort() const
Creates and configures a new QSerialPort based on the current dialog settings.
virtual ConnectionInfo connectionInfo() const override
Returns connection information derived from the current dialog settings.
void showPortInfo(int idx)
Displays detailed port information for the selected port index.
SerialConnectionDialog(QWidget *parent=nullptr)
Constructs a SerialConnectionDialog.
void checkCustomBaudRatePolicy(int idx)
Handles custom baud rate entry when the user selects the custom option.
Settings settings() const
Returns the current serial port settings configured in the dialog.
void cancel()
Cancels changes and closes the dialog.
A ConnectionDialogFactory which enables the creation of a SerialConnectionDialog.
virtual ConnectionDialog * createConnectionDialog() const override
Creates a new SerialConnectionDialog instance.
virtual StringView icon() const override
Returns the icon name associated with serial port connections.
virtual TranslatedString title() const override
Returns the display title for this connection dialog type.
virtual bool handlesType(const StringView &connection) const override
Checks whether this factory handles the given connection type string.
The core String View class for the NDEVR API.
Any text displayed to the user should be defined as a TranslatedString which allows the program to lo...
The primary namespace for the NDEVR SDK.
A structure designed to store information about a specific Connection.
Stores the current serial port configuration parameters.
QSerialPort::FlowControl flowControl
The flow control mode.
QString stringBaudRate
The baud rate as a display string.
QString stringParity
The parity setting as a display string.
QString stringStopBits
The stop bits setting as a display string.
QSerialPort::Parity parity
The parity checking mode.
QString stringFlowControl
The flow control setting as a display string.
QSerialPort::StopBits stopBits
The number of stop bits per frame.
qint32 baudRate
The baud rate as a numeric value.
QString name
The serial port device name.
QString stringDataBits
The data bits setting as a display string.
QSerialPort::DataBits dataBits
The number of data bits per frame.