summaryrefslogtreecommitdiffstats
path: root/src/network/socket
diff options
context:
space:
mode:
authorShane Kearns <shane.kearns@accenture.com>2011-07-04 17:21:34 +0100
committerQt by Nokia <qt-info@nokia.com>2011-07-05 15:32:39 +0200
commitf45ad0eeb3e298df731bc4d8dffe188b21500ea4 (patch)
tree56379e38d3e299884bba769657f9feace2d58cf6 /src/network/socket
parent1da4753bd944baf0758bf758001bf6449ec8da7f (diff)
Remove QT3_SUPPORT from network
Change-Id: I962bece24c958c053a3edc0e49a594b61a3725ae Reviewed-on: http://codereview.qt.nokia.com/1093 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Liang Qi <liang.qi@nokia.com>
Diffstat (limited to 'src/network/socket')
-rw-r--r--src/network/socket/qabstractsocket.cpp79
-rw-r--r--src/network/socket/qabstractsocket.h35
2 files changed, 0 insertions, 114 deletions
diff --git a/src/network/socket/qabstractsocket.cpp b/src/network/socket/qabstractsocket.cpp
index 5bad8ec1df..4415e37daa 100644
--- a/src/network/socket/qabstractsocket.cpp
+++ b/src/network/socket/qabstractsocket.cpp
@@ -2504,10 +2504,6 @@ void QAbstractSocket::disconnectFromHostImplementation()
return;
}
-#ifdef QT3_SUPPORT
- emit connectionClosed(); // compat signal
-#endif
-
// Disable and delete read notification
if (d->socketEngine)
d->socketEngine->setReadNotificationEnabled(false);
@@ -2570,9 +2566,6 @@ void QAbstractSocket::disconnectFromHostImplementation()
emit stateChanged(d->state);
emit readChannelFinished(); // we got an EOF
-#ifdef QT3_SUPPORT
- emit delayedCloseFinished(); // compat signal
-#endif
// only emit disconnected if we were connected before
if (previousState == ConnectedState || previousState == ClosingState)
emit disconnected();
@@ -2750,78 +2743,6 @@ QNetworkProxy QAbstractSocket::proxy() const
}
#endif // QT_NO_NETWORKPROXY
-#ifdef QT3_SUPPORT
-/*!
- \enum QAbstractSocket::Error
- \compat
-
- Use QAbstractSocket::SocketError instead.
-
- \value ErrConnectionRefused Use QAbstractSocket::ConnectionRefusedError instead.
- \value ErrHostNotFound Use QAbstractSocket::HostNotFoundError instead.
- \value ErrSocketRead Use QAbstractSocket::UnknownSocketError instead.
-*/
-
-/*!
- \typedef QAbstractSocket::State
- \compat
-
- Use QAbstractSocket::SocketState instead.
-
- \table
- \header \o Qt 3 enum value \o Qt 4 enum value
- \row \o \c Idle \o \l UnconnectedState
- \row \o \c HostLookup \o \l HostLookupState
- \row \o \c Connecting \o \l ConnectingState
- \row \o \c Connected \o \l ConnectedState
- \row \o \c Closing \o \l ClosingState
- \row \o \c Connection \o \l ConnectedState
- \endtable
-*/
-
-/*!
- \fn int QAbstractSocket::socket() const
-
- Use socketDescriptor() instead.
-*/
-
-/*!
- \fn void QAbstractSocket::setSocket(int socket)
-
- Use setSocketDescriptor() instead.
-*/
-
-/*!
- \fn Q_ULONG QAbstractSocket::waitForMore(int msecs, bool *timeout = 0) const
-
- Use waitForReadyRead() instead.
-
- \oldcode
- bool timeout;
- Q_ULONG numBytes = socket->waitForMore(30000, &timeout);
- \newcode
- qint64 numBytes = 0;
- if (socket->waitForReadyRead(msecs))
- numBytes = socket->bytesAvailable();
- bool timeout = (error() == QAbstractSocket::SocketTimeoutError);
- \endcode
-
- \sa waitForReadyRead(), bytesAvailable(), error(), SocketTimeoutError
-*/
-
-/*!
- \fn void QAbstractSocket::connectionClosed()
-
- Use disconnected() instead.
-*/
-
-/*!
- \fn void QAbstractSocket::delayedCloseFinished()
-
- Use disconnected() instead.
-*/
-#endif // QT3_SUPPORT
-
#ifndef QT_NO_DEBUG_STREAM
Q_NETWORK_EXPORT QDebug operator<<(QDebug debug, QAbstractSocket::SocketError error)
{
diff --git a/src/network/socket/qabstractsocket.h b/src/network/socket/qabstractsocket.h
index 2501df6e3d..b757092915 100644
--- a/src/network/socket/qabstractsocket.h
+++ b/src/network/socket/qabstractsocket.h
@@ -108,15 +108,6 @@ public:
BoundState,
ListeningState,
ClosingState
-#ifdef QT3_SUPPORT
- ,
- Idle = UnconnectedState,
- HostLookup = HostLookupState,
- Connecting = ConnectingState,
- Connected = ConnectedState,
- Closing = ClosingState,
- Connection = ConnectedState
-#endif
};
enum SocketOption {
LowDelayOption, // TCP_NODELAY
@@ -221,32 +212,6 @@ private:
Q_PRIVATE_SLOT(d_func(), void _q_abortConnectionAttempt())
Q_PRIVATE_SLOT(d_func(), void _q_testConnection())
Q_PRIVATE_SLOT(d_func(), void _q_forceDisconnect())
-
-#ifdef QT3_SUPPORT
-public:
- enum Error {
- ErrConnectionRefused = ConnectionRefusedError,
- ErrHostNotFound = HostNotFoundError,
- ErrSocketRead = UnknownSocketError
- };
- inline QT3_SUPPORT int socket() const { return socketDescriptor(); }
- inline QT3_SUPPORT void setSocket(int socket) { setSocketDescriptor(socket); }
- inline QT3_SUPPORT qulonglong waitForMore(int msecs, bool *timeout = 0) const
- {
- QAbstractSocket *that = const_cast<QAbstractSocket *>(this);
- if (that->waitForReadyRead(msecs))
- return qulonglong(bytesAvailable());
- if (error() == SocketTimeoutError && timeout)
- *timeout = true;
- return 0;
- }
- typedef SocketState State;
-Q_SIGNALS:
- QT_MOC_COMPAT void connectionClosed(); // same as disconnected()
- QT_MOC_COMPAT void delayedCloseFinished(); // same as disconnected()
-
-
-#endif
};
#ifndef QT_NO_DEBUG_STREAM