}
/*!
- \fn QString QNetworkConfiguration::bearerName() const
- \deprecated
-
- This function is deprecated. It is equivalent to calling bearerTypeName(), however
- bearerType() should be used in preference.
-*/
-
-/*!
Returns the type of bearer used by this network configuration.
If the bearer type is \l {QNetworkConfiguration::BearerUnknown}{unknown} the bearerTypeName()
<< QLatin1String("WiMAX");
if (!configuration.isValid()) {
- QVERIFY(configuration.bearerName().isEmpty());
+ QVERIFY(configuration.bearerTypeName().isEmpty());
} else {
switch (configuration.type())
{
case QNetworkConfiguration::ServiceNetwork:
case QNetworkConfiguration::UserChoice:
default:
- QVERIFY(configuration.bearerName().isEmpty());
+ QVERIFY(configuration.bearerTypeName().isEmpty());
break;
case QNetworkConfiguration::InternetAccessPoint:
- QVERIFY(validBearerNames.contains(configuration.bearerName()));
+ QVERIFY(validBearerNames.contains(configuration.bearerTypeName()));
break;
}
}
discoveredConfigs.removeOne(config);
} else if ((config.type() == QNetworkConfiguration::InternetAccessPoint) &&
bearerType == "cellular") { // 'cellular' bearertype is for convenience
- if (config.bearerName() != "2G" &&
- config.bearerName() != "CDMA2000" &&
- config.bearerName() != "WCDMA" &&
- config.bearerName() != "HSPA") {
+ if (config.bearerTypeName() != "2G" &&
+ config.bearerTypeName() != "CDMA2000" &&
+ config.bearerTypeName() != "WCDMA" &&
+ config.bearerTypeName() != "HSPA") {
// qDebug() << "Dumping config because bearer mismatches (cellular): " << config.name();
discoveredConfigs.removeOne(config);
}
} else if ((config.type() == QNetworkConfiguration::InternetAccessPoint) &&
- bearerType != config.bearerName()) {
+ bearerType != config.bearerTypeName()) {
// qDebug() << "Dumping config because bearer mismatches (WLAN): " << config.name();
discoveredConfigs.removeOne(config);
}