Plasma
scriptengine.cpp
Go to the documentation of this file.
ScriptEngine * loadEngine(const QString &language, ComponentType type, QObject *parent)
Definition: scriptengine.cpp:165
QString & append(QChar ch)
void setDataEngine(DataEngine *dataEngine)
Sets the Plasma::DataEngine associated with this DataEngineScript.
Definition: dataenginescript.cpp:46
ComponentType
The ComonentType enumeration refers to the various types of components, or plugins, supported by plasma.
Definition: plasma.h:225
Provides a restricted interface for scripting a runner.
Definition: runnerscript.h:40
An abstract base class for Plasma Runner plugins.
Definition: abstractrunner.h:63
bool contains(const QString &str, Qt::CaseSensitivity cs) const
Provides a restricted interface for scripting a Wallpaper.
Definition: wallpaperscript.h:42
AppletScript * loadScriptEngine(const QString &language, Applet *applet)
Loads an Applet script engine for the given language.
Definition: scriptengine.cpp:206
PackageStructure::Ptr defaultPackageStructure(ComponentType type)
Definition: scriptengine.cpp:254
int indexIn(const QString &str, int offset, CaretMode caretMode) const
Definition: plasma.h:232
virtual const Package * package() const
Definition: scriptengine.cpp:57
void append(const T &value)
bool isEmpty() const
The base class for scripting interfaces to be used in loading plasmoids of a given language...
Definition: scriptengine.h:65
Provides a restricted interface for scripting a DataEngine.
Definition: dataenginescript.h:41
Provides a restricted interface for scripted applets.
Definition: appletscript.h:51
static PackageStructure::Ptr load(const QString &packageFormat)
Loads a package format by name.
Definition: packagestructure.cpp:119
void setWallpaper(Wallpaper *wallpaper)
Sets the Plasma::Wallpaper associated with this WallpaperScript.
Definition: wallpaperscript.cpp:45
void setRunner(AbstractRunner *runner)
Sets the Plasma::AbstractRunner associated with this RunnerScript.
Definition: runnerscript.cpp:47
static QScriptValue type(QScriptContext *ctx, QScriptEngine *eng)
Definition: easingcurve.cpp:63
QStringList knownLanguages(ComponentTypes types)
Definition: scriptengine.cpp:67
void setApplet(Plasma::Applet *applet)
Sets the applet associated with this AppletScript.
Definition: appletscript.cpp:52
virtual bool init()
Called when it is safe to initialize the internal state of the engine.
Definition: scriptengine.cpp:52
PackageStructure::Ptr packageStructure(const QString &language, ComponentType type)
Loads an appropriate PackageStructure for the given language and type.
Definition: scriptengine.cpp:274
QString arg(qlonglong a, int fieldWidth, int base, const QChar &fillChar) const
KService::List engineOffers(const QString &language, ComponentType type)
Definition: scriptengine.cpp:122
A description of the expected file structure of a given package type.
Definition: packagestructure.h:72
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:23:12 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:23:12 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.