mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-12-18 02:43:42 +00:00
port widget to dbus
This commit is contained in:
@ -199,10 +199,11 @@ void AWKeys::editItem(const QString &_type)
|
||||
}
|
||||
|
||||
|
||||
void AWKeys::dataUpdated(const QString &_sourceName, const Plasma::DataEngine::Data &_data)
|
||||
void AWKeys::dataUpdated(const KSysGuard::SensorDataList &_data)
|
||||
{
|
||||
// run concurrent data update
|
||||
QtConcurrent::run(m_threadPool, this, &AWKeys::setDataBySource, _sourceName, _data);
|
||||
// TODO use QtConcurrent::map or something like that
|
||||
for (auto &sensor : _data)
|
||||
QtConcurrent::run(m_threadPool, this, &AWKeys::setDataBySource, sensor);
|
||||
}
|
||||
|
||||
|
||||
@ -351,9 +352,9 @@ QString AWKeys::parsePattern(QString _pattern) const
|
||||
}
|
||||
|
||||
|
||||
void AWKeys::setDataBySource(const QString &_sourceName, const QVariantMap &_data)
|
||||
void AWKeys::setDataBySource(const QString &_sourceName, const KSysGuard::SensorData &_data)
|
||||
{
|
||||
qCDebug(LOG_AW) << "Source" << _sourceName << "with data" << _data;
|
||||
qCDebug(LOG_AW) << "Source" << _sourceName << "with data" << _data.payload;
|
||||
|
||||
// first list init
|
||||
QStringList tags = m_aggregator->keysFromSource(_sourceName);
|
||||
|
||||
Reference in New Issue
Block a user