Extend DCOP interface with new brightnessSet method

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 5ae13039bc)
r14.1.x
Michele Calgaro 9 months ago
parent 431f2c2113
commit 5e7bdf8cac
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -2946,4 +2946,16 @@ int tdepowersave::brightnessGet() {
return retval;
}
//! dcop funtion to set the brightness level
void tdepowersave::brightnessSet(int percentage)
{
kdDebugFuncIn(trace);
if (hwinfo->supportBrightness() && percentage >= 0 && percentage <= 100)
{
hwinfo->setBrightness(-1, percentage);
}
kdDebugFuncOut(trace);
}
#include "tdepowersave.moc"

@ -444,6 +444,8 @@ k_dcop:
bool currentSchemeManagesDPMS();
//! dcop funtion to get the current brightness level
int brightnessGet();
//! dcop funtion to set the brightness level
void brightnessSet(int percentage);
//! dcop function to return the name of the current scheme
TQString currentScheme ();

Loading…
Cancel
Save