diff options
author | Laszlo Papp <lpapp@kde.org> | 2013-02-21 22:46:19 +0000 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-02-23 09:31:59 +0100 |
commit | 8dc40a0a9ce84ef8e3e35437f5f4626fcbcde625 (patch) | |
tree | d433d23964d57e90a3430b11fc0523aa41412870 /src/serialport/qserialport.h | |
parent | 49e7ecd714ef9c6c176a234aedcaa941dc8b9888 (diff) |
Assign a new method name for the port name setting API
* This is more intuitive as it is not setting the port with all its settings
like baud rate, flow control, stop bits, parity, and so forth, but only the port
name.
* This will allow in upcoming change to establish a property for the port name
along with a port name changed signal to be useful from different threads, QML,
and so forth.
* Clean up the documentation not to provide internal information to the end
users, and also make the text a bit more concise and better readable.
* Examples are also changed accordingly, to use the new API.
Change-Id: Idbaa8ee2dee17c63fc0278f687ccc231c5ab670f
Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
Diffstat (limited to 'src/serialport/qserialport.h')
-rw-r--r-- | src/serialport/qserialport.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/serialport/qserialport.h b/src/serialport/qserialport.h index 213aba9a..aa87eba9 100644 --- a/src/serialport/qserialport.h +++ b/src/serialport/qserialport.h @@ -164,10 +164,11 @@ public: explicit QSerialPort(const QSerialPortInfo &info, QObject *parent = 0); virtual ~QSerialPort(); - void setPort(const QString &port); - void setPort(const QSerialPortInfo &info); + void setPortName(const QString &name); QString portName() const; + void setPort(const QSerialPortInfo &info); + virtual bool open(OpenMode mode); virtual void close(); |