diff options
Diffstat (limited to 'src/serialport/qserialport.h')
-rw-r--r-- | src/serialport/qserialport.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/serialport/qserialport.h b/src/serialport/qserialport.h index eb2baa38..781a98b1 100644 --- a/src/serialport/qserialport.h +++ b/src/serialport/qserialport.h @@ -71,6 +71,12 @@ class Q_SERIALPORT_EXPORT QSerialPort : public QIODevice Q_ENUMS(BaudRate DataBits Parity StopBits FlowControl DataErrorPolicy SerialPortError) Q_FLAGS(Directions PinoutSignals) +#if defined(Q_OS_WIN32) || defined(Q_OS_WINCE) + typedef void* Handle; +#else + typedef int Handle; +#endif + public: enum Direction { @@ -158,7 +164,8 @@ public: ReadError, ResourceError, UnsupportedOperationError, - UnknownError + UnknownError, + TimeoutError }; explicit QSerialPort(QObject *parent = 0); @@ -225,6 +232,8 @@ public: bool sendBreak(int duration = 0); bool setBreakEnabled(bool set = true); + Handle handle() const; + Q_SIGNALS: void baudRateChanged(qint32 baudRate, QSerialPort::Directions directions); void dataBitsChanged(QSerialPort::DataBits dataBits); |