#include <Plasma/Scripting/DataEngineScript>
|
| DataEngineScript (QObject *parent=0) |
|
| ~DataEngineScript () |
|
DataEngine * | dataEngine () const |
|
virtual Service * | serviceForSource (const QString &source) |
|
void | setDataEngine (DataEngine *dataEngine) |
|
virtual bool | sourceRequestEvent (const QString &name) |
|
virtual QStringList | sources () const |
|
virtual bool | updateSourceEvent (const QString &source) |
|
| ~ScriptEngine () |
|
virtual bool | init () |
|
| 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 |
|
|
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) |
|
QByteArray | normalizeSignalSlot (const char *signalSlot) |
|
| objectName |
|
Provides a restricted interface for scripting a DataEngine.
Definition at line 41 of file dataenginescript.h.
Plasma::DataEngineScript::DataEngineScript |
( |
QObject * |
parent = 0 | ) |
|
|
explicit |
Plasma::DataEngineScript::~DataEngineScript |
( |
| ) |
|
void Plasma::DataEngineScript::addSource |
( |
DataContainer * |
source | ) |
|
|
protected |
DataEngine * Plasma::DataEngineScript::dataEngine |
( |
| ) |
const |
KPluginInfo Plasma::DataEngineScript::description |
( |
| ) |
const |
|
protected |
void Plasma::DataEngineScript::forceImmediateUpdateOfAllVisualizations |
( |
| ) |
|
|
protected |
QString Plasma::DataEngineScript::mainScript |
( |
| ) |
const |
|
protectedvirtual |
int Plasma::DataEngineScript::minimumPollingInterval |
( |
| ) |
const |
|
protected |
const Package * Plasma::DataEngineScript::package |
( |
| ) |
const |
|
protectedvirtual |
void Plasma::DataEngineScript::removeAllData |
( |
const QString & |
source | ) |
|
|
protected |
void Plasma::DataEngineScript::removeAllSources |
( |
| ) |
|
|
protected |
void Plasma::DataEngineScript::removeData |
( |
const QString & |
source, |
|
|
const QString & |
key |
|
) |
| |
|
protected |
void Plasma::DataEngineScript::removeSource |
( |
const QString & |
source | ) |
|
|
protected |
void Plasma::DataEngineScript::scheduleSourcesUpdated |
( |
| ) |
|
|
protected |
Service * Plasma::DataEngineScript::serviceForSource |
( |
const QString & |
source | ) |
|
|
virtual |
- Parameters
-
source | the source to targe the Service at |
- Returns
- a Service that has the source as a destination. The service is parented to the DataEngine, but may be deleted by the caller when finished with it
Definition at line 73 of file dataenginescript.cpp.
void Plasma::DataEngineScript::setData |
( |
const QString & |
source, |
|
|
const QString & |
key, |
|
|
const QVariant & |
value |
|
) |
| |
|
protected |
void Plasma::DataEngineScript::setData |
( |
const QString & |
source, |
|
|
const QVariant & |
value |
|
) |
| |
|
protected |
Adds a set of values to a source.
- Parameters
-
source | the name of the source to set the data on a key/value collection to add to the source |
- Since
- 4.5
Definition at line 112 of file dataenginescript.cpp.
void Plasma::DataEngineScript::setDataEngine |
( |
DataEngine * |
dataEngine | ) |
|
void Plasma::DataEngineScript::setIcon |
( |
const QString & |
icon | ) |
|
|
protected |
void Plasma::DataEngineScript::setMaxSourceCount |
( |
uint |
limit | ) |
|
|
protected |
void Plasma::DataEngineScript::setMinimumPollingInterval |
( |
int |
minimumMs | ) |
|
|
protected |
void Plasma::DataEngineScript::setName |
( |
const QString & |
name | ) |
|
|
protected |
void Plasma::DataEngineScript::setPollingInterval |
( |
uint |
frequency | ) |
|
|
protected |
bool Plasma::DataEngineScript::sourceRequestEvent |
( |
const QString & |
name | ) |
|
|
virtual |
Called when the script should create a source that does not currently exist.
- Parameters
-
name | the name of the source that should be created |
- Returns
- true if a DataContainer was set up, false otherwise
Definition at line 61 of file dataenginescript.cpp.
QStringList Plasma::DataEngineScript::sources |
( |
| ) |
const |
|
virtual |
void Plasma::DataEngineScript::updateAllSources |
( |
| ) |
|
|
protected |
bool Plasma::DataEngineScript::updateSourceEvent |
( |
const QString & |
source | ) |
|
|
virtual |
Called when the script should refresh the data contained in a given source.
- Parameters
-
source | the name of the source that should be updated |
- Returns
- true if the data was changed, or false if there was no change or if the change will occur later
Definition at line 67 of file dataenginescript.cpp.
The documentation for this class was generated from the following files:
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
KDE's Doxygen guidelines are available online.