Calling dataengine service operation from QML plasmoid

Marco Martin notmart at gmail.com
Fri Jun 3 10:05:53 CEST 2011


On Fri, Jun 3, 2011 at 12:01 AM, Viranch Mehta <viranch.mehta at gmail.com> wrote:
> Hi there,
> I want to call a the service operation setBrightness available in
> powermanagement dataengine from my qml plasmoid. The service associated with
> all the sources. How can I go about doing that?
> dataSource.data["PowerDevil"]["setBrightness"][70] ?
> Cheers,
> Viranch

no.
look at how the nowplaying qml applet is done.
basically on top of my head, service = dataSource.serviceForSource("PowerDevil")
operation=service.operationDescription("setBrightness")
operation.brightness = 70
service.startOperationCall(operation)


More information about the Plasma-devel mailing list