Plasma
datacontainer.cpp
Go to the documentation of this file.
void disconnectVisualization(QObject *visualization)
Disconnects an object from this DataContainer.
Definition: datacontainer.cpp:264
void timerEvent(QTimerEvent *event)
Definition: datacontainer.cpp:333
void checkForUpdate()
Checks whether any data has changed and, if so, emits dataUpdated().
Definition: datacontainer.cpp:290
bool visualizationIsConnected(QObject *visualization) const
Definition: datacontainer.cpp:80
bool disconnect(const QObject *sender, const char *signal, const QObject *receiver, const char *method)
void dataUpdated(const QString &source, const Plasma::DataEngine::Data &data)
Emitted when the data has been updated, allowing visualizations to reflect the new data...
void setNeedsToBeStored(bool store)
sets that the data container needs to be stored or not.
Definition: datacontainer.cpp:167
DataContainer(QObject *parent=0)
Constructs a default DataContainer that has no name or data associated with it.
Definition: datacontainer.cpp:30
bool isStorageEnabled() const
Definition: datacontainer.cpp:157
const DataEngine::Data data() const
Returns the data for this DataContainer.
Definition: datacontainer.cpp:41
uint timeSinceLastUpdate() const
Returns how long ago, in msecs, that the data in this container was last updated. ...
Definition: datacontainer.cpp:316
QString objectName() const
void forceImmediateUpdate()
Forces immediate update signals to all visualizations.
Definition: datacontainer.cpp:304
void connectVisualization(QObject *visualization, uint pollingInterval, Plasma::IntervalAlignment alignment)
Connects an object to this DataContainer.
Definition: datacontainer.cpp:85
void setNeedsUpdate(bool update=true)
Indicates that the data should be treated as dirty the next time hasUpdates() is called.
Definition: datacontainer.cpp:321
int msec() const
QTime currentTime()
void setData(const QString &key, const QVariant &value)
Set a value for a key.
Definition: datacontainer.cpp:46
void becameUnused(const QString &source)
Emitted when the last visualization is disconnected.
bool needsToBeStored() const
Definition: datacontainer.cpp:162
int timerId() const
void setStorageEnabled(bool store)
sets this data container to be automatically stored.
Definition: datacontainer.cpp:147
bool isValid() const
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
QObject * parent() const
void destroyed(QObject *obj)
void removeAllData()
Removes all data currently associated with this source.
Definition: datacontainer.cpp:68
int receivers(const char *signal) const
singleShot
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:23:11 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:23:11 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.