Plasma
dataenginescript.cpp
Go to the documentation of this file.
DataEngine * dataEngine() const
Returns the Plasma::DataEngine associated with this script component.
Definition dataenginescript.cpp:51
void removeData(const QString &source, const QString &key)
Removes a data entry from a source.
Definition dataengine.cpp:238
void setPollingInterval(uint frequency)
Sets up an internal update tick for all data sources.
Definition dataengine.cpp:292
void setData(const QString &source, const QVariant &value)
Sets a value for a data source.
Definition dataengine.cpp:184
void removeAllData(const QString &source)
Removes all the data associated with a data source.
Definition dataengine.cpp:229
void addSource(DataContainer *source)
Adds an already constructed data source.
Definition dataengine.cpp:247
void setMinimumPollingInterval(int minimumMs)
Sets the minimum amount of time, in milliseconds, that must pass between successive updates of data.
Definition dataengine.cpp:282
QHash< QString, DataContainer * > SourceDict
Definition dataengine.h:70
const Package * package() const
Accessor for the associated Package object if any.
Definition dataengine.cpp:476
void scheduleSourcesUpdated()
Call this method when you call setData directly on a DataContainer instead of using the DataEngine::s...
Definition dataengine.cpp:481
void setMaxSourceCount(uint limit)
Sets an upper limit on the number of data sources to keep in this engine.
Definition dataengine.cpp:262
int minimumPollingInterval() const
Definition dataengine.cpp:287
void updateAllSources()
Immediately updates all existing sources when called.
Definition dataengine.cpp:394
void setName(const QString &name)
Sets the engine name for the DataEngine.
Definition dataengine.cpp:495
void forceImmediateUpdateOfAllVisualizations()
Forces an immediate update to all connected sources, even those with timeouts that haven't yet expire...
Definition dataengine.cpp:406
QString filePath(const char *fileType, const QString &filename) const
Get the path to a given file.
Definition package.cpp:213
The base class for scripting interfaces to be used in loading plasmoids of a given language.
Definition scriptengine.h:66
This class provides a generic API for write access to settings or services.
Definition service.h:92
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Thu Jul 18 2024 00:00:00 by doxygen 1.11.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Thu Jul 18 2024 00:00:00 by doxygen 1.11.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.