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

Plasma

  • Plasma
  • ScriptEngine
Public Member Functions | Protected Member Functions | List of all members
Plasma::ScriptEngine Class Reference

#include <Plasma/Scripting/ScriptEngine>

Inheritance diagram for Plasma::ScriptEngine:
Inheritance graph
[legend]

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.

Plasma::ScriptEngine::ScriptEngine ( QObject *  parent = 0)
explicitprotected

Definition at line 41 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 52 of file scriptengine.cpp.

QString Plasma::ScriptEngine::mainScript ( ) const
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.

const Package * Plasma::ScriptEngine::package ( ) const
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:
  • scriptengine.h
  • scriptengine.cpp
This file is part of the KDE documentation.
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.

Plasma

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

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  • kjsembed
  •   WTF
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Nepomuk-Core
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal