From 3dc47622a469ded1c99397fdedc2053b73d57189 Mon Sep 17 00:00:00 2001 From: Peter Hartmann Date: Fri, 25 Jan 2013 09:38:47 +0100 Subject: BlackBerry bearer plugin: check whether device is online several times This is supposed to workaround a race condition in the underlying netstatus API: Sometimes we get an event that the Wifi interface changed, but it is not up, e.g. no gateway (yet). In that case we need to check back (currently: 300 ms) whether the interface has come up or not. This commit can be reverted again once the race condition in the netstatus API has been resolved. Task-number: QTBUG-29421 Change-Id: I215ce8aae4848b6e942e77c6425adba90e9cc526 Reviewed-by: Sean Harmer Reviewed-by: Rafael Roquetto --- src/network/bearer/qnetworkconfiguration_p.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/network/bearer/qnetworkconfiguration_p.h') diff --git a/src/network/bearer/qnetworkconfiguration_p.h b/src/network/bearer/qnetworkconfiguration_p.h index a2ab83d395..20353726ac 100644 --- a/src/network/bearer/qnetworkconfiguration_p.h +++ b/src/network/bearer/qnetworkconfiguration_p.h @@ -59,6 +59,10 @@ #include #include +#ifdef Q_OS_BLACKBERRY +#include +#endif + QT_BEGIN_NAMESPACE typedef QExplicitlySharedDataPointer QNetworkConfigurationPrivatePointer; @@ -70,6 +74,9 @@ public: type(QNetworkConfiguration::Invalid), purpose(QNetworkConfiguration::UnknownPurpose), bearerType(QNetworkConfiguration::BearerUnknown), +#ifdef Q_OS_BLACKBERRY + oldIpStatus(NETSTATUS_IP_STATUS_ERROR_UNKNOWN), +#endif isValid(false), roamingSupported(false) {} virtual ~QNetworkConfigurationPrivate() @@ -90,6 +97,10 @@ public: QNetworkConfiguration::Purpose purpose; QNetworkConfiguration::BearerType bearerType; +#ifdef Q_OS_BLACKBERRY + netstatus_ip_status_t oldIpStatus; +#endif + bool isValid; bool roamingSupported; -- cgit v1.2.3