diff options
author | Laszlo Papp <lpapp@kde.org> | 2013-10-05 19:14:34 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-10-06 07:53:04 +0200 |
commit | 2e237466d3f3e1f2d41be681364b76fe82b7886a (patch) | |
tree | 9aa4bc9e56f095a4f2ac2ca73882e3f2ec38b6ae /src/serialport/qserialport.h | |
parent | fbab2a56152c3ef31c7b26a8bf18420ed63fe65a (diff) |
Add an "UnknownSignal" value for the pinout signals
This needs to be added to the API because there are situations where the serial
line state is unknown. The two typical use cases are:
1) The syscall cannot retrieve the state for some reason.
2) The serial port is not open.
This has been (only build!) tested on Linux (Arch) with Qt 4 and then 5.
Change-Id: I471a68b2e335b54d9a94071f08b1b31a6fb0056a
Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
Diffstat (limited to 'src/serialport/qserialport.h')
-rw-r--r-- | src/serialport/qserialport.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/serialport/qserialport.h b/src/serialport/qserialport.h index 81a39fb3..e1734459 100644 --- a/src/serialport/qserialport.h +++ b/src/serialport/qserialport.h @@ -140,7 +140,8 @@ public: RequestToSendSignal = 0x40, ClearToSendSignal = 0x80, SecondaryTransmittedDataSignal = 0x100, - SecondaryReceivedDataSignal = 0x200 + SecondaryReceivedDataSignal = 0x200, + UnknownSignal = -1 }; Q_DECLARE_FLAGS(PinoutSignals, PinoutSignal) |