Commit b2db95d8 authored by Arjen Hiemstra's avatar Arjen Hiemstra
Browse files

Use the right interface for targeted signals

We now use the interface name from the systemstats lib
parent 0a118e27
......@@ -84,7 +84,10 @@ void Client::sendValues(const KSysGuard::SensorDataList &entries)
if (entries.isEmpty()) {
return;
}
auto msg = QDBusMessage::createTargetedSignal(m_serviceName, "/", "org.kde.KSysGuardDaemon", "newSensorData");
auto msg = QDBusMessage::createTargetedSignal(m_serviceName,
KSysGuard::SystemStats::ObjectPath,
KSysGuard::SystemStats::DBusInterface::staticInterfaceName(),
"newSensorData");
msg.setArguments({QVariant::fromValue(entries)});
QDBusConnection::sessionBus().send(msg);
}
......@@ -94,7 +97,10 @@ void Client::sendMetaDataChanged(const KSysGuard::SensorInfoMap &sensors)
if (sensors.isEmpty()) {
return;
}
auto msg = QDBusMessage::createTargetedSignal(m_serviceName, "/", "org.kde.KSysGuardDaemon", "sensorMetaDataChanged");
auto msg = QDBusMessage::createTargetedSignal(m_serviceName,
KSysGuard::SystemStats::ObjectPath,
KSysGuard::SystemStats::DBusInterface::staticInterfaceName(),
"sensorMetaDataChanged");
msg.setArguments({QVariant::fromValue(sensors)});
QDBusConnection::sessionBus().send(msg);
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment