summaryrefslogtreecommitdiff
path: root/src/serialport/qserialport_p.h
diff options
context:
space:
mode:
authorDenis Shienkov <denis.shienkov@gmail.com>2014-11-16 14:59:22 +0300
committerDenis Shienkov <denis.shienkov@gmail.com>2014-11-16 18:59:25 +0100
commit2c171c043ce3c4ca40c8dd91971192efe3c0465e (patch)
tree52edc3720c61ee704b49d306c73cabe6fd27a122 /src/serialport/qserialport_p.h
parent22b4e280a16d47b5f46706cf80d976259e519007 (diff)
downloadqtserialport-2c171c043ce3c4ca40c8dd91971192efe3c0465e.tar.gz
Use QIODevicePrivate for PIMPL
It is reasonable to get rid of excess D/Q pointers and to use their equivalents from QIODevicePrivate. Also in the future it will allow to use the internal read buffer of QIODevicePrivate. Tested on Windows 8 and Linux with the on-board and com0com serial ports. Change-Id: I9d0923c6f9adc5981dc49dacea163b286620ed5c Reviewed-by: Sergey Belyashov <Sergey.Belyashov@gmail.com>
Diffstat (limited to 'src/serialport/qserialport_p.h')
-rw-r--r--src/serialport/qserialport_p.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/serialport/qserialport_p.h b/src/serialport/qserialport_p.h
index f0d6fff..4dcf634 100644
--- a/src/serialport/qserialport_p.h
+++ b/src/serialport/qserialport_p.h
@@ -50,6 +50,7 @@
#include "qserialport.h"
#include <private/qringbuffer_p.h>
+#include <private/qiodevice_p.h>
#if defined (Q_OS_WINCE)
# include <QtCore/qmutex.h>
@@ -108,7 +109,7 @@ class QSocketNotifier;
QString serialPortLockFilePath(const QString &portName);
#endif
-class QSerialPortPrivate
+class QSerialPortPrivate : public QIODevicePrivate
{
Q_DECLARE_PUBLIC(QSerialPort)
public:
@@ -116,7 +117,7 @@ public:
ReadChunkSize = 512
};
- QSerialPortPrivate(QSerialPort *q);
+ QSerialPortPrivate();
int timeoutValue(int msecs, int elapsed);
@@ -175,7 +176,6 @@ public:
bool dataTerminalReady;
bool requestToSend;
bool settingsRestoredOnClose;
- QSerialPort * const q_ptr;
#if defined (Q_OS_WINCE)