The SerialPortInfo class provides information about existing serial ports. More...
#include <SerialPortInfo>This class was introduced in SerialPort 5.0.
| SerialPortInfo () | |
| SerialPortInfo ( const SerialPortInfo & other ) | |
| SerialPortInfo ( const SerialPort & port ) | |
| SerialPortInfo ( const QString & name ) | |
| ~SerialPortInfo () | |
| QString | description () const |
| bool | isBusy () const |
| bool | isNull () const |
| bool | isValid () const |
| QString | manufacturer () const |
| QString | portName () const |
| QString | productIdentifier () const |
| void | swap ( SerialPortInfo & other ) |
| QString | systemLocation () const |
| QString | vendorIdentifier () const |
| SerialPortInfo & | operator= ( const SerialPortInfo & other ) |
| QList<SerialPortInfo> | availablePorts () |
| QList<qint32> | standardRates () |
The SerialPortInfo class provides information about existing serial ports.
Use the static functions to generate a list of SerialPortInfo objects. Each SerialPortInfo object in the list represents a single serial port and can be queried for the port name, system location, description, and manufacturer. The SerialPortInfo class can also be used as an input parameter for the setPort() method of the SerialPort class.
See also SerialPort.
Constructs an empty SerialPortInfo object.
See also isNull().
Constructs a copy of other.
Constructs a SerialPortInfo object from serial port.
Constructs a SerialPortInfo object from serial port name.
This constructor finds the relevant serial port among the available ones according to the port name name, and constructs the serial port info instance for that port.
Destroys the SerialPortInfo object. References to the values in the object become invalid.
Returns a list of available serial ports on the system.
Returns the description string of the serial port, if available; otherwise returns an empty string.
Returns true if serial port is busy; otherwise returns false.
Returns whether this SerialPortInfo object holds a serial port definition.
Returns true if serial port is present on system; otherwise returns false.
Returns the manufacturer string of the serial port, if available; otherwise returns an empty string.
Returns the name of the serial port.
Returns the product identifier string of the serial port in hexadecimal format, if available; otherwise returns an empty string.
Returns a list of available standard baud rates supported by the current serial port.
Swaps SerialPortInfo other with this SerialPortInfo. This operation is very fast and never fails.
Returns the system location of the serial port.
Returns the vendor identifier string of the serial port in hexadecimal format, if available; otherwise returns an empty string.
Sets the SerialPortInfo object to be equal to other.