summaryrefslogtreecommitdiff
path: root/src/serialport/qserialport_win.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/serialport/qserialport_win.cpp')
-rw-r--r--src/serialport/qserialport_win.cpp28
1 files changed, 0 insertions, 28 deletions
diff --git a/src/serialport/qserialport_win.cpp b/src/serialport/qserialport_win.cpp
index e319863..63d0a6d 100644
--- a/src/serialport/qserialport_win.cpp
+++ b/src/serialport/qserialport_win.cpp
@@ -44,13 +44,9 @@
#include "qserialport_win_p.h"
#include <QtCore/qcoreevent.h>
-
-#ifndef Q_OS_WINCE
#include <QtCore/qelapsedtimer.h>
#include <QtCore/qvector.h>
#include <QtCore/qtimer.h>
-#endif
-
#include <QtCore/qwineventnotifier.h>
#include <algorithm>
@@ -87,8 +83,6 @@
QT_BEGIN_NAMESPACE
-#ifndef Q_OS_WINCE
-
static void initializeOverlappedStructure(OVERLAPPED &overlapped)
{
overlapped.Internal = 0;
@@ -245,8 +239,6 @@ void QSerialPortPrivate::close()
handle = INVALID_HANDLE_VALUE;
}
-#endif // #ifndef Q_OS_WINCE
-
QSerialPort::PinoutSignals QSerialPortPrivate::pinoutSignals()
{
Q_Q(QSerialPort);
@@ -310,8 +302,6 @@ bool QSerialPortPrivate::setRequestToSend(bool set)
return true;
}
-#ifndef Q_OS_WINCE
-
bool QSerialPortPrivate::flush()
{
Q_Q(QSerialPort);
@@ -349,8 +339,6 @@ bool QSerialPortPrivate::clear(QSerialPort::Directions directions)
return true;
}
-#endif
-
bool QSerialPortPrivate::sendBreak(int duration)
{
if (!setBreakEnabled(true))
@@ -376,8 +364,6 @@ bool QSerialPortPrivate::setBreakEnabled(bool set)
return true;
}
-#ifndef Q_OS_WINCE
-
void QSerialPortPrivate::startWriting()
{
Q_Q(QSerialPort);
@@ -471,8 +457,6 @@ bool QSerialPortPrivate::waitForBytesWritten(int msecs)
return false;
}
-#endif // #ifndef Q_OS_WINCE
-
bool QSerialPortPrivate::setBaudRate()
{
return setBaudRate(inputBaudRate, QSerialPort::AllDirections);
@@ -572,8 +556,6 @@ bool QSerialPortPrivate::setDataErrorPolicy(QSerialPort::DataErrorPolicy policy)
return true;
}
-#ifndef Q_OS_WINCE
-
void QSerialPortPrivate::_q_completeAsyncCommunication()
{
Q_Q(QSerialPort);
@@ -758,8 +740,6 @@ void QSerialPortPrivate::emitReadyRead()
emit q->readyRead();
}
-#endif // #ifndef Q_OS_WINCE
-
void QSerialPortPrivate::processIoErrors(bool error)
{
Q_Q(QSerialPort);
@@ -787,8 +767,6 @@ void QSerialPortPrivate::processIoErrors(bool error)
}
}
-#ifndef Q_OS_WINCE
-
bool QSerialPortPrivate::updateDcb()
{
Q_Q(QSerialPort);
@@ -811,8 +789,6 @@ bool QSerialPortPrivate::updateCommTimeouts()
return true;
}
-#endif // #ifndef Q_OS_WINCE
-
QSerialPort::SerialPortError QSerialPortPrivate::decodeSystemError() const
{
QSerialPort::SerialPortError error;
@@ -851,8 +827,6 @@ QSerialPort::SerialPortError QSerialPortPrivate::decodeSystemError() const
return error;
}
-#ifndef Q_OS_WINCE
-
bool QSerialPortPrivate::waitAnyEvent(int msecs, bool *timedOut, HANDLE *triggeredEvent)
{
Q_Q(QSerialPort);
@@ -899,8 +873,6 @@ QString QSerialPortPrivate::portNameFromSystemLocation(const QString &location)
return ret;
}
-#endif // #ifndef Q_OS_WINCE
-
// This table contains standard values of baud rates that
// are defined in MSDN and/or in Win SDK file winbase.h