As a followup, here's a quick method (Qt-way), to check for PowerDevil's presence:
QDBusInterface kdedInterface("org.kde.kded", "/kded", "org.kde.kded"); QDBusReply<QStringList> reply = kdedInterface.call("loadedModules"); if (reply.isValid() && reply.value().contains("powerdevil")) { // we are alive }
As a followup, here's a quick method (Qt-way), to check for PowerDevil's presence:
QDBusInterface kdedInterface( "org.kde. kded", "/kded", "org.kde.kded"); QStringList> reply = kdedInterface. call("loadedMod ules"); ).contains( "powerdevil" ))
QDBusReply<
if (reply.isValid() && reply.value(
{
// we are alive
}