From kde-panel-devel Wed Jun 30 14:50:23 2010 From: Thomas Fjellstrom Date: Wed, 30 Jun 2010 14:50:23 +0000 To: kde-panel-devel Subject: Re: how to use a Service in javascript widget? Message-Id: <201006300850.23908.tfjellstrom () shaw ! ca> X-MARC-Message: https://marc.info/?l=kde-panel-devel&m=127790947926676 On June 30, 2010, Marco Martin wrote: > On Wednesday 30 June 2010, Thomas Fjellstrom wrote: > > I've tried to "port" some C++ example code to a javascript widget to > > try and access the service operations in a data engine: > > > > service = networkinfo.serviceForSource("manual"); > > // also tried: > > // service = plasmoid.service("networkinfo", "manual") > > // which complains that service isn't a function > > op = service.operationDescription("addHost"); > > op.writeEntry("name", "boris"); > > job = service.startOperationCall(op); > > job.finished.connect(function() { print("job done!"); }); > > > > Unfortunately the plasmoidviewer complains that op.writeEntry is not a > > function. Is this supposed to be possible in 4.4.4? > > op["name"] = boris Thanks for that :) I've got the very beginnings of my plasmoid working :D Though I have another question which I'll send in a separate message. > Cheers, > Marco Martin > _______________________________________________ > Plasma-devel mailing list > Plasma-devel@kde.org > https://mail.kde.org/mailman/listinfo/plasma-devel -- Thomas Fjellstrom tfjellstrom@shaw.ca _______________________________________________ Plasma-devel mailing list Plasma-devel@kde.org https://mail.kde.org/mailman/listinfo/plasma-devel