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

Plasma

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

#include <Plasma/Scripting/RunnerScript>

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

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 &regExp) 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

Plasma::RunnerScript::RunnerScript ( QObject *  parent = 0)
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

QAction * Plasma::RunnerScript::action ( const QString &  id) const
protected

Definition at line 146 of file runnerscript.cpp.

QHash< QString, QAction * > Plasma::RunnerScript::actions ( ) const
protected

Definition at line 154 of file runnerscript.cpp.

void Plasma::RunnerScript::actionsForMatch ( const Plasma::QueryMatch &  match,
QList< QAction * > *  actions 
)
signal
QAction * Plasma::RunnerScript::addAction ( const QString &  id,
const QIcon &  icon,
const QString &  text 
)
protected

Definition at line 124 of file runnerscript.cpp.

void Plasma::RunnerScript::addAction ( const QString &  id,
QAction *  action 
)
protected

Definition at line 132 of file runnerscript.cpp.

void Plasma::RunnerScript::addSyntax ( const RunnerSyntax &  syntax)
protected

Definition at line 169 of file runnerscript.cpp.

void Plasma::RunnerScript::clearActions ( )
protected

Definition at line 162 of file runnerscript.cpp.

KConfigGroup Plasma::RunnerScript::config ( ) const
protected

Definition at line 79 of file runnerscript.cpp.

void Plasma::RunnerScript::createRunOptions ( QWidget *  widget)
signal
DataEngine * Plasma::RunnerScript::dataEngine ( const QString &  name)
protected
Returns
a Plasma::DataEngine matchin name
Since
4.4

Definition at line 70 of file runnerscript.cpp.

KPluginInfo Plasma::RunnerScript::description ( ) const
protected
Returns
the KPluginInfo associated with this plasmoid

Definition at line 188 of file runnerscript.cpp.

QString Plasma::RunnerScript::mainScript ( ) const
protectedvirtual
Returns
absolute path to the main script file for this plasmoid

Reimplemented from Plasma::ScriptEngine.

Definition at line 193 of file runnerscript.cpp.

void Plasma::RunnerScript::match ( Plasma::RunnerContext &  search)
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.

const Package * Plasma::RunnerScript::package ( ) const
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.

void Plasma::RunnerScript::prepare ( )
signal
void Plasma::RunnerScript::reloadConfiguration ( )
signal
void Plasma::RunnerScript::removeAction ( const QString &  id)
protected

Definition at line 139 of file runnerscript.cpp.

void Plasma::RunnerScript::run ( const Plasma::RunnerContext &  search,
const Plasma::QueryMatch &  action 
)
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.

KService::List Plasma::RunnerScript::serviceQuery ( const QString &  serviceType,
const QString &  constraint = QString() 
) const
protected

Definition at line 115 of file runnerscript.cpp.

void Plasma::RunnerScript::setHasRunOptions ( bool  hasRunOptions)
protected

Definition at line 94 of file runnerscript.cpp.

void Plasma::RunnerScript::setIgnoredTypes ( RunnerContext::Types  types)
protected

Definition at line 87 of file runnerscript.cpp.

void Plasma::RunnerScript::setPriority ( AbstractRunner::Priority  newPriority)
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.

void Plasma::RunnerScript::setSpeed ( AbstractRunner::Speed  newSpeed)
protected

Definition at line 101 of file runnerscript.cpp.

void Plasma::RunnerScript::setSyntaxes ( const QList< RunnerSyntax > &  syns)
protected

Definition at line 176 of file runnerscript.cpp.

void Plasma::RunnerScript::teardown ( )
signal

The documentation for this class was generated from the following files:
  • runnerscript.h
  • runnerscript.cpp
This file is part of the KDE documentation.
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.

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
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • 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