Plasma5Support
datasource.h
62 * Polling interval in milliseconds when the data will be fetched again. If 0, no polling will be done.
74 Q_PROPERTY(Plasma5Support::Types::IntervalAlignment intervalAlignment READ intervalAlignment WRITE setIntervalAlignment NOTIFY intervalAlignmentChanged)
95 Q_PROPERTY(QStringList connectedSources READ connectedSources WRITE setConnectedSources NOTIFY connectedSourcesChanged)
A class that makes it safe and easy to use DataEngines.
Definition dataengineconsumer.h:36
bool isValid() const
Returns true if this engine is valid, otherwise returns false.
Definition dataengine.cpp:281
Plasma5Support::Types::IntervalAlignment intervalAlignment
The interval to align polling to.
Definition datasource.h:74
Q_INVOKABLE void disconnectSource(const QString &source)
Disconnects from a DataEngine source and removes it from the connectedSources list.
Definition datasource.cpp:231
QStringList connectedSources
List of all the sources connected to the DataEngine.
Definition datasource.h:95
Q_INVOKABLE QObject * serviceForSource(const QString &source)
Definition datasource.cpp:204
QQmlPropertyMap * models
All the models associated to this DataEngine, indexed by source.
Definition datasource.h:134
Q_INVOKABLE void connectSource(const QString &source)
Connects a new source and adds it to the connectedSources list.
Definition datasource.cpp:217
int interval
Polling interval in milliseconds when the data will be fetched again.
Definition datasource.h:64
QStringList sources
Read-only list of all the sources available from the DataEngine (connected or not).
Definition datasource.h:105
Q_INTERFACES(...)
Q_INVOKABLEQ_INVOKABLE
Q_OBJECTQ_OBJECT
Q_PROPERTY(...)
Q_SIGNALSQ_SIGNALS
Q_SLOTSQ_SLOTS
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:04:23 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:04:23 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.