summaryrefslogtreecommitdiffstats
path: root/src/network/bearer/qnetworksession.cpp
diff options
context:
space:
mode:
authorPeter Hartmann <peter.hartmann@nokia.com>2011-11-01 14:20:19 +0100
committerQt by Nokia <qt-info@nokia.com>2011-11-14 18:41:17 +0100
commit4329030b77dc2faf267cecc0a8b03ce3ed3437cf (patch)
tree3c543ff088b626b3aaa5b58826b7e595776d82ca /src/network/bearer/qnetworksession.cpp
parent49bd825a9626eda77fd9e8313e1868bed4c77bff (diff)
network: remove Symbian specific code
removes several files and cleans up the code, removing all Symbian specific #ifdef's etc. Change-Id: Ie457e54cb4b3a992f251383320d47822259c38f1 Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
Diffstat (limited to 'src/network/bearer/qnetworksession.cpp')
-rw-r--r--src/network/bearer/qnetworksession.cpp47
1 files changed, 1 insertions, 46 deletions
diff --git a/src/network/bearer/qnetworksession.cpp b/src/network/bearer/qnetworksession.cpp
index 5d2dd36950..f63298dba1 100644
--- a/src/network/bearer/qnetworksession.cpp
+++ b/src/network/bearer/qnetworksession.cpp
@@ -49,11 +49,6 @@
#include "qnetworkconfigmanager_p.h"
#include "qnetworksession_p.h"
-#ifdef Q_OS_SYMBIAN
-#include <es_sock.h>
-#include <private/qcore_symbian_p.h>
-#endif
-
#ifndef QT_NO_BEARERMANAGEMENT
QT_BEGIN_NAMESPACE
@@ -362,9 +357,6 @@ void QNetworkSession::close()
underlying network interface. This function always changes the session's state() flag to
\l Disconnected.
- On Symbian platform, a 'NetworkControl' capability is required for
- full interface-level stop (without the capability, only the current session is stopped).
-
\sa open(), close()
*/
void QNetworkSession::stop()
@@ -391,9 +383,6 @@ QNetworkConfiguration QNetworkSession::configuration() const
The returned interface may change as a result of a roaming process.
- Note: this function does not work in Symbian emulator due to the way the
- connectivity is emulated on Windows.
-
\sa state()
*/
QNetworkInterface QNetworkSession::interface() const
@@ -586,7 +575,7 @@ void QNetworkSession::migrate()
*/
void QNetworkSession::ignore()
{
- // Needed on at least Symbian platform: the roaming must be explicitly
+ // Needed on mobile platforms (was needed for Symbian/S60): the roaming must be explicitly
// ignore()'d or migrate()'d
if (d)
d->ignore();
@@ -711,40 +700,6 @@ void QNetworkSession::disconnectNotify(const char *signal)
d->setALREnabled(false);
}
-#ifdef Q_OS_SYMBIAN
-RConnection* QNetworkSessionPrivate::nativeSession(QNetworkSession &s)
-{
- if (!s.d)
- return 0;
- if (s.thread() != QThread::currentThread())
- qWarning("QNetworkSessionPrivate::nativeSession called in wrong thread");
- return s.d->nativeSession();
-}
-
-TInt QNetworkSessionPrivate::nativeOpenSocket(QNetworkSession& s, RSocket& sock, TUint family, TUint type, TUint protocol)
-{
- if (!s.d)
- return 0;
- QMutexLocker lock(&(s.d->mutex));
- RConnection *con = s.d->nativeSession();
- if (!con || !con->SubSessionHandle())
- return KErrNotReady;
- return sock.Open(qt_symbianGetSocketServer(), family, type, protocol, *con);
-}
-
-TInt QNetworkSessionPrivate::nativeOpenHostResolver(QNetworkSession& s, RHostResolver& resolver, TUint family, TUint protocol)
-{
- if (!s.d)
- return 0;
- QMutexLocker lock(&(s.d->mutex));
- RConnection *con = s.d->nativeSession();
- if (!con || !con->SubSessionHandle())
- return KErrNotReady;
- return resolver.Open(qt_symbianGetSocketServer(), family, protocol, *con);
-}
-
-#endif
-
#include "moc_qnetworksession.cpp"
QT_END_NAMESPACE