Review Request: Enable System Monitor - Network to respond to newly connected network interfaces.

Shantanu Tushar Jha jhahoneyk at gmail.com
Wed Mar 11 07:28:47 CET 2009


> whenever a new source is added in the engine, the sourceAdded signal will be emitted; likewise, the sourceRemoved signal will be emitted whenever a source is removed. the applet should listen to those signals and manage its connections that way.

All is fine with sourceAdded, but somehow, engine()::sourceRemoved is
not getting emitted called when I disconnect my dial-up connection
(interface ppp0). I've notified Petri of this.

>    also, the 2000ms time out might be a bit long; 1000ms should be enough and make it feel a bit more responsive.
This will not be needed now, Petri has improved the event handling in
the applet, so it responds quickly.
So, at last I'm able to see my dial-up activity, yay :)

On Wed, Mar 11, 2009 at 3:47 AM, Aaron Seigo <aseigo at kde.org> wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://reviewboard.kde.org/r/246/#review452
> -----------------------------------------------------------
>
>
> whenever a new source is added in the engine, the sourceAdded signal will be emitted; likewise, the sourceRemoved signal will be emitted whenever a source is removed. the applet should listen to those signals and manage its connections that way.
>
> the engine half of the patch, however, can go in (without the signal)
>
>
> /trunk/KDE/kdebase/workspace/plasma/applets/system-monitor/net.cpp
> <http://reviewboard.kde.org/r/246/#comment283>
>
>    yes, this is incorrect. new monitors will be added in the engine and that will cause a sourceAdded signal to be emitted. the widget should connect to the sourceAdded signal from Plasma::DataEngine.
>
>    also, the 2000ms time out might be a bit long; 1000ms should be enough and make it feel a bit more responsive.
>
>
> - Aaron
>
>
> On 2009-03-07 10:35:00, Shantanu Tushar Jha wrote:
>>
>> -----------------------------------------------------------
>> This is an automatically generated e-mail. To reply, visit:
>> http://reviewboard.kde.org/r/246/
>> -----------------------------------------------------------
>>
>> (Updated 2009-03-07 10:35:00)
>>
>>
>> Review request for Plasma.
>>
>>
>> Summary
>> -------
>>
>> The System Monitor - Network applet is not aware of any new interfaces added, i.e. if a dial-up modem is connected, ppp0 didn't show up in the interfaces list until the applet is closed and started again.
>> This patch enables the applet to be aware of such changes, and update the list accordingly.
>>
>>
>> This addresses bug 184893.
>>     https://bugs.kde.org/show_bug.cgi?id=184893
>>
>>
>> Diffs
>> -----
>>
>>   /trunk/KDE/kdebase/workspace/plasma/applets/system-monitor/net.h 935835
>>   /trunk/KDE/kdebase/workspace/plasma/applets/system-monitor/net.cpp 935835
>>   /trunk/KDE/kdebase/workspace/plasma/dataengines/systemmonitor/systemmonitor.h 935835
>>   /trunk/KDE/kdebase/workspace/plasma/dataengines/systemmonitor/systemmonitor.cpp 935835
>>
>> Diff: http://reviewboard.kde.org/r/246/diff
>>
>>
>> Testing
>> -------
>>
>> Tested with a dial-up modem. List is updated in 2 seconds after the new interface comes into existence, or is disconnected.
>>
>>
>> Thanks,
>>
>> Shantanu
>>
>>
>
>



-- 
Shantanu Tushar    (GMT +0530)
http://www.shantanutushar.com


More information about the Plasma-devel mailing list