< Development‎ | Tutorials‎ | Plasma4
Revision as of 12:14, 24 February 2011 by Gallien (Talk | contribs) (Try to keep it the same than others)

Jump to: navigation, search


Writing a Service
Tutorial Series   Plasma Tutorial
Previous   C++, Qt, KDE4 development environment
What's Next  
Further Reading   DataEngine API, CMake Tutorials, Writing a Plasmoid (Tutorial), Writing a Data Engine (Tutorial)


cover services, .operations file, .operations dtd spec, perhaps make a service like the pastebin one or something. idk, something easy.

also mention how a service can access the dataengine via it's pointer(I think that's in public api), if it really really needs to(e.g. plasma-kdm can't live without that)

The Plasma Engine Explorer

A very useful tool for anyone writing services is the Plasma engine explorer. You can use it to see test services by launching them by running


If the service you want to test is associated to a source, you can access a dialog to launch the service and set its parameters by using the contextual menu of the source and selecting "Get associated service"


The Code

This tutorial will cover adding a service associated with a source into an existing data engine.

The Description of the Service and its parameters

Writing an Operations File

The Main Code

Responding to Request for the Service Associated to a Source

Writing the Code Executing the Action of the Service

Building it


Content is available under Creative Commons License SA 4.0 unless otherwise noted.