Plasma
#include <Plasma/Scripting/ScriptEngine>
Public Member Functions | |
~ScriptEngine () | |
virtual bool | init () |
Protected Member Functions | |
ScriptEngine (QObject *parent=0) | |
virtual QString | mainScript () const |
virtual const Package * | package () const |
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 65 of file scriptengine.h.
Constructor & Destructor Documentation
Plasma::ScriptEngine::~ScriptEngine | ( | ) |
Definition at line 47 of file scriptengine.cpp.
|
explicitprotected |
Definition at line 41 of file scriptengine.cpp.
Member Function Documentation
|
virtual |
Called when it is safe to initialize the internal state of the engine.
Definition at line 52 of file scriptengine.cpp.
|
protectedvirtual |
- Returns
- absolute path to the main script file for this plasmoid
Reimplemented in Plasma::AppletScript, Plasma::WallpaperScript, Plasma::DataEngineScript, and Plasma::RunnerScript.
Definition at line 62 of file scriptengine.cpp.
|
protectedvirtual |
- 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::WallpaperScript, Plasma::DataEngineScript, and Plasma::RunnerScript.
Definition at line 57 of file scriptengine.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:48:35 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.