AFAIR, to work offline you should use QNetworkRequest::AlwaysCache as cache load control.
AFAIR, to work offline you should use QNetworkRequest::AlwaysCache as cache load control.
Oleg Shparber
Thanks Oleg, now it's working offline !
However I don't understand what PreferCache is for ? why doesn't it return cache if network is down ?
The only problem now is to detect whether device is online or offline to switch between AlwaysCache and PreferCache.
I thought QNAM::networkAccessible would do the trick but it always returns UnknownAccessibility on Symbian.
Do you have other ideas ?
Thanks
From the docs:
So, even on desktop it doesn't inform you about actual network availability. It seems Symbian version lacks even such functionality.By default the value of this property reflects the physical state of the device.
You can not switch between AlwaysCache and PreferCache, but use PreferCache and call QNetworkAccessManager::setNetworkAccessible() when network is down. To determinate this look for related Symbian API.
Oleg Shparber
Bookmarks