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

Plasma

Plasma::ScriptEngine

Plasma::ScriptEngine Class Reference

The base class for scripting interfaces to be used in loading plasmoids of a given language. More...

#include <Plasma/Scripting/ScriptEngine>

Inheritance diagram for Plasma::ScriptEngine:
QObject Plasma::AppletScript Plasma::DataEngineScript Plasma::RunnerScript

List of all members.

Public Member Functions

virtual bool init ()
 ~ScriptEngine ()

Protected Member Functions

virtual QString mainScript () const
virtual const Package * package () const
 ScriptEngine (QObject *parent=0)

Detailed Description

The base class for scripting interfaces to be used in loading plasmoids of a given language.

All ScriptEngines should export as consistent an interface as possible so that the learning curve is limited. In particular, the following API should be made available in the script environment:

TODO: define the actual scripting APIas ... PlasmaApplet - the applet of this plasmoid LoadUserInterface(String uiFile) - loads and returns a given UI file LoadImage - loads an image resource out of the plasmoid's package PlasmaSvg - creates and returns an Svg file

Definition at line 63 of file scriptengine.h.


Constructor & Destructor Documentation

Plasma::ScriptEngine::~ScriptEngine (  ) 

Definition at line 45 of file scriptengine.cpp.

Plasma::ScriptEngine::ScriptEngine ( QObject *  parent = 0  )  [explicit, protected]

Definition at line 39 of file scriptengine.cpp.


Member Function Documentation

bool Plasma::ScriptEngine::init (  )  [virtual]

Called when it is safe to initialize the internal state of the engine.

Definition at line 50 of file scriptengine.cpp.

QString Plasma::ScriptEngine::mainScript (  )  const [protected, virtual]
Returns:
absolute path to the main script file for this plasmoid

Reimplemented in Plasma::AppletScript, Plasma::DataEngineScript, and Plasma::RunnerScript.

Definition at line 60 of file scriptengine.cpp.

const Package * Plasma::ScriptEngine::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 in Plasma::AppletScript, Plasma::DataEngineScript, and Plasma::RunnerScript.

Definition at line 55 of file scriptengine.cpp.


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

Plasma

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

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.6.1
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