Review Request: Allow to know if the machine have batteries during plasma init ( scripting )

Sebastian Kügler sebas at kde.org
Thu Jan 28 02:21:28 CET 2010


On Wednesday 27 January 2010 21:32:17 Wayne Speir wrote:
> http://reviewboard.kde.org/r/2741/#review3920

> /trunk/KDE/kdebase/workspace/plasma/desktop/shell/scripting/scriptengine.cp
> p <http://reviewboard.kde.org/r/2741/#comment3308>
> 
>     Do you want to check that 'engines' is not NULL?

Shouldn't be necessary:

"On failure, the fallback NullEngine (which does nothing and !isValid()) is 
returned."

http://api.kde.org/4.x-api/kdelibs-
apidocs/plasma/html/classPlasma_1_1DataEngineManager.html#a1e34f80e16f6171930320ff734ef014b
-- 
sebas

 http://www.kde.org | http://vizZzion.org |  GPG Key ID: 9119 0EF9 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 489 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/plasma-devel/attachments/20100128/97b6b0ec/attachment.sig 


More information about the Plasma-devel mailing list