how to access data from dataEngine::query in javascript?

Aaron J. Seigo aseigo at kde.org
Tue Jun 29 17:12:04 CEST 2010


On June 29, 2010, Thomas Fjellstrom wrote:
> I'm working on a plasmoid which uses a dataengine, and I can't for the life
> of me figure out how to actually access the data from the return value of:
> 
> dataEngine("foo").query("bar")

this was working, then at some point stopped working and i never figured out 
why. the wrapping of the DataEngine::Data hash is not happening properly, but 
only when called from query(). it needs to be investigated further.

however, you probably don't want to be using query() in the first place since 
it does not work with any asynchronous source ... which includes remote 
widgets.

try connecting to the source with a callback instead.

-- 
Aaron J. Seigo
humru othro a kohnu se
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA  EE75 D6B7 2EB1 A7F1 DB43

KDE core developer sponsored by Qt Development Frameworks
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/plasma-devel/attachments/20100629/b8d8e486/attachment.sig 


More information about the Plasma-devel mailing list