summaryrefslogtreecommitdiff
path: root/src/serialport/qserialport_win_p.h
Commit message (Collapse)AuthorAgeFilesLines
* Use the term 'directions' for representing the directionsLaszlo Papp2013-09-041-2/+2
| | | | | | | | | | | | 1) The previous 'dir' is incorrect because it should be plural for consistency based upon the other variable names. 2) 'dir' can be misleading in the context where such a term is also used for representing a directory, like in our case. Change-Id: I650cc64c2669286a4d7ef071a2ab3b7b63228977 Reviewed-by: Sergey Belyashov <Sergey.Belyashov@gmail.com> Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
* Eliminate the "q_ptr->" call by using Q_Q(QSerialPort)Laszlo Papp2013-07-281-0/+2
| | | | | | | | | | | Unfortunately, the q_ptr data member cannot yet be deleted from the internal data class because QIODevicePrivate would need to be inherited then. That is not a simple change considering the Qt4 support. Hence, that part of the logic is put on hold, but can be expected in an upcoming change at some point, soon. Change-Id: Ic8ba9621dd647f4afa1b91d01c858c836d1cc0c8 Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com> Reviewed-by: Sergey Belyashov <Sergey.Belyashov@gmail.com>
* Remove the const modifier from the pinoutSignals internal methodsLaszlo Papp2013-07-271-1/+1
| | | | | | | | | Logically, these methods set the error on their member, the public QSerialPort class, hence these are not const methods similarly to the public variant. Change-Id: I1580cf371556c820ce8e7df43121bc2800b08b40 Reviewed-by: Sergey Belyashov <Sergey.Belyashov@gmail.com> Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
* Revert "Add property to set exclusivity"Laszlo Papp2013-07-081-1/+0
| | | | | | | | | | | | | | | | | | | This reverts commit 4c67500e5d14e561e37b4bdc056f059d3eefdfa4. "dev: unfrozen branch, containing alpha-quality code that is ready to go into beta testing at any time" ... from: http://qt-project.org/wiki/Branch-Guidelines Please respect the basic principles. In doubts, do not approve changes yourself, but ask for help. Besides the illegit nature of this change, it has fundamental documentation issues as well. It is summer, and this can wait until 5.2, so please do /not/ rush with approvals. Change-Id: Ic2763394035c776088cb28f9c04086920cedb3a2 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
* Add property to set exclusivityAlex Henrie2013-07-031-0/+1
| | | | | | | | | Disabling the serial port driver's exclusive mode is necessary for pseudo serial ports and some USB/serial adapters to work correctly. Change-Id: I74d45feed619817b61e265b00aec8b0ebfae7a33 Reviewed-by: Sergey Belyashov <Sergey.Belyashov@gmail.com> Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
* Update the documentation and internal setBreakEnabled APILaszlo Papp2013-05-061-1/+1
| | | | | | | | | | | | | The change 0add3b934b8405fc5b65efeba9f05cc1dc353e64 changed the API, and we had a compromise in there to get the API changes in as soon as possible. This change tries to address the suggested documentation and internal API changes. Only tested on Linux with Qt 4.8.4 and Qt 5.1, so it might break on other platforms. Change-Id: I153e5a35d76beb26e04dbabf184bc9b90ef4b70b Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com> Reviewed-by: Sergey Belyashov <Sergey.Belyashov@gmail.com>
* Windows: Fix receive policies processingDenis Shienkov2013-03-161-1/+1
| | | | | | | | Policies should be handled only with ParityError occurred according to the description of the method setDataErrorPolicy(). Change-Id: Ie0dc9347e50d358508def5ba1a84dadbb0ead4be Reviewed-by: Laszlo Papp <lpapp@kde.org>
* Drop the Lines/Line terms in favor of PinoutSignals/SignalLaszlo Papp2013-02-221-1/+1
| | | | | | | Change-Id: Icc8c52dd32f918f13e9221e32ab7eeb11217f054 Reviewed-by: Ray Donnelly <mingw.android@gmail.com> Reviewed-by: Sergey Belyashov <Sergey.Belyashov@gmail.com> Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
* Fix the broken Windows namespace buildLaszlo Papp2013-02-121-4/+4
| | | | | | | | The namespace should begin *after* the Qt includes not to cause issues in those. Change-Id: If725818e7e82591205ff5c2eab1908fb4d850d9b Reviewed-by: Simo Fält <simo.falt@digia.com> Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
* Remove the QtSerialPort namespace define and hence namespace usageLaszlo Papp2013-02-071-4/+0
| | | | | | | | | | * This is for following the convention in the Qt Project with the rest. * This fixes examples and tests to build now as all of them are broken due to the regression. Change-Id: I3f4d64d97466520aea621da582a64a0d97e32136 Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
* Fix the potential build breaks introduced by a previous commit (regression)Laszlo Papp2013-02-071-0/+4
| | | | | | | | | | | | | This is due to the fact the Qt namespace is not considered which is normally not a problem as it is empty by default. However, using something like "-qtnamespace MyNamespace" when configuring Qt will break the QtSerialPort build completely. This is intended to be a fix for the library, and the examples/tests will be fixed in a separate commit if necessary. Change-Id: Iecd24dc5135c3a9645910754589dfd8bf4942337 Reviewed-by: Sergey Belyashov <Sergey.Belyashov@gmail.com> Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
* Introduce new I/O errors and enhanced it implementationDenis Shienkov2013-02-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | 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>
* Change the Dtr/Rts API to something less cryptic and more Qt'ishLaszlo Papp2013-02-021-2/+2
| | | | | | Change-Id: Ic7992e62d50a787d8ad657504e1768ab0061ed31 Reviewed-by: Sergey Belyashov <Sergey.Belyashov@gmail.com> Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
* Rename the PortError to SerialPortError to be more consistent and talkativeLaszlo Papp2013-02-021-1/+1
| | | | | | | | | It is necessary not to get a potential Error enumeration overridden in QIODevice in order to be specific. It is also how other QIODevice subclasses handle the API more or less. Change-Id: I9f5b5601118be4b7a285b965ea5ea5e995848e8e Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
* Make all the file renames and relevant changesLaszlo Papp2013-01-271-0/+162
"git log --follow /path/to/the/file/in/question" can be used, for instance, for the renamed files to get the whole history. Change-Id: I20da087ca88e2c179a6c3232772fa21575e0aa6a Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>