Active Topics

 


Reply
Thread Tools
Posts: 3,328 | Thanked: 4,476 times | Joined on May 2011 @ Poland
#1
Hi,
I make an app for Fremantle and Harmattan, but there's a problem when running on Harmattan.
This code run properly on Fremantle, but on Harmattan doesn't.
Code:
    QNetworkConfigurationManager manager;
    QNetworkConfiguration cfg = manager.defaultConfiguration();
    if (manager.isOnline() == false) return static_cast<CURLcode>(-2);
On Harmattan, if there was no internet connection the first time the function was run, there is always manager.isOnline == false
(run when no internet, enabled internet, run with internet accessible)
This is returned that way even when I can browse the net with the built-in browser.

After restarting the application with internet connection on, the function runs properly. But why is QNetworkConfigurationManager malfunctioning?

Thanks in advance
__________________
If you want to support my work, you can donate by PayPal or Flattr

Projects no longer actively developed: here
 
Posts: 1,313 | Thanked: 2,977 times | Joined on Jun 2011 @ Finland
#2
 
Posts: 3,328 | Thanked: 4,476 times | Joined on May 2011 @ Poland
#3
Originally Posted by ajalkane View Post
Maybe this will help you:

http://talk.maemo.org/showpost.php?p...37&postcount=2
This is what didn't work in Fremantle I removed the QNetworkSession stuff as it didn't detect libcurl want data from network.
__________________
If you want to support my work, you can donate by PayPal or Flattr

Projects no longer actively developed: here
 
Posts: 3,328 | Thanked: 4,476 times | Joined on May 2011 @ Poland
#4
It seems to be the same as here: http://qt-project.org/forums/viewthread/10955
__________________
If you want to support my work, you can donate by PayPal or Flattr

Projects no longer actively developed: here
 
Reply


 
Forum Jump


All times are GMT. The time now is 01:16.