Plasma
runnerscript.cpp
Go to the documentation of this file.
Plasma::DataEngine * engine(const QString &name) const
Returns a data engine object if one is loaded and available.
Definition: dataenginemanager.cpp:106
void setPriority(AbstractRunner::Priority newPriority)
Definition: runnerscript.cpp:108
void setSpeed(AbstractRunner::Speed newSpeed)
Definition: runnerscript.cpp:101
AbstractRunner * runner() const
Returns the Plasma::AbstractRunner associated with this script component.
Definition: runnerscript.cpp:54
void setSyntaxes(const QList< RunnerSyntax > &syns)
Definition: runnerscript.cpp:176
An abstract base class for Plasma Runner plugins.
Definition: abstractrunner.h:63
void setHasRunOptions(bool hasRunOptions)
Definition: runnerscript.cpp:94
QAction * addAction(const QString &id, const QIcon &icon, const QString &text)
Definition: runnerscript.cpp:124
virtual void run(const Plasma::RunnerContext &search, const Plasma::QueryMatch &action)
Called whenever an exact or possible match associated with this runner is triggered.
Definition: runnerscript.cpp:64
QHash< QString, QAction * > actions() const
Definition: runnerscript.cpp:154
void teardown()
Definition: runnersyntax.h:40
void addSyntax(const RunnerSyntax &syntax)
Definition: runnerscript.cpp:169
void prepare()
The base class for scripting interfaces to be used in loading plasmoids of a given language...
Definition: scriptengine.h:65
virtual void match(Plasma::RunnerContext &search)
Called when the script should create QueryMatch instances through RunnerContext::addInformationalMatc...
Definition: runnerscript.cpp:59
RunnerScript(QObject *parent=0)
Default constructor for a RunnerScript.
Definition: runnerscript.cpp:36
The RunnerContext class provides information related to a search, including the search term...
Definition: runnercontext.h:46
void setRunner(AbstractRunner *runner)
Sets the Plasma::AbstractRunner associated with this RunnerScript.
Definition: runnerscript.cpp:47
DataEngine * dataEngine(const QString &name)
Definition: runnerscript.cpp:70
A match returned by an AbstractRunner in response to a given RunnerContext.
Definition: querymatch.h:47
void setIgnoredTypes(RunnerContext::Types types)
Definition: runnerscript.cpp:87
KService::List serviceQuery(const QString &serviceType, const QString &constraint=QString()) const
Definition: runnerscript.cpp:115
QAction * action(const QString &id) const
Definition: runnerscript.cpp:146
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
QString filePath(const char *fileType, const QString &filename) const
Get the path to a given file.
Definition: package.cpp:213
void removeAction(const QString &id)
Definition: runnerscript.cpp:139
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.