Typica is a free program for professional coffee roasters. https://typica.us
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ChangeLog 13KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251
  1. Change history for QextSerialPort (formerly QwSerialPort):
  2. (Lines beginning with + represent new functionality, * represent changed or
  3. fixed functionality, - represent removed or deprecated functionality)
  4. Version 1.2 beta1 (2012 Debao Zhang)
  5. * D-pointer and Q_PRIVATE_SLOT are used to moving private members from QextSerialPort to QextSerialPortPrivate
  6. * qdoc3 instead of doxygen is used for generating documents
  7. * MIT license header add to all sources files
  8. + add a helper class QextWinEventNotifier for windows user, when user's SDK doesnot contain Qt's private files, this class will be auto selected.
  9. + Support platform custom baudrate. Macros such as B230400 / B460800 can be used directly if you OS support it.
  10. Version 1.2win-alpha (2007 Michal Policht)
  11. + Added QextSerialEnumerator pre-alpha. Works under W2k and later versions of Windows.
  12. + Event driven mechanism (alternative to polling) is now available on Windows.
  13. - Removed default (=0) parameter from open() functions.
  14. * Fixed bug #1714917 in Win_QextSerialPort::close() method (by Kurt).
  15. * Fixed problem with lack of proper blocking in readData() on win32 (by Brandon Fosdick).
  16. * Removed QT_THREAD_SUPPORT option. Now QextSerialPort must be always compiled with threads support.
  17. * Mutexes are not static.
  18. * setTimeout() now accepts only one parameter.
  19. * bytesAvailable() on POSIX now shows 0 bytes instead of -1 when no bytes are available.
  20. * bytesAvailable() is const.
  21. * native POSIX file descriptors instead of QFile->handle() calls
  22. + POSIX: Save and restore original termios when opening and closing the device
  23. * POSIX: Only disable special characters on systems that support it
  24. * POSIX: Use cfmakeraw(3) to get a non-canonical termios
  25. + POSIX: Call close(2) in close() to actually close the device
  26. Version 1.1 (official release)
  27. Version 1.0.1
  28. * Minor changes (mostly in test application)
  29. Version 1.0.0e (by Micha? Policht)
  30. * Fixed bytesAvailable(). Includes buffered bytes to the result.
  31. + Added isSequential() method.
  32. + Provided test application
  33. Version 1.0.0d ( changes by Micha? Policht )
  34. - Removed isOpen() overriden declaration/implementation from qextserialport's classes. isOpen() relies on QIODevice now.
  35. - Removed bool portOpen variable. Replaced by internal QIODevice.openMode.
  36. - Removed getChar(), putChar() overriden declaration/implementation. QIODevice can handle this.
  37. * Calling open() with specified OpenMode invokes QIODevice::open() which result in proper openMode setting.
  38. * readData(), writeData() are protected as in QIODevice declaration.
  39. * QIODevice:: read() and write() function are working now (use them instead of readData() writeData()).
  40. * readData(), writeData() don't check if port is open any more (read() and write() assures that). The same behaviour can be found in QFile for example.
  41. * Fixed readLine().
  42. * Fixed randomly crash on deletion bug on Windows ( by Stuart Nixon )
  43. http://lists.trolltech.com/qt-interest/2007-02/thread00340-0.html#msg00351
  44. Version 0.9 (March 3, 2005) Stefan Sander <stefan-sander@users.sf.net>:
  45. + Added a new precompiler constant, _TTY_FREEBSD_
  46. to support FreeBSD port names.
  47. + Added _TTY_WIN_ constant in qextserialport.pro win32:DEFINES
  48. to have Windows port names as default when compiling on it.
  49. - Removed construct() call from QextSerialBase constructors,
  50. it is called indirectly through Win_QextSerialPort::construct()
  51. and Posix_QextSerialPort::construct().
  52. + Added construct() call to Win_QextSerialPort constructors.
  53. + Added setTimeout(0, 500) call to Win_QextSerialPort::construct().
  54. - Removed setTimeout(0, 500) call from Win_QextSerialPort(const char* name).
  55. * Fixed Posix_QextSerialPort::open(int) control flow, now the port settings
  56. are only applied if the associated file could be opened.
  57. * Fixed masking CR to NL, in Posix_CommConfig.c_iflag
  58. Version 0.8 (, 2003) (Alpha release):
  59. * Added code to set the port timeouts in Win_QextSerialPort's default
  60. constructor.
  61. * Fixed Posix_QextSerialPort::construct() to set up the port correctly.
  62. * Fixed syntax errors in 2 ioctl() calls in posix_QextSerialPort.
  63. * lastError is now initialized to E_NO_ERROR in the QextSerialBase
  64. constructor.
  65. * The select() call in posix_QextSerialPort::bytesWaiting() is now
  66. properly coded. Previously it would always time out.
  67. * Fixed runtime errors in the ioctl() calls for
  68. Posix_QextSerialPort::setDtr() and Posix_QextSerialPort::setRts().
  69. Thanks to Marc Pignat.
  70. Version 0.7 (June 15, 2002) <Bugfix release>:
  71. (0.61 - unofficial release)
  72. * Fixed a small bug in the initializations of the static members when
  73. QT_THREAD_SUPPORT was defined.
  74. * Fixed a bug that caused Borland's compiler to choke on Windows platforms
  75. (which perversely actually stemmed from a shortcoming of Visual C++ that
  76. Borland doesn't have).
  77. (0.62 - unofficial release)
  78. * Fixed a bug that gave Q_LONG the wrong typedef for QT versions prior to
  79. 3.0.
  80. (0.63 - unofficial release)
  81. * Fixed 2 incorrect references to Posix_Comm_Config.
  82. * Fixed scoping of Posix_QextSerialPort::operator=().
  83. * Posix_QextSerialPort::construct should now be coded correctly.
  84. * Fixed return type for Posix_QextSerialPort::size().
  85. (0.64 - unofficial release)
  86. * Fixed all the port settings functions to work properly when opening the
  87. port for the first time - previously none of the settings were being
  88. applied when the port was opened.
  89. * Fixed an oversight in Win_QextSerialPort::open() that caused the setting
  90. of port parameters to fail on NT and 2000 systems.
  91. (0.7 - official release)
  92. * Fixed some calls to QextSerialBase constructors that no longer exist on
  93. the POSIX side.
  94. * Fixed the bad memcpy()'s in the POSIX copy constructor.
  95. * Fixed the Offset scoping problem under gcc 2.95.
  96. * The CBAUD flag has been deprecated on some POSIX systems. Fixed
  97. Posix_QextSerialPort::setBaudRate() to reflect this.
  98. * Added construct() calls to all of the Posix_QextSerialPort constructors.
  99. * Fixed double (and conflicting) typedefs of Offset when using QT versions
  100. prior to 3.0
  101. * Changed the call to CreateFile() to CreateFileA() in
  102. Win_QextSerialPort.cpp. This should get rid of problems for those using
  103. Unicode or other multibyte character sets for their string literals.
  104. * A few tweaks to the documentation.
  105. - Removed the protected Posix_Handle variable from Posix_QextSerialPort.
  106. Version 0.6 (March 11, 2002) <Bugfix release>:
  107. + Added a new precompiler constant, QTVER_PRE_30. QT3 changed the return
  108. types of some QIODevice functions. Therefore, if compiling on versions
  109. of QT prior to 3.0, you should always define QTVER_PRE_30 in your project.
  110. Also had to add some preprocessor blocks to support both 3.0 and earlier
  111. versions of QT.
  112. + Added implementations of 2 of the new constructors added in 0.5 to both
  113. Win_QextSerialPort and Posix_QextSerialPort.
  114. * The scoping of the enums used in the PortSettings struct has been fixed.
  115. * QObject inheritance has been removed. This should not affect the
  116. functionality of the classes.
  117. * Replaced a few stray references to mutex->unlock() with UNLOCK_MUTEX() in
  118. the Windows code.
  119. * Fixed several runtime errors caused by calling nonexistent members of
  120. QextSerialBase.
  121. * Fixed a whole bunch of little things that were causing MSVC to choke when
  122. compiling for Windows.
  123. Version 0.5 (February 15, 2002):
  124. + There are 4 new macros (LOCK_MUTEX, UNLOCK_MUTEX, TTY_WARNING, and
  125. TTY_PORTABILITY_WARNING) that replace most of those ugly #ifdef blocks in
  126. the code.
  127. + In place of the old namingConvention stuff, there is a new function,
  128. setName(). It is used to set the name of the device to be associated with
  129. the object. The new name() function can be used to retrieve the device
  130. name, which is stored in the new member variable portName.
  131. + There is a new version of open() that takes a const char* as a parameter.
  132. It can be used to specify the name of the device when it is opened rather
  133. than at construction time.
  134. * 3 constructors have been removed and 3 more added. There is now a copy
  135. constructor (and operator=()) as well as a constructor that takes a
  136. PortSettings structure as a parameter, and another that takes both a
  137. device name and a PortSettings structure. As a result of these changes
  138. the PortSettings structure declaration is no longer local to the
  139. QextSerialBase class. All of the removed constructors had to do with
  140. the setNamingConvention() system.
  141. * The static mutex member should now be reference-counted and only deleted
  142. when it is no longer referenced.
  143. * Most of the object construction duties have been pushed back into
  144. QextSerialBase
  145. * Fixed a couple resource leaks, mostly to do with unlocking the mutex
  146. properly
  147. - Removed the setNamingConvention() nonsense.
  148. - Removed all QStrings and calls to sprintf() for thread compatibility.
  149. - Removed setNumber() functions as well as the portNumber member variable,
  150. as they were only necessary under the setNamingConvention() system.
  151. I am grateful to Jorg Preiss (Preisz? Sorry, American keyboards don't have
  152. an ess-tset character ;)) for his invaluable input on most of the changes
  153. that went into this version.
  154. Version 0.4 (March 20, 2001):
  155. + All of the classes now derive from QObject as well as QIODevice. This
  156. is pretty much useless at the moment - signals and slots may be used
  157. to implement asynchronous communications in a future version
  158. + Added configurable timeouts via the setTimeout() function. The default
  159. timeout for read and write operations is now 500 milliseconds
  160. + There is now a functional .pro file for the library (thanks to
  161. Gunnstein Lye)
  162. + The prefixes for all of the classes have changed from Qw to Qext, in
  163. compliance with the qt-addons project standard
  164. * Fixed a bug that caused port settings to be restored incorrectly when
  165. switching ports with setNumber()
  166. * Minor changes to QextSerialBase::setNumber(). Functionality should now
  167. reflect the documentation, which has also been updated to reflect the
  168. changes that went in on version 0.3.
  169. * Some fixes to the documentation. The Posix_QextSerialPort and
  170. Win_QextSerialPort classes should no longer have any unnecessary
  171. references to inapplicable platforms, and the documentation for open() has
  172. been updated.
  173. * Should now compile without QT_THREAD_SUPPORT defined (ie, in single-
  174. threaded environments), although it will require slight changes to the
  175. makefile (tmake "CONFIG-=thread" should work)
  176. * Fixed a few compilation issues, especially on the POSIX side (should
  177. compile under Linux now :))
  178. * POSIX code is a little cleaner and more efficient
  179. * Various small fixes to the documentation
  180. * Constants now follow a consistent naming convention, with underscores at
  181. the beginning and end of each. For example TTY_POSIX has become
  182. _TTY_POSIX_
  183. Version 0.3 (Feb. 14, 2001):
  184. + Added a warning that appears when QwSerialPort is compiled on a POSIX
  185. platform that does not implement 76800 baud operation. In this situation
  186. QwSerialPort will also switch to 57600 baud.
  187. + Major code reorganization - there are now 4 classes instead of 1. This
  188. should remove a lot of the #ifdef...#else...#endif constructs and
  189. hopefully make the code easier to read. Including the class in your
  190. project is still done by including QwSerialPort.h and instantiating a
  191. QwSerialPort object.
  192. * The serial port associated with a QwSerialPort object is no longer
  193. opened on construction, or upon calling the setNumber() function. You
  194. must now explicitly call open() to open the port.
  195. Version 0.2 (Jan. 3, 2001):
  196. + Added lastError() function with rudimentary error codes
  197. + Better documentation
  198. + Added ability to examine the empty/not empty state of a port's input
  199. buffer with atEnd()
  200. + Added ability to retrieve the number of bytes in a port's input buffer
  201. with size() (thanks to Olivier Tubach)
  202. + Added ability to turn off portability warnings by defining
  203. TTY_NOWARN_PORT in your project
  204. + Added ability to turn off all warning messages by defining TTY_NOWARN
  205. in your project
  206. + Added ability to select POSIX serial functions in Windows NT/2000 by
  207. defining TTY_POSIX in your project (untested)
  208. + Added control over RTS and DTR lines with setRts() and setDtr()
  209. respectively
  210. + Added ability to query line status using lineStatus().
  211. + Added readLine() functionality (thanks to Olivier Tubach)
  212. + Added bytesWaiting(), a non-const/thread-safe version of size()
  213. + The class should now be thread-safe through the use of a recursive
  214. QMutex (untested)
  215. * Fixed a bug that could cause hardware flow control not to work on some
  216. POSIX systems
  217. * Put in a few missing fileno() calls in the POSIX code
  218. * Fixed a few syntax errors that caused compilation to fail on POSIX systems
  219. - BAUD0 is no longer a valid baud rate setting - to drop the DTR line,
  220. call setDtr(FALSE)
  221. Version 0.1 (Dec. 11, 2000):
  222. Initial public release.