• Skip to content
  • Skip to link menu
KDE 4.1 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

libplasma

Plasma::RunnerScript

Plasma::RunnerScript Class Reference

#include <runnerscript.h>

Inheritance diagram for Plasma::RunnerScript:

Inheritance graph
[legend]

List of all members.


Detailed Description

Definition at line 36 of file runnerscript.h.


Public Member Functions

virtual void match (Plasma::RunnerContext &search)
virtual void run (const Plasma::RunnerContext &search, const Plasma::QueryMatch &action)
AbstractRunner * runner () const
 RunnerScript (QObject *parent=0)
void setRunner (AbstractRunner *runner)
 ~RunnerScript ()

Protected Member Functions

QString mainScript () const
const Package * package () const

Constructor & Destructor Documentation

Plasma::RunnerScript::RunnerScript ( QObject *  parent = 0  )  [explicit]

Default constructor for a RunnerScript.

Subclasses should not attempt to access the Plasma::AbstractRunner associated with this RunnerScript in the constructor. All such set up that requires the AbstractRunner itself should be done in the init() method.

Definition at line 34 of file runnerscript.cpp.

Plasma::RunnerScript::~RunnerScript (  ) 

Definition at line 40 of file runnerscript.cpp.


Member Function Documentation

QString Plasma::RunnerScript::mainScript (  )  const [protected, virtual]

Returns:
absolute path to the main script file for this plasmoid

Reimplemented from Plasma::ScriptEngine.

Definition at line 71 of file runnerscript.cpp.

void Plasma::RunnerScript::match ( Plasma::RunnerContext &  search  )  [virtual]

Called when the script should create QueryMatch instances through RunnerContext::addInformationalMatch, RunnerContext::addExactMatch, and RunnerContext::addPossibleMatch.

Definition at line 55 of file runnerscript.cpp.

const Package * Plasma::RunnerScript::package (  )  const [protected, virtual]

Returns:
the Package associated with this plasmoid which can be used to request resources, such as images and interface files.

Reimplemented from Plasma::ScriptEngine.

Definition at line 66 of file runnerscript.cpp.

void Plasma::RunnerScript::run ( const Plasma::RunnerContext &  search,
const Plasma::QueryMatch &  action 
) [virtual]

Called whenever an exact or possible match associated with this runner is triggered.

Definition at line 60 of file runnerscript.cpp.

AbstractRunner * Plasma::RunnerScript::runner (  )  const

Returns the Plasma::AbstractRunner associated with this script component.

Definition at line 50 of file runnerscript.cpp.

void Plasma::RunnerScript::setRunner ( AbstractRunner *  runner  ) 

Sets the Plasma::AbstractRunner associated with this RunnerScript.

Definition at line 45 of file runnerscript.cpp.


The documentation for this class was generated from the following files:
  • runnerscript.h
  • runnerscript.cpp

libplasma

Skip menu "libplasma"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  • KWin
  •   KWin Libraries
  • Libraries
  •   libkworkspace
  •   libplasma
  •   libsolidcontrol
  •   libtaskmanager
  • Plasma
  •   Animators
  •   Applets
  •   Engines
  • Solid Modules
Generated for API Reference by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal