Here's the plasmoidviewer's output: http://paste.kde.org/80143/ (the pmSource in the output=dataEngine)
<http://paste.kde.org/80143/>Though it says dataEngine.data["AC Adapter"], dataEngine.data["Battery0"], dataEngine.data["PowerDevil"] are [undefined], I'm able to access the data associated with the sources. On Thu, Jun 9, 2011 at 3:50 PM, Viranch Mehta <viranch.me...@gmail.com>wrote: > > > On Thu, Jun 9, 2011 at 3:40 PM, Aaron J. Seigo <ase...@kde.org> wrote: > >> On Wednesday, June 8, 2011 23:20:02 Viranch Mehta wrote: >> > print(dataEngine.data["PowerDevil"]["Available profiles"]); >> >> wait .. what is "dataEngine"? is it the actual dataEngine? or? it's >> entirely >> impossible to tell what this code is actually doing without a bit more >> context. >> >> Here's the dataEngine: > > PlasmaCore.DataSource { > id: dataEngine > engine: "powermanagement" > connectedSources: ["AC Adapter", "Battery", "Battery 0", "PowerDevil"] > interval: 0 > } > > Everything else works fine. I'm able to get the battery charge info, > whether its plugged in to AC source or not, etc. > > Cheers, > Viranch > >
_______________________________________________ Plasma-devel mailing list Plasma-devel@kde.org https://mail.kde.org/mailman/listinfo/plasma-devel