Plasma
#include <Plasma/Scripting/RunnerScript>
Signals | |
void | actionsForMatch (const Plasma::QueryMatch &match, QList< QAction * > *actions) |
void | createRunOptions (QWidget *widget) |
void | prepare () |
void | reloadConfiguration () |
void | teardown () |
Public Member Functions | |
RunnerScript (QObject *parent=0) | |
~RunnerScript () | |
virtual void | match (Plasma::RunnerContext &search) |
virtual void | run (const Plasma::RunnerContext &search, const Plasma::QueryMatch &action) |
AbstractRunner * | runner () const |
void | setRunner (AbstractRunner *runner) |
Public Member Functions inherited from Plasma::ScriptEngine | |
~ScriptEngine () | |
virtual bool | init () |
Public Member Functions inherited from QObject | |
QObject (QObject *parent) | |
QObject (QObject *parent, const char *name) | |
virtual | ~QObject () |
bool | blockSignals (bool block) |
QObject * | child (const char *objName, const char *inheritsClass, bool recursiveSearch) const |
const QObjectList & | children () const |
const char * | className () const |
bool | connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const |
void | deleteLater () |
void | destroyed (QObject *obj) |
bool | disconnect (const QObject *receiver, const char *method) |
bool | disconnect (const char *signal, const QObject *receiver, const char *method) |
void | dumpObjectInfo () |
void | dumpObjectTree () |
QList< QByteArray > | dynamicPropertyNames () const |
virtual bool | event (QEvent *e) |
virtual bool | eventFilter (QObject *watched, QEvent *event) |
T | findChild (const QString &name) const |
QList< T > | findChildren (const QRegExp ®Exp) const |
QList< T > | findChildren (const QString &name) const |
bool | inherits (const char *className) const |
void | insertChild (QObject *object) |
void | installEventFilter (QObject *filterObj) |
bool | isA (const char *className) const |
bool | isWidgetType () const |
void | killTimer (int id) |
virtual const QMetaObject * | metaObject () const |
void | moveToThread (QThread *targetThread) |
const char * | name () const |
const char * | name (const char *defaultName) const |
QString | objectName () const |
QObject * | parent () const |
QVariant | property (const char *name) const |
void | removeChild (QObject *object) |
void | removeEventFilter (QObject *obj) |
void | setName (const char *name) |
void | setObjectName (const QString &name) |
void | setParent (QObject *parent) |
bool | setProperty (const char *name, const QVariant &value) |
bool | signalsBlocked () const |
int | startTimer (int interval) |
QThread * | thread () const |
Protected Member Functions | |
QAction * | action (const QString &id) const |
QHash< QString, QAction * > | actions () const |
QAction * | addAction (const QString &id, const QIcon &icon, const QString &text) |
void | addAction (const QString &id, QAction *action) |
void | addSyntax (const RunnerSyntax &syntax) |
void | clearActions () |
KConfigGroup | config () const |
DataEngine * | dataEngine (const QString &name) |
KPluginInfo | description () const |
QString | mainScript () const |
const Package * | package () const |
void | removeAction (const QString &id) |
KService::List | serviceQuery (const QString &serviceType, const QString &constraint=QString()) const |
void | setHasRunOptions (bool hasRunOptions) |
void | setIgnoredTypes (RunnerContext::Types types) |
void | setPriority (AbstractRunner::Priority newPriority) |
void | setSpeed (AbstractRunner::Speed newSpeed) |
void | setSyntaxes (const QList< RunnerSyntax > &syns) |
Protected Member Functions inherited from Plasma::ScriptEngine | |
ScriptEngine (QObject *parent=0) | |
Protected Member Functions inherited from QObject | |
bool | checkConnectArgs (const char *signal, const QObject *object, const char *method) |
virtual void | childEvent (QChildEvent *event) |
virtual void | connectNotify (const char *signal) |
virtual void | customEvent (QEvent *event) |
virtual void | disconnectNotify (const char *signal) |
int | receivers (const char *signal) const |
QObject * | sender () const |
int | senderSignalIndex () const |
virtual void | timerEvent (QTimerEvent *event) |
Additional Inherited Members | |
Static Public Member Functions inherited from QObject | |
bool | connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type) |
bool | connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type) |
bool | disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method) |
bool | disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method) |
QString | tr (const char *sourceText, const char *disambiguation, int n) |
QString | trUtf8 (const char *sourceText, const char *disambiguation, int n) |
Static Protected Member Functions inherited from QObject | |
QByteArray | normalizeSignalSlot (const char *signalSlot) |
Properties inherited from QObject | |
objectName | |
Detailed Description
Provides a restricted interface for scripting a runner.
Definition at line 40 of file runnerscript.h.
Constructor & Destructor Documentation
|
explicit |
Default constructor for a RunnerScript.
Subclasses should not attempt to access the Plasma::AbstractRunner associated with this RunnerScript in the constructor. All such set up that requires the AbstractRunner itself should be done in the init() method.
Definition at line 36 of file runnerscript.cpp.
Plasma::RunnerScript::~RunnerScript | ( | ) |
Definition at line 42 of file runnerscript.cpp.
Member Function Documentation
Definition at line 146 of file runnerscript.cpp.
Definition at line 154 of file runnerscript.cpp.
|
signal |
|
protected |
Definition at line 124 of file runnerscript.cpp.
Definition at line 132 of file runnerscript.cpp.
|
protected |
Definition at line 169 of file runnerscript.cpp.
|
protected |
Definition at line 162 of file runnerscript.cpp.
|
protected |
Definition at line 79 of file runnerscript.cpp.
|
signal |
|
protected |
|
protected |
- Returns
- the KPluginInfo associated with this plasmoid
Definition at line 188 of file runnerscript.cpp.
|
protectedvirtual |
- Returns
- absolute path to the main script file for this plasmoid
Reimplemented from Plasma::ScriptEngine.
Definition at line 193 of file runnerscript.cpp.
|
virtual |
Called when the script should create QueryMatch instances through RunnerContext::addInformationalMatch, RunnerContext::addExactMatch, and RunnerContext::addPossibleMatch.
Definition at line 59 of file runnerscript.cpp.
|
protectedvirtual |
- Returns
- the Package associated with this plasmoid which can be used to request resources, such as images and interface files.
Reimplemented from Plasma::ScriptEngine.
Definition at line 183 of file runnerscript.cpp.
|
signal |
|
signal |
|
protected |
Definition at line 139 of file runnerscript.cpp.
|
virtual |
Called whenever an exact or possible match associated with this runner is triggered.
Definition at line 64 of file runnerscript.cpp.
AbstractRunner * Plasma::RunnerScript::runner | ( | ) | const |
Returns the Plasma::AbstractRunner associated with this script component.
Definition at line 54 of file runnerscript.cpp.
|
protected |
Definition at line 115 of file runnerscript.cpp.
|
protected |
Definition at line 94 of file runnerscript.cpp.
|
protected |
Definition at line 87 of file runnerscript.cpp.
|
protected |
Definition at line 108 of file runnerscript.cpp.
void Plasma::RunnerScript::setRunner | ( | AbstractRunner * | runner | ) |
Sets the Plasma::AbstractRunner associated with this RunnerScript.
Definition at line 47 of file runnerscript.cpp.
|
protected |
Definition at line 101 of file runnerscript.cpp.
|
protected |
Definition at line 176 of file runnerscript.cpp.
|
signal |
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:23:13 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.