Re: [SailfishDevel] How can I check if there's internet connection already on? To avoid extra connection request dialogs

2015-01-24 Thread Piotr Tworek
Hi Artem, Not sure if this is the best way, but you can connect to QNetworkConfigurationManager::onlineStateChanged signal. This is what I did in YTPlayer and it works well enough. You can see it in https://github.com/tworaz/sailfish-ytplayer/blob/master/src/YTNetworkManager.cpp. Based on that you

Re: [SailfishDevel] How can I check if there's internet connection already on? To avoid extra connection request dialogs

2015-01-24 Thread Andrey Kozhevnikov
Sorry, it was my mouse pointer bad about wrong placement your message :D 24.01.2015 18:14, Artem Marchenko пишет: Hi All I have some data that needs to be communicated over network, but can wait for a while: updating feeds in the background, synching high scores, sending stats, etc. These t

Re: [SailfishDevel] How can I check if there's internet connection already on? To avoid extra connection request dialogs

2015-01-24 Thread Andrey Kozhevnikov
Hello. I'm using QNetworkConfigurationManager::isOnline() P.S. your message is somehow answer in "[WhatsAPI-Official] Image Received Event for groups" thread 24.01.2015 18:14, Artem Marchenko пишет: Hi All I have some data that needs to be communicated over network, but can wait for a whil

[SailfishDevel] How can I check if there's internet connection already on? To avoid extra connection request dialogs

2015-01-24 Thread Artem Marchenko
Hi All I have some data that needs to be communicated over network, but can wait for a while: updating feeds in the background, synching high scores, sending stats, etc. These things need to be communicated at some point, but can easily be delayed without any big harm and I don't want to pop a mu

Re: [SailfishDevel] defining version number only once

2015-01-24 Thread Artem Marchenko
Wikipedia project uses similar idea passing version string from yaml to pro to cpp to qml. And project is small (mostly educational), so it's easy to see. You can check it out at https://github.com/amarchen/Wikipedia Cheers, Artem. On Wed, Jan 7, 2015 at 10:21 AM, Luca Donaggio wrote: > This i

Re: [SailfishDevel] How to detect when an app are restored from minimized

2015-01-24 Thread Kim Foder
Hi That did solve my problem, thanks. On Sat, 2015-01-24 at 03:28 +0200, Osmo Salomaa wrote: > 24.01.2015, 01:04, Kim Foder kirjoitti: > > I believe this is because of the change where the context is freed when > > the app is minimized, so I added a call to var getContext("2d") to my > > onPaint