Plasma
runnerscript.cpp
Go to the documentation of this file.
An abstract base class for Plasma Runner plugins.
Definition abstractrunner.h:64
void setIgnoredTypes(RunnerContext::Types types)
Sets the types this runner will ignore.
Definition abstractrunner.cpp:265
QAction * action(const QString &id) const
Returns the action associated with the id.
Definition abstractrunner.cpp:190
KService::List serviceQuery(const QString &serviceType, const QString &constraint=QString()) const
Definition abstractrunner.cpp:270
void removeAction(const QString &id)
Removes the action from the action registry.
Definition abstractrunner.cpp:184
Q_INVOKABLE DataEngine * dataEngine(const QString &name) const
Loads the given DataEngine.
Definition abstractrunner.cpp:362
void addSyntax(const RunnerSyntax &syntax)
Adds a registered syntax that this runner understands.
Definition abstractrunner.cpp:97
void setSyntaxes(const QList< RunnerSyntax > &syns)
Sets the list of syntaxes; passing in an empty list effectively clears the syntaxes.
Definition abstractrunner.cpp:108
void setPriority(Priority newPriority)
Sets the priority of the runner.
Definition abstractrunner.cpp:255
QHash< QString, QAction * > actions() const
Returns all registered actions.
Definition abstractrunner.cpp:195
void setHasRunOptions(bool hasRunOptions)
Sets whether or not the runner has options for matches.
Definition abstractrunner.cpp:217
const Package * package() const
Accessor for the associated Package object if any.
Definition abstractrunner.cpp:346
QAction * addAction(const QString &id, const QIcon &icon, const QString &text)
Creates and then adds an action to the action registry.
Definition abstractrunner.cpp:172
KConfigGroup config() const
Provides access to the runner's configuration object.
Definition abstractrunner.cpp:79
Plasma::DataEngine * engine(const QString &name) const
Returns a data engine object if one is loaded and available.
Definition dataenginemanager.cpp:106
QString filePath(const char *fileType, const QString &filename) const
Get the path to a given file.
Definition package.cpp:213
A match returned by an AbstractRunner in response to a given RunnerContext.
Definition querymatch.h:48
The RunnerContext class provides information related to a search, including the search term,...
Definition runnercontext.h:47
void teardown()
AbstractRunner * runner() const
Returns the Plasma::AbstractRunner associated with this script component.
Definition runnerscript.cpp:54
void prepare()
QAction * action(const QString &id) const
Definition runnerscript.cpp:146
Definition runnersyntax.h:41
The base class for scripting interfaces to be used in loading plasmoids of a given language.
Definition scriptengine.h:66
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Wed Jan 24 2024 00:00:00 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Wed Jan 24 2024 00:00:00 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.