summaryrefslogtreecommitdiffstats
path: root/src/serialport/qserialport_win_p.h
diff options
context:
space:
mode:
authorDenis Shienkov <denis.shienkov@gmail.com>2013-02-05 05:22:45 +0000
committerDenis Shienkov <denis.shienkov@gmail.com>2013-02-05 18:30:53 +0100
commitb412c0e0e90945b041dfd4615ae92fb95c67d000 (patch)
tree92b201d619c042c2b91d870154f8edeea7401b92 /src/serialport/qserialport_win_p.h
parent7a21332e69bc0ea25d885333ca16e987437db0b1 (diff)
Introduce new I/O errors and enhanced it implementation
Instead of a single I/O error type IoError introduced new errors WriteError, ReadError and ResourceError. WriteError - occurs when a write operation is failed. ReadError - occurs when a read operation is failed. ResourceError - is a critical error. Occur when the operation is the I/O in a non-existent or invalid device handle. Also, this error indicates the sudden removal of the device from the system, for example, when pulled out already open USB/Serial converter. When an ResourceError occurs the user must close the device by close() method, otherwise it will lead to an infinite trigger a I/O notifiers (at least on *nix platform). Checked on Windows and Linux with USB/Serial PL2303 converter. Change-Id: I911fcb0072e194ea449a8a2db9115266ad40e74e Reviewed-by: Laszlo Papp <lpapp@kde.org> Reviewed-by: Sergey Belyashov <Sergey.Belyashov@gmail.com> Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
Diffstat (limited to 'src/serialport/qserialport_win_p.h')
-rw-r--r--src/serialport/qserialport_win_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/serialport/qserialport_win_p.h b/src/serialport/qserialport_win_p.h
index 9fa99970..570a6c3b 100644
--- a/src/serialport/qserialport_win_p.h
+++ b/src/serialport/qserialport_win_p.h
@@ -98,7 +98,7 @@ public:
bool setFlowControl(QSerialPort::FlowControl flowControl);
bool setDataErrorPolicy(QSerialPort::DataErrorPolicy policy);
- bool processIoErrors();
+ bool processIoErrors(bool error);
#ifndef Q_OS_WINCE
bool startAsyncRead();
bool startAsyncWrite(int maxSize = INT_MAX);