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

Shantanu Tushar Jha jhahoneyk at gmail.com
Tue Mar 10 19:37:27 CET 2009


The problem is that the dataengine doesn't send a request to KSGRD for
new monitors when those signals are emitted. So I had to add this to
the dataengine-

    KSGRD::SensorMgr->sendRequest("localhost",
"monitors",(KSGRD::SensorClient*)this, -1);

This refreshes the monitors list, which, thankfully works :)


2009/3/10 Petri Damstén <petri.damsten at gmail.com>:
> On Tuesday 10 March 2009 19:51:02 Chani wrote:
>> -----------------------------------------------------------
>> This is an automatically generated e-mail. To reply, visit:
>> http://reviewboard.kde.org/r/246/#review442
>> -----------------------------------------------------------
>>
>>
>>
>> /trunk/KDE/kdebase/workspace/plasma/applets/system-monitor/net.cpp
>> <http://reviewboard.kde.org/r/246/#comment273>
>>
>>     this... feels wrong. like there should be a way to do it without adding
>> signals to the dataengine, just using the regular dataUpdated stuff...
>> aaron? what's the Right way to do this?
>
> Shouldn't the existing sourceAdded and sourceRemoved signals be enough if they
> are handled correctly in applet?
>
> Petri
>
>
> _______________________________________________
> Plasma-devel mailing list
> Plasma-devel at kde.org
> https://mail.kde.org/mailman/listinfo/plasma-devel
>
>



-- 
Shantanu Tushar
http://www.shantanutushar.com


More information about the Plasma-devel mailing list