lemanhtrung / qextserialport

Automatically exported from code.google.com/p/qextserialport
Other
0 stars 0 forks source link

readyReadq() on POSIX #3

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I've added readyReady() support to the the POSIX implementation. It looks
like someone already took care of the Win32 side. Here is the patch. 

It's pretty simple. I just used a QSocketNotifier on the file descriptor
and a SIGNAL-SIGNAL connenction to proxy QSocketNotifier::activated(int) to
QextSerialPort::readRead()

--Justin Noel (ICS)

Original issue reported on code.google.com by noel.jus...@gmail.com on 3 Jun 2009 at 3:59

Attachments:

GoogleCodeExporter commented 9 years ago
Committed.  I made a slight change to only create the notifier when the port is 
opened in EventDriven mode. 
Thanks!

Original comment by lst...@gmail.com on 3 Jun 2009 at 5:04