<html>
<body>
<div style="font-family: Verdana, Arial, Helvetica, Sans-Serif;">
<table bgcolor="#f9f3c9" width="100%" cellpadding="12" style="border: 1px #c9c399 solid; border-radius: 6px; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
<tr>
<td>
This is an automatically generated e-mail. To reply, visit:
<a href="https://git.reviewboard.kde.org/r/126748/">https://git.reviewboard.kde.org/r/126748/</a>
</td>
</tr>
</table>
<br />
<blockquote style="margin-left: 1em; border-left: 2px solid #d0d0d0; padding-left: 10px;">
<p style="margin-top: 0;">On leden 14th, 2016, 6:22 odp. UTC, <b>Martin Klapetek</b> wrote:</p>
<blockquote style="margin-left: 1em; border-left: 2px solid #d0d0d0; padding-left: 10px;">
<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;">It should probably still show when you get disconnected and *not* reconnected (to any network) on resume?</pre>
</blockquote>
<p>On leden 14th, 2016, 6:33 odp. UTC, <b>Kai Uwe Broulik</b> wrote:</p>
<blockquote style="margin-left: 1em; border-left: 2px solid #d0d0d0; padding-left: 10px;">
<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;"><p style="padding: 0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: inherit;">Doesn't it tell you that anyway? At least when I try to connect to something and it fails I get like 3 notifications about different failures.</p></pre>
</blockquote>
<p>On leden 14th, 2016, 6:37 odp. UTC, <b>Martin Klapetek</b> wrote:</p>
<blockquote style="margin-left: 1em; border-left: 2px solid #d0d0d0; padding-left: 10px;">
<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;"><p style="padding: 0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: inherit;">What I mean is when you suspend your laptop at home, connected to your home network, you go out and resume your laptop say at your friend where you didn't connect to the wifi before, so it's unknown and your laptop will not connect to anything and will not even try. At that point, it should show a "disconnected" notification, maybe?</p></pre>
</blockquote>
<p>On leden 14th, 2016, 9:08 odp. UTC, <b>Kai Uwe Broulik</b> wrote:</p>
<blockquote style="margin-left: 1em; border-left: 2px solid #d0d0d0; padding-left: 10px;">
<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;"><p style="padding: 0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: inherit;">Ah, I see. How should I do that? If it disconnected on suspend and didn't attempt to reconnect within 5 seconds show a notification that you're no longer connected?</p></pre>
</blockquote>
<p>On leden 15th, 2016, 8:42 dop. UTC, <b>Jan Grulich</b> wrote:</p>
<blockquote style="margin-left: 1em; border-left: 2px solid #d0d0d0; padding-left: 10px;">
<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;"><p style="padding: 0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: inherit;">The patch looks good and makes sense. Do I get it right that once you resume your computer then PrepareForSleep signal is emitted with false value to re-enable showing notifications? What Martin suggests is also a good idea, maybe not showing a notification that you got disconnected, but just make you aware you are no longer connected. What would be also useful to store all connections which got disconnected before suspend and on resume do not show notification about their activation if they were active before suspend, just with an exception if you activate them manually (which will be case mostly for VPN connections).</p></pre>
</blockquote>
<p>On leden 15th, 2016, 2:13 odp. UTC, <b>Kai Uwe Broulik</b> wrote:</p>
<blockquote style="margin-left: 1em; border-left: 2px solid #d0d0d0; padding-left: 10px;">
<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;"><p style="padding: 0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: inherit;">Yes, prepareForSleep is emitted again on resume with the parameter being false.</p>
<p style="padding: 0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: inherit;">So, I'll store the connections that were active at the time of suspend in a vector, when I resume:
- I don't show a connect notification about a connection that was active prior to suspend
- I show a notification "You are no longer connected" when after like 5 seconds up no connection is active or connecting</p></pre>
</blockquote>
<p>On leden 15th, 2016, 2:36 odp. UTC, <b>Kai Uwe Broulik</b> wrote:</p>
<blockquote style="margin-left: 1em; border-left: 2px solid #d0d0d0; padding-left: 10px;">
<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;"><p style="padding: 0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: inherit;">When I store the notification it is for example /activeconnection/2 but on resume I have /activeconnection/3, how can I map the new connection to the old one? Or do I need to do that manually, like look at Access Point and stuff like that, but how would that scale with all the other types we have?</p></pre>
</blockquote>
</blockquote>
<pre style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;"><p style="padding: 0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: inherit;">1) Be aware that not all connections can be auto-activated again (I can think of VPN connections) and those that are not auto-activated need manuall intervention. I would ignore those as it is sure that they were manually activated and thus users should be notified about succesful activation.
2) Sounds good</p>
<ul style="padding: 0;text-rendering: inherit;margin: 0 0 0 1em;line-height: inherit;white-space: normal;">
<li style="padding: 0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: normal;">please add Lamarque to the review, maybe he can think of another possible use case</li>
</ul></pre>
<br />
<p>- Jan</p>
<br />
<p>On leden 14th, 2016, 6:19 odp. UTC, Kai Uwe Broulik wrote:</p>
<table bgcolor="#fefadf" width="100%" cellspacing="0" cellpadding="12" style="border: 1px #888a85 solid; border-radius: 6px; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
<tr>
<td>
<div>Review request for Plasma and Jan Grulich.</div>
<div>By Kai Uwe Broulik.</div>
<p style="color: grey;"><i>Updated Led. 14, 2016, 6:19 odp.</i></p>
<div style="margin-top: 1.5em;">
<b style="color: #575012; font-size: 10pt;">Repository: </b>
plasma-nm
</div>
<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Description </h1>
<table width="100%" bgcolor="#ffffff" cellspacing="0" cellpadding="10" style="border: 1px solid #b8b5a0">
<tr>
<td>
<pre style="margin: 0; padding: 0; white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;"><p style="padding: 0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: inherit;">It's quite natural that the connection goes away when we're about to suspend :) Watch for this and then don't emit the notification.</p></pre>
</td>
</tr>
</table>
<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Testing </h1>
<table width="100%" bgcolor="#ffffff" cellspacing="0" cellpadding="10" style="border: 1px solid #b8b5a0">
<tr>
<td>
<pre style="margin: 0; padding: 0; white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;"><p style="padding: 0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: inherit;">While I still think Plasma-NM is waaaaaay too verbose about everything, at least it doesn't tell me that I just disconnected when I suspend.</p>
<p style="padding: 0;text-rendering: inherit;margin: 0;line-height: inherit;white-space: inherit;">I still get the notification when I turn off Wifi manually.
I also still get the notification that I'm connected again shortly after resuming.</p></pre>
</td>
</tr>
</table>
<h1 style="color: #575012; font-size: 10pt; margin-top: 1.5em;">Diffs</b> </h1>
<ul style="margin-left: 3em; padding-left: 0;">
<li>kded/notification.h <span style="color: grey">(9b8b51a)</span></li>
<li>kded/notification.cpp <span style="color: grey">(231d69e)</span></li>
</ul>
<p><a href="https://git.reviewboard.kde.org/r/126748/diff/" style="margin-left: 3em;">View Diff</a></p>
</td>
</tr>
</table>
</div>
</body>
</html>