Extend DCOP interface with new brightnessSet method

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/16/head
Michele Calgaro 8 months ago
parent 8d7b591826
commit 5ae13039bc
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