#include <Plasma/Scripting/DataEngineScript>
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 |
void Plasma::DataEngineScript::setData |
( |
const QString & |
source, |
|
|
const DataEngine::Data & |
values |
|
) |
| |
|
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-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:48:35 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.