summaryrefslogtreecommitdiff
path: root/src/serialport/serialport_win.cpp
diff options
context:
space:
mode:
authorDenis Shienkov <denis.shienkov@gmail.com>2013-01-12 22:18:33 +0400
committerDenis Shienkov <denis.shienkov@gmail.com>2013-01-12 20:17:28 +0100
commit95b32f65c36a1193e366f2baaa7c0e1ad78a2ce4 (patch)
treeeb024d3b667facbf263bc0ea79aac22a54debeba /src/serialport/serialport_win.cpp
parent8db85e5d9249ac4b7e3d2e4362e4e10c977a3943 (diff)
downloadqtserialport-95b32f65c36a1193e366f2baaa7c0e1ad78a2ce4.tar.gz
Added missed "Line" postfix
For Windows and Symbian implementation of lines() method added missed "Line" postfix for enumeration. sha1: I8552b30019298556b43b97ef9b4155d17aee3a0a Change-Id: I4751132e899f1ebeb742adb3ade48cc084dfa5d9 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/serialport_win.cpp')
-rw-r--r--src/serialport/serialport_win.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/serialport/serialport_win.cpp b/src/serialport/serialport_win.cpp
index c04d8fa..99ba610 100644
--- a/src/serialport/serialport_win.cpp
+++ b/src/serialport/serialport_win.cpp
@@ -299,13 +299,13 @@ SerialPort::Lines SerialPortPrivate::lines() const
return ret;
if (modemStat & MS_CTS_ON)
- ret |= SerialPort::Cts;
+ ret |= SerialPort::CtsLine;
if (modemStat & MS_DSR_ON)
- ret |= SerialPort::Dsr;
+ ret |= SerialPort::DsrLine;
if (modemStat & MS_RING_ON)
- ret |= SerialPort::Ri;
+ ret |= SerialPort::RiLine;
if (modemStat & MS_RLSD_ON)
- ret |= SerialPort::Dcd;
+ ret |= SerialPort::DcdLine;
DWORD bytesReturned = 0;
if (::DeviceIoControl(descriptor, IOCTL_SERIAL_GET_DTRRTS, NULL, 0,
@@ -313,9 +313,9 @@ SerialPort::Lines SerialPortPrivate::lines() const
&bytesReturned, NULL)) {
if (modemStat & SERIAL_DTR_STATE)
- ret |= SerialPort::Dtr;
+ ret |= SerialPort::DtrLine;
if (modemStat & SERIAL_RTS_STATE)
- ret |= SerialPort::Rts;
+ ret |= SerialPort::RtsLine;
}
return ret;