<div dir="ltr">Thanks, guys.<div><br></div><div>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).</div><div><br></div><div>Will check if <span style="font-size:13px">QNetworkConfigurationManager is allowed.</span></div><div><br></div><div>Cheers,</div><div>Artem.</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Jan 25, 2015 at 9:34 PM, Lorn Potter <span dir="ltr"><<a href="mailto:lorn.potter@jolla.com" target="_blank">lorn.potter@jolla.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Artem,<br>
It depends on if this is for a harbour app or not, as some of the<br>
middleware connectivity stack API is not yet available for harbour apps.<br>
<br>
You could (not harbour app) use libconnman-qt, which comes with a qml<br>
API. This is my first choice.<br>
<br>
You could use the qml dbus plugin (not sure if this is allowed in<br>
harbour) yourself to hook up to connman dbus API.<br>
<br>
Or you could use the QNetworkConfigurationManager API from c++.<br>
<br>
<br>
We really do need a better public connectivity API available. I will try<br>
to get libconnman-qt available for harbour at some point.<br>
<br>
<br>
-<br>
Lorn<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
On 24/01/15 23:14, Artem Marchenko wrote:<br>
> Hi All<br>
><br>
> I have some data that needs to be communicated over network, but can<br>
> wait for a while: updating feeds in the background, synching high<br>
> scores, sending stats, etc.<br>
><br>
> These things need to be communicated at some point, but can easily be<br>
> delayed without any big harm and I don't want to pop a multitude of<br>
> "Connect me!" dialogs in front of the users without much need.<br>
><br>
> Can I somehow check whether internet connection is already established<br>
> and/or monitor connection state to notice when it's on?<br>
><br>
> Cheers,<br>
> Artem.<br>
><br>
> P.S.<br>
> In MeeGo (and I think in iOS nowadays too) there was a way to tell to OS<br>
> that you want to communicate over net "some time soon" and OS was<br>
> bundling such requests to happen together. There isn't anything like<br>
> that in Sailfish OS, is there?<br>
><br>
> --<br>
> Artem Marchenko<br>
> <a href="http://agilesoftwaredevelopment.com" target="_blank">http://agilesoftwaredevelopment.com</a><br>
> <a href="http://twitter.com/AgileArtem" target="_blank">http://twitter.com/AgileArtem</a><br>
<br>
</div></div><div class="HOEnZb"><div class="h5">_______________________________________________<br>
SailfishOS.org Devel mailing list<br>
To unsubscribe, please send a mail to <a href="mailto:devel-unsubscribe@lists.sailfishos.org">devel-unsubscribe@lists.sailfishos.org</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Artem Marchenko<br><a href="http://agilesoftwaredevelopment.com" target="_blank">http://agilesoftwaredevelopment.com</a><br><a href="http://twitter.com/AgileArtem" target="_blank">http://twitter.com/AgileArtem</a></div>
</div>