mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-04-24 23:47:20 +00:00
hanle new sources
This commit is contained in:
parent
276248a748
commit
e0df575aa9
@ -260,6 +260,10 @@ QStringList AWDataEngineMapper::registerSource(const QString &_source, const QSt
|
|||||||
// network device
|
// network device
|
||||||
m_map[_source] = "netdev";
|
m_map[_source] = "netdev";
|
||||||
m_formatter["netdev"] = AWKeysAggregator::FormatterType::NoFormat;
|
m_formatter["netdev"] = AWKeysAggregator::FormatterType::NoFormat;
|
||||||
|
} else if (_source == "network/current/ssid") {
|
||||||
|
// current ssid
|
||||||
|
m_map[_source] = "ssid";
|
||||||
|
m_formatter["ssid"] = AWKeysAggregator::FormatterType::NoFormat;
|
||||||
} else if (_source.startsWith("network/response")) {
|
} else if (_source.startsWith("network/response")) {
|
||||||
// network response
|
// network response
|
||||||
QString key = _source;
|
QString key = _source;
|
||||||
@ -375,6 +379,12 @@ QStringList AWDataEngineMapper::registerSource(const QString &_source, const QSt
|
|||||||
// timestamp
|
// timestamp
|
||||||
m_map.insertMulti(_source, "tstime");
|
m_map.insertMulti(_source, "tstime");
|
||||||
m_formatter["tstime"] = AWKeysAggregator::FormatterType::Timestamp;
|
m_formatter["tstime"] = AWKeysAggregator::FormatterType::Timestamp;
|
||||||
|
} else if (_source == "system/brightness") {
|
||||||
|
m_map[_source] = "brightness";
|
||||||
|
m_formatter["brightness"] = AWKeysAggregator::FormatterType::IntegerThree;
|
||||||
|
} else if (_source == "system/volume") {
|
||||||
|
m_map[_source] = "volume";
|
||||||
|
m_formatter["volume"] = AWKeysAggregator::FormatterType::IntegerThree;
|
||||||
} else if (_source == "system/uptime") {
|
} else if (_source == "system/uptime") {
|
||||||
// uptime
|
// uptime
|
||||||
m_map[_source] = "uptime";
|
m_map[_source] = "uptime";
|
||||||
|
Loading…
Reference in New Issue
Block a user