<div dir="ltr"><div>aaaand? =)<br></div>The question is how to make QNetworkAccessManager work<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Nov 10, 2015 at 1:38 PM, Andrey Kozhevnikov <span dir="ltr"><<a href="mailto:coderusinbox@gmail.com" target="_blank">coderusinbox@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div>
<div>QNetworkConfigurationManager have signal: onlineStateChanged(bool) </div>
<div> </div>
<div>------ Исходное сообщение ------</div>
<div>От: "Alexander Ladygin" <<a href="mailto:fake.ae@gmail.com" target="_blank">fake.ae@gmail.com</a>></div>
<div>Кому: <a href="mailto:aaron.mccarthy@jolla.com" target="_blank">aaron.mccarthy@jolla.com</a>; "Sailfish OS Developers" <<a href="mailto:devel@lists.sailfishos.org" target="_blank">devel@lists.sailfishos.org</a>></div>
<div>Отправлено: 10.11.2015 14:06:12</div>
<div>Тема: Re: [SailfishDevel] QNetworkAccessManager is losing connection upon switching between wifi and mobile</div><div><div class="h5">
<div> </div>
<div>
<blockquote cite="http://CAD+BcNBZ4SAp+4iR20RvHMYBQqvzj0hjbysQ06fpVQX3hPe2nQ@mail.gmail.com" type="cite">
<div dir="ltr">in addition: even if i create new object instance for <span>QNetworkAccessManager, it still won't connect to internet, as if it still uses WiFi "globally" even though wifi is off<br></span></div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Tue, Nov 10, 2015 at 11:07 AM, Alexander Ladygin <span dir="ltr"><<a href="mailto:fake.ae@gmail.com" target="_blank">fake.ae@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT:1ex;BORDER-LEFT:#ccc 1px solid;MARGIN:0px 0px 0px 0.8ex">
<div dir="ltr">but how exactly can i make disconnect? All the network requests i send with <span>QNetworkAccessManager</span> after switching to mobile are returned with errors =(<br></div>
<div>
<div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Tue, Nov 10, 2015 at 4:05 AM, Aaron McCarthy <span dir="ltr"><<a href="mailto:aaron.mccarthy@jolla.com" target="_blank">aaron.mccarthy@jolla.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT:1ex;BORDER-LEFT:#ccc 1px solid;MARGIN:0px 0px 0px 0.8ex"><span>On Tue, 10 Nov 2015 03:37:10 Alexander Ladygin wrote:<br>> I've got an issue: QNetworkAccessManager is losing connection upon<br>> switching between wifi and mobile:( What exactly should i do/update to make<br>> it work properly? Maybe need to change network configuration? Why it is not<br>> handled by platform?<br><br></span>There is some support for migrating connections to the new interface. QNAM<br>supports resuming GET operations under the following conditions:<br><br>1. Only GET requests are resumed.<br>2. No outgoing data.<br>3. Server supports HTTP Accept-Ranges.<br>4. Does not work with QNAM's zero-copy feature.<br>5. Must be using bearer management.<br><br>For other operations and GET requests that do not meet the above, you will<br>need to handle the network disconnection and resend the request.<br><br>Cheers,<br><span><font color="#888888"><br>--<br>Aaron McCarthy<br>_______________________________________________<br>SailfishOS.org Devel mailing list<br>To unsubscribe, please send a mail to <a href="mailto:devel-unsubscribe@lists.sailfishos.org" target="_blank">devel-unsubscribe@lists.sailfishos.org</a><br></font></span></blockquote></div><br></div></div></div></blockquote></div><br></div></blockquote></div></div></div></div><br>_______________________________________________<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></blockquote></div><br></div>