<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Sep 10, 2013 at 3:26 PM, David Edmundson <span dir="ltr"><<a href="mailto:david@davidedmundson.co.uk" target="_blank">david@davidedmundson.co.uk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>> I wonder did I miss use AutomaticPresence<br>
<br>
</div>Yes, you are about the 5th person in a row to do so.<br>
I was also one of these people.<br>
<br>
automatic presence is used in conjunction with connectsAutomatically<br>
and is used to connect an account when doing<br>
account->ensureTextChannel() on an offline account.<br>
This is useful on the Nokia phones to connect the phone CM when you<br>
start a call and so on.<br>
<br>
If a requested presence is set this takes priority over<br>
automaticPresence. Automatic presence and connectsAutomatically are<br>
not used resuming from suspend or when getting a network connection.<br></blockquote><div><br><div>So there can be a moment that, network is just about to disconnect,
but isOnline is still true (due to some call are still on the fly or
whatever reason), and screensaver is on just in time hence there is a
setRequestPresence(Away) call issued?<br><br></div><div>..so do you think<br><br><a href="http://paste.kde.org/p15ed68b8" target="_blank">http://paste.kde.org/p15ed68b8</a><br><br></div>is a proper solution to the problem? <br>
<br></div><div>or the more complex version?<br><a href="http://paste.kde.org/pd132f455">http://paste.kde.org/pd132f455</a><br><br>which handle the back to connected status by account instead of global connection status.<br>
<br></div><div>I'd like to post only one patch to reviewboard but I just can't decide which version to use..<br></div><div><br></div></div>
<br></div></div>