Development/Tutorials/Plasma4/AbstractRunner

From KDE TechBase
Revision as of 05:52, 31 October 2007 by Aseigo (talk | contribs) (New page: {{TutorialBrowser| series=Plasma| name=Creating Runners| }} == Abstract == The Plasma workspace provides an application called KRunner which, among other things, allows one to type in...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Creating Runners
Tutorial Series   Plasma
Previous   None
What's Next   n/a
Further Reading   n/a

Abstract

The Plasma workspace provides an application called KRunner which, among other things, allows one to type into a text area which causes various actions and information that match the text appear as the text is being typed.

This functionality is provided via plugins called "runners". These plugins can be used by any application that links again libplasma. This tutorial explores how to create a runner.

The AbstractRunner Superclass

The SearchContext and SearchAction Classes

Setting up a Runner Plugin Project

The CMakeLists.txt File

The .desktop Servies File

Registering Matches

Taking Action On Matches

Configuration Interfaces

Runner Options

Match Result Options