Ticket #46496: update-QtBearer-NetworkManager-backend-API.patch
File update-QtBearer-NetworkManager-backend-API.patch, 3.0 KB (added by RJVB (René Bertin), 10 years ago) |
---|
-
qtbase/src/network/doc/src/bearermanagement.qdoc
From 151061ad4af9d1b844f0b029b4e84a3577487048 Mon Sep 17 00:00:00 2001 From: Lorn Potter <lorn.potter@jollamobile.com> Date: Fri, 3 Oct 2014 19:30:04 +1000 Subject: [PATCH] update QtBearer NetworkManager backend API Task-number: QTBUG-41747 Change-Id: Idb4afea0215b94957a11895c7db97a72ae680804 Reviewed-by: Lorn Potter <lorn.potter@gmail.com> --- src/network/doc/src/bearermanagement.qdoc | 2 +- .../networkmanager/qnetworkmanagerengine.cpp | 124 ++++++++++----------- .../bearer/networkmanager/qnetworkmanagerengine.h | 3 +- .../networkmanager/qnetworkmanagerservice.cpp | 30 ++--- .../bearer/networkmanager/qnetworkmanagerservice.h | 6 +- .../qnetworksession/test/tst_qnetworksession.cpp | 12 +- 6 files changed, 90 insertions(+), 87 deletions(-)
248 248 \li Linux uses the \l {http://projects.gnome.org/NetworkManager}{NetworkManager} 249 249 and \l {http://connman.net/}{ConnMan} / \l {http://ofono.org/}{oFono} APIs 250 250 which support interface notifications and starting and stopping of network 251 interfaces. 251 interfaces. Network Manager version 0.9 and above is supported. 252 252 \row 253 253 \li Windows\unicode{0xAE} XP 254 254 \li This platform supports interface notifications without active polling. -
qtbase/tests/auto/network/bearer/qnetworksession/test/tst_qnetworksession.cpp
279 279 << QLatin1String("WCDMA") 280 280 << QLatin1String("HSPA") 281 281 << QLatin1String("Bluetooth") 282 << QLatin1String("WiMAX"); 282 << QLatin1String("WiMAX") 283 << QLatin1String("BearerEVDO") 284 << QLatin1String("BearerLTE") 285 << QLatin1String("Bearer3G") 286 << QLatin1String("Bearer4G"); 283 287 284 288 if (!configuration.isValid()) { 285 289 QVERIFY(configuration.bearerTypeName().isEmpty()); … … 1035 1039 if (config.bearerTypeName() != "2G" && 1036 1040 config.bearerTypeName() != "CDMA2000" && 1037 1041 config.bearerTypeName() != "WCDMA" && 1038 config.bearerTypeName() != "HSPA") { 1042 config.bearerTypeName() != "HSPA" && 1043 config.bearerTypeName() != "EVDO" && 1044 config.bearerTypeName() != "LTE" && 1045 config.bearerTypeName() != "3G" && 1046 config.bearerTypeName() != "4G") { 1039 1047 // qDebug() << "Dumping config because bearer mismatches (cellular): " << config.name(); 1040 1048 discoveredConfigs.removeOne(config); 1041 1049 }