summaryrefslogtreecommitdiffstats
path: root/src/network/bearer/qnetworkconfigmanager.cpp
diff options
context:
space:
mode:
authorAaron McCarthy <aaron.mccarthy@nokia.com>2010-01-12 06:15:26 (GMT)
committerAaron McCarthy <aaron.mccarthy@nokia.com>2010-01-12 06:40:19 (GMT)
commite620ab4a391ea1c86718856b31f6a5c4928a18a7 (patch)
tree68bba7ebd385d1f4feda9d560c423f2f561dad9f /src/network/bearer/qnetworkconfigmanager.cpp
parentaed972b88e96596114ef8a5a350063744220f8c4 (diff)
downloadQt-e620ab4a391ea1c86718856b31f6a5c4928a18a7.zip
Qt-e620ab4a391ea1c86718856b31f6a5c4928a18a7.tar.gz
Qt-e620ab4a391ea1c86718856b31f6a5c4928a18a7.tar.bz2
Partially convert Symbian backend into a plugin.
QNetworkSession functionality not converted yet.
Diffstat (limited to 'src/network/bearer/qnetworkconfigmanager.cpp')
-rw-r--r--src/network/bearer/qnetworkconfigmanager.cpp42
1 files changed, 0 insertions, 42 deletions
diff --git a/src/network/bearer/qnetworkconfigmanager.cpp b/src/network/bearer/qnetworkconfigmanager.cpp
index 7f58e07..f4daf4a 100644
--- a/src/network/bearer/qnetworkconfigmanager.cpp
+++ b/src/network/bearer/qnetworkconfigmanager.cpp
@@ -41,12 +41,8 @@
#include "qnetworkconfigmanager.h"
-#ifdef Q_OS_SYMBIAN
-#include "qnetworkconfigmanager_s60_p.h"
-#else
#include "qnetworkconfigmanager_p.h"
#include "qnetworksessionengine_p.h"
-#endif
#include <QtCore/qstringlist.h>
@@ -54,12 +50,10 @@ QT_BEGIN_NAMESPACE
Q_GLOBAL_STATIC(QNetworkConfigurationManagerPrivate, connManager);
-#ifndef Q_OS_SYMBIAN
QNetworkConfigurationManagerPrivate *qNetworkConfigurationManagerPrivate()
{
return connManager();
}
-#endif
/*!
\class QNetworkConfigurationManager
@@ -238,32 +232,6 @@ QList<QNetworkConfiguration> QNetworkConfigurationManager::allConfigurations(QNe
QList<QNetworkConfiguration> result;
QNetworkConfigurationManagerPrivate* conPriv = connManager();
-#ifdef Q_OS_SYMBIAN
- QList<QString> cpsIdents = conPriv->accessPointConfigurations.keys();
-
- //find all InternetAccessPoints
- foreach (const QString &ii, cpsIdents) {
- QExplicitlySharedDataPointer<QNetworkConfigurationPrivate> p =
- conPriv->accessPointConfigurations.value(ii);
- if ( (p->state & filter) == filter ) {
- QNetworkConfiguration pt;
- pt.d = conPriv->accessPointConfigurations.value(ii);
- result << pt;
- }
- }
-
- //find all service networks
- cpsIdents = conPriv->snapConfigurations.keys();
- foreach (const QString &ii, cpsIdents) {
- QExplicitlySharedDataPointer<QNetworkConfigurationPrivate> p =
- conPriv->snapConfigurations.value(ii);
- if ( (p->state & filter) == filter ) {
- QNetworkConfiguration pt;
- pt.d = conPriv->snapConfigurations.value(ii);
- result << pt;
- }
- }
-#else
foreach (QNetworkSessionEngine *engine, conPriv->sessionEngines) {
QStringList cpsIdents = engine->accessPointConfigurations.keys();
@@ -290,7 +258,6 @@ QList<QNetworkConfiguration> QNetworkConfigurationManager::allConfigurations(QNe
}
}
}
-#endif
return result;
}
@@ -307,14 +274,6 @@ QNetworkConfiguration QNetworkConfigurationManager::configurationFromIdentifier(
QNetworkConfiguration item;
-#ifdef Q_OS_SYMBIAN
- if (conPriv->accessPointConfigurations.contains(identifier))
- item.d = conPriv->accessPointConfigurations.value(identifier);
- else if (conPriv->snapConfigurations.contains(identifier))
- item.d = conPriv->snapConfigurations.value(identifier);
- else if (conPriv->userChoiceConfigurations.contains(identifier))
- item.d = conPriv->userChoiceConfigurations.value(identifier);
-#else
foreach (QNetworkSessionEngine *engine, conPriv->sessionEngines) {
if (engine->accessPointConfigurations.contains(identifier))
item.d = engine->accessPointConfigurations.value(identifier);
@@ -327,7 +286,6 @@ QNetworkConfiguration QNetworkConfigurationManager::configurationFromIdentifier(
return item;
}
-#endif
return item;
}