PlasmaCore
#include <datasource.h>
Definition at line 42 of file datasource.h.
Enumerator |
---|
NoChange |
|
DataEngineChanged |
|
SourcesChanged |
|
Definition at line 46 of file datasource.h.
Plasma::DataSource::DataSource |
( |
QObject * |
parent = 0 | ) |
|
QStringList Plasma::DataSource::connectedSources |
( |
| ) |
const |
|
inline |
void Plasma::DataSource::connectedSourcesChanged |
( |
| ) |
|
|
signal |
void Plasma::DataSource::connectSource |
( |
const QString & |
source | ) |
|
Connect a new source.
It adds it to connectedSources
Definition at line 185 of file datasource.cpp.
QVariantHash Plasma::DataSource::data |
( |
| ) |
const |
|
inline |
void Plasma::DataSource::dataChanged |
( |
| ) |
|
|
signal |
void Plasma::DataSource::dataUpdated |
( |
const QString & |
sourceName, |
|
|
const Plasma::DataEngine::Data & |
data |
|
) |
| |
|
protectedslot |
void Plasma::DataSource::disconnectSource |
( |
const QString & |
source | ) |
|
Disconnects from a DataEngine Source.
It also removes it from connectedSources
Definition at line 199 of file datasource.cpp.
QString Plasma::DataSource::engine |
( |
| ) |
const |
|
inline |
void Plasma::DataSource::engineChanged |
( |
| ) |
|
|
signal |
int Plasma::DataSource::interval |
( |
| ) |
const |
|
inline |
void Plasma::DataSource::intervalChanged |
( |
| ) |
|
|
signal |
void Plasma::DataSource::newData |
( |
const QString & |
sourceName, |
|
|
const Plasma::DataEngine::Data & |
data |
|
) |
| |
|
signal |
void Plasma::DataSource::removeSource |
( |
const QString & |
source | ) |
|
|
protectedslot |
Plasma::Service * Plasma::DataSource::serviceForSource |
( |
const QString & |
source | ) |
|
- Returns
- a Plasma::Service given a source name
- QString source source name we want a service of
Definition at line 172 of file datasource.cpp.
void Plasma::DataSource::setConnectedSources |
( |
const QStringList & |
s | ) |
|
void Plasma::DataSource::setEngine |
( |
const QString & |
e | ) |
|
void Plasma::DataSource::setInterval |
( |
const int |
interval | ) |
|
void Plasma::DataSource::setupData |
( |
| ) |
|
|
protectedslot |
void Plasma::DataSource::sourceAdded |
( |
const QString & |
source | ) |
|
|
signal |
void Plasma::DataSource::sourceConnected |
( |
const QString & |
source | ) |
|
|
signal |
void Plasma::DataSource::sourceDisconnected |
( |
const QString & |
source | ) |
|
|
signal |
void Plasma::DataSource::sourceRemoved |
( |
const QString & |
source | ) |
|
|
signal |
QStringList Plasma::DataSource::sources |
( |
| ) |
const |
|
inline |
void Plasma::DataSource::sourcesChanged |
( |
| ) |
|
|
signal |
bool Plasma::DataSource::valid |
( |
| ) |
const |
|
inline |
QStringList Plasma::DataSource::connectedSources |
|
readwrite |
String array of all the source names connected to the DataEngine.
Definition at line 81 of file datasource.h.
QVariantHash Plasma::DataSource::data |
|
read |
All the data fetched by this dataengine.
This is an hash of hashes. At the first level, there are the source names, at the secons, they keys set by the DataEngine
Definition at line 95 of file datasource.h.
QString Plasma::DataSource::dataEngine |
|
readwrite |
QString Plasma::DataSource::engine |
|
readwrite |
int Plasma::DataSource::interval |
|
readwrite |
Polling interval in milliseconds when the data will be fetched again.
If 0 no polling will be done.
Definition at line 66 of file datasource.h.
QStringList Plasma::DataSource::sources |
|
read |
Read only string array of all the sources available from the DataEngine (connected or not)
Definition at line 88 of file datasource.h.
bool Plasma::DataSource::valid |
|
read |
true if the connection to the Plasma DataEngine is valid
Definition at line 60 of file datasource.h.
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 23:02:42 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.