Commits (13)
-
Denis Shienkov authored
The method QSPI::isNull() should return false when QSPI is empty. Tested on Winsows 8 and Linux with on-board, virtual and USB serial ports using Qt5 and then Qt4. Task-number: QTBUG-41262 Change-Id: Ic9e0afc5549311283aef7ec2ed841f5e418b7edf Reviewed-by:
Sergey Belyashov <Sergey.Belyashov@gmail.com>
7f8d17b6 -
Denis Shienkov authored
Change-Id: I74622eaf3a7f5179ff25fc815997d5e4cf3cc2c7 Reviewed-by:
Sergey Belyashov <Sergey.Belyashov@gmail.com>
a6a96131 -
Denis Shienkov authored
There is not necessary to pass direction to handleOverlappedResult(). Because it is passed already as a second argument (pointer to OVERLAPPED structure that defines a desired direction). Also this method is renamed to more simple and short name. Change-Id: I9c20cf97c1712aed8d3e9ea6d9b4687ce4487523 Reviewed-by:
Sergey Belyashov <Sergey.Belyashov@gmail.com>
1266e02a -
Thiago Macieira authored
It doesn't do anything and has been deprecated in C++14. Clang even prints a warning. Change-Id: Ie803a206f02897f99358ed22bf9cb999ca457741 Reviewed-by:
Denis Shienkov <denis.shienkov@gmail.com>
28d75608 -
Denis Shienkov authored
Change-Id: I32eaf132f19a3b6fcbd5fd55d0690c3bd62bb641 Reviewed-by:
Sergey Belyashov <Sergey.Belyashov@gmail.com>
a00cbfb7 -
Denis Shienkov authored
QSP incorrectly transforms non-standard device names to their paths and vice-versa (for example, "/home/ttyS0", "//./COM1", and so on). Now this problem is solved: * The transformation code is moved to QSPP. * Added autotests auto/qserialportinfoprivate to testing of conversion algorithm. These tests are private and can be activated with building of QtSerialPort with: qmake "QT_CONFIG+=private_tests warnings_are_errors" \ DEFINES+=QT_BUILD_INTERNAL Tested on Windows 8, Linux, OSX with auto-tests, with on-board and virtual serial ports. Task-number: QTBUG-38639 Change-Id: I43757a7f1390f53ed2b1d70de59c6bfb71892a59 Reviewed-by:
Sergey Belyashov <Sergey.Belyashov@gmail.com>
ab51ad6a -
Andy Shaw authored
The handles should be closed when QSerialPort is deleted in order to clean up the native resources. Change-Id: If04521fc0fa3b898093bda3317962b4c44818034 Reviewed-by:
Denis Shienkov <denis.shienkov@gmail.com> Reviewed-by:
Sergey Belyashov <Sergey.Belyashov@gmail.com>
fbf3a8f5 -
Denis Shienkov authored
According to TTY_IOCTL(4), the ioctl on tty device can return these errors, which we need to interpret to QSP::SerialPortError. For example, a virtual devices which are created by SOCAT, returns the EINVAL error when the ioctl does query of line states. Change-Id: Iece3b773fdc8fe4b97951ccf7cff9d2670f24694 Reviewed-by:
Sergey Belyashov <Sergey.Belyashov@gmail.com>
e54305ff -
Denis Shienkov authored
It is reasonable to get rid of duplicating a code of TimeoutError handling. A common parts of a code can be moved to one place. Also, can be improved some of related if/else conditions. Tested on Windows 8 and Linux with virtual serial ports. Change-Id: I63112727faf42d4357f64f3450ea422167eaee90 Reviewed-by:
Sergey Belyashov <Sergey.Belyashov@gmail.com> Reviewed-by:
Denis Shienkov <denis.shienkov@gmail.com>
3ebd4551 -
Sergey Belyashov authored
Error message about missing environment variables generates list of required variables. Change-Id: Icbb680abbd9fc5d0549907b7399757d943c6d535 Reviewed-by:
Denis Shienkov <denis.shienkov@gmail.com>
c5667406 -
Denis Shienkov authored
Terminal example allows to select only available devices which are received from QSPI. Now it is possible to enter and to open of any custom device. Change-Id: I83172a346cb5dc0e20c217957133e9e3e506d8a4 Reviewed-by:
Sergey Belyashov <Sergey.Belyashov@gmail.com>
8c097b8a -
Denis Shienkov authored
Change-Id: Ica127147999eaecc3d03189cfa9cd893115b846c Reviewed-by:
Sergey Belyashov <Sergey.Belyashov@gmail.com>
28aca3ba -
Denis Shienkov authored
When a system has many serial ports, the last of them are not visible on the screen, because a widget has a big height. So, it is reasonable to add scrolling of all serial ports info. Change-Id: Ic13b58fba38a17d6f5142476bca501a0d26ec76d Reviewed-by:
Sergey Belyashov <Sergey.Belyashov@gmail.com>
383ee538
Showing