[SailfishDevel] How can I check if there's internet connection already on? To avoid extra connection request dialogs
Andrey Kozhevnikov
coderusinbox at gmail.com
Tue Jan 27 12:57:01 UTC 2015
it's allowed :D
27.01.2015 16:10, Artem Marchenko пишет:
> Thanks, guys.
>
> I am only doing harbour apps (even harbour crowd is so minimal that
> limiting use to openrepos only people.. well, Jolla should really make
> adding your own libs really possible without recompiling 3rd party
> source code).
>
> Will check if QNetworkConfigurationManager is allowed.
>
> Cheers,
> Artem.
>
>
> On Sun, Jan 25, 2015 at 9:34 PM, Lorn Potter <lorn.potter at jolla.com
> <mailto:lorn.potter at jolla.com>> wrote:
>
> Hi Artem,
> It depends on if this is for a harbour app or not, as some of the
> middleware connectivity stack API is not yet available for harbour
> apps.
>
> You could (not harbour app) use libconnman-qt, which comes with a qml
> API. This is my first choice.
>
> You could use the qml dbus plugin (not sure if this is allowed in
> harbour) yourself to hook up to connman dbus API.
>
> Or you could use the QNetworkConfigurationManager API from c++.
>
>
> We really do need a better public connectivity API available. I
> will try
> to get libconnman-qt available for harbour at some point.
>
>
> -
> Lorn
>
>
> On 24/01/15 23:14, Artem Marchenko wrote:
> > 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 multitude of
> > "Connect me!" dialogs in front of the users without much need.
> >
> > Can I somehow check whether internet connection is already
> established
> > and/or monitor connection state to notice when it's on?
> >
> > Cheers,
> > Artem.
> >
> > P.S.
> > In MeeGo (and I think in iOS nowadays too) there was a way to
> tell to OS
> > that you want to communicate over net "some time soon" and OS was
> > bundling such requests to happen together. There isn't anything like
> > that in Sailfish OS, is there?
> >
> > --
> > Artem Marchenko
> > http://agilesoftwaredevelopment.com
> > http://twitter.com/AgileArtem
>
> _______________________________________________
> SailfishOS.org Devel mailing list
> To unsubscribe, please send a mail to
> devel-unsubscribe at lists.sailfishos.org
> <mailto:devel-unsubscribe at lists.sailfishos.org>
>
>
>
>
> --
> Artem Marchenko
> http://agilesoftwaredevelopment.com
> http://twitter.com/AgileArtem
>
>
> _______________________________________________
> SailfishOS.org Devel mailing list
> To unsubscribe, please send a mail to devel-unsubscribe at lists.sailfishos.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.sailfishos.org/pipermail/devel/attachments/20150127/7e474bc3/attachment-0001.html>
More information about the Devel
mailing list