From 5ca6039b7738415b8beeced4d34039ee2edbd903 Mon Sep 17 00:00:00 2001 From: Joerg Bornemann Date: Wed, 8 Jan 2014 13:18:17 +0100 Subject: remove qt_windows.h from qwinoverlappedionotifier_p.h Preparation for making QWinOverlappedIoNotifier public. Change-Id: Id443514a134b5c13e64d4d89450a7912ab38d40f Reviewed-by: Oswald Buddenhagen --- src/corelib/io/qwindowspipereader.cpp | 3 ++- src/corelib/io/qwindowspipereader_p.h | 2 +- src/corelib/io/qwinoverlappedionotifier.cpp | 5 +++-- src/corelib/io/qwinoverlappedionotifier_p.h | 9 +++++---- 4 files changed, 11 insertions(+), 8 deletions(-) (limited to 'src/corelib/io') diff --git a/src/corelib/io/qwindowspipereader.cpp b/src/corelib/io/qwindowspipereader.cpp index fc9d191a90..df65aebcff 100644 --- a/src/corelib/io/qwindowspipereader.cpp +++ b/src/corelib/io/qwindowspipereader.cpp @@ -173,7 +173,8 @@ bool QWindowsPipeReader::canReadLine() const \internal Will be called whenever the read operation completes. */ -void QWindowsPipeReader::notified(DWORD numberOfBytesRead, DWORD errorCode, OVERLAPPED *notifiedOverlapped) +void QWindowsPipeReader::notified(quint32 numberOfBytesRead, quint32 errorCode, + OVERLAPPED *notifiedOverlapped) { if (&overlapped != notifiedOverlapped) return; diff --git a/src/corelib/io/qwindowspipereader_p.h b/src/corelib/io/qwindowspipereader_p.h index ea3d3c271f..78ac8eb76d 100644 --- a/src/corelib/io/qwindowspipereader_p.h +++ b/src/corelib/io/qwindowspipereader_p.h @@ -94,7 +94,7 @@ Q_SIGNALS: void pipeClosed(); private Q_SLOTS: - void notified(DWORD numberOfBytesRead, DWORD errorCode, OVERLAPPED *notifiedOverlapped); + void notified(quint32 numberOfBytesRead, quint32 errorCode, OVERLAPPED *notifiedOverlapped); private: bool completeAsyncRead(DWORD bytesRead, DWORD errorCode); diff --git a/src/corelib/io/qwinoverlappedionotifier.cpp b/src/corelib/io/qwinoverlappedionotifier.cpp index a903ebe77a..33583afb78 100644 --- a/src/corelib/io/qwinoverlappedionotifier.cpp +++ b/src/corelib/io/qwinoverlappedionotifier.cpp @@ -46,6 +46,7 @@ #include #include #include +#include #include QT_BEGIN_NAMESPACE @@ -270,13 +271,13 @@ QWinOverlappedIoNotifier::~QWinOverlappedIoNotifier() ReleaseMutex(d->iocpInstanceLock); } -void QWinOverlappedIoNotifier::setHandle(HANDLE h) +void QWinOverlappedIoNotifier::setHandle(Qt::HANDLE h) { Q_D(QWinOverlappedIoNotifier); d->hHandle = h; } -HANDLE QWinOverlappedIoNotifier::handle() const +Qt::HANDLE QWinOverlappedIoNotifier::handle() const { Q_D(const QWinOverlappedIoNotifier); return d->hHandle; diff --git a/src/corelib/io/qwinoverlappedionotifier_p.h b/src/corelib/io/qwinoverlappedionotifier_p.h index 545d7bba84..f90fd2e615 100644 --- a/src/corelib/io/qwinoverlappedionotifier_p.h +++ b/src/corelib/io/qwinoverlappedionotifier_p.h @@ -54,7 +54,8 @@ // #include -#include + +typedef struct _OVERLAPPED OVERLAPPED; QT_BEGIN_NAMESPACE @@ -71,14 +72,14 @@ public: QWinOverlappedIoNotifier(QObject *parent = 0); ~QWinOverlappedIoNotifier(); - void setHandle(HANDLE h); - HANDLE handle() const; + void setHandle(Qt::HANDLE h); + Qt::HANDLE handle() const; void setEnabled(bool enabled); bool waitForNotified(int msecs, OVERLAPPED *overlapped); Q_SIGNALS: - void notified(DWORD numberOfBytes, DWORD errorCode, OVERLAPPED *overlapped); + void notified(quint32 numberOfBytes, quint32 errorCode, OVERLAPPED *overlapped); #if !defined(Q_QDOC) void _q_notify(); #endif -- cgit v1.2.3