parent
35b43f097e
commit
80d4ba326e
@ -62,6 +62,8 @@ class PLASMA_EXPORT DataEngine : public QObject
|
||||
public:
|
||||
typedef QHash<QString, DataEngine*> Dict;
|
||||
typedef QMap<QString, QVariant> Data;
|
||||
typedef QMapIterator<QString, QVariant> DataIterator;
|
||||
typedef QHash<QString, DataContainer*> SourceDict;
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
|
@ -98,7 +98,7 @@ class DataEnginePrivate
|
||||
int updateTimerId;
|
||||
int minPollingInterval;
|
||||
QTime updateTimestamp;
|
||||
QHash<QString, DataContainer*> sources;
|
||||
DataEngine::SourceDict sources;
|
||||
bool valid;
|
||||
DataEngineScript *script;
|
||||
QString serviceName;
|
||||
|
@ -166,12 +166,12 @@ void DataEngineScript::addSource(DataContainer *source)
|
||||
}
|
||||
}
|
||||
|
||||
QHash<QString, DataContainer*> DataEngineScript::containerDict() const
|
||||
DataEngine::SourceDict DataEngineScript::containerDict() const
|
||||
{
|
||||
if (d->dataEngine) {
|
||||
return d->dataEngine->containerDict();
|
||||
}
|
||||
return QHash<QString, DataContainer*>();
|
||||
return DataEngine::SourceDict();
|
||||
}
|
||||
|
||||
void DataEngineScript::removeSource(const QString &source)
|
||||
|
@ -134,7 +134,7 @@ protected:
|
||||
void setPollingInterval(uint frequency);
|
||||
void removeAllSources();
|
||||
void addSource(DataContainer *source);
|
||||
QHash<QString, DataContainer*> containerDict() const;
|
||||
DataEngine::SourceDict containerDict() const;
|
||||
void removeSource(const QString &source);
|
||||
void updateAllSources();
|
||||
void forceImmediateUpdateOfAllVisualizations();
|
||||
|
Loading…
Reference in New Issue
Block a user