[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-panel-devel
Subject: how to use a Service in javascript widget?
From: Thomas Fjellstrom <tfjellstrom () shaw ! ca>
Date: 2010-06-30 10:47:17
Message-ID: 201006300447.18187.tfjellstrom () shaw ! ca
[Download RAW message or body]
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?
Just for kicks I tried waiting for a couple second before running that code,
it didn't seem to help.
--
Thomas Fjellstrom
tfjellstrom@shaw.ca
_______________________________________________
Plasma-devel mailing list
Plasma-devel@kde.org
https://mail.kde.org/mailman/listinfo/plasma-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic