Home · All Namespaces · All Classes · Grouped Classes · Modules · Functions codeless banner

QtopiaPowerManagerService Class Reference
[QtBaseModule]

The QtopiaPowerManagerService class provides the QtopiaPowerManager service. More...

    #include <QtopiaPowerManagerService>

Inherits QtopiaAbstractService.

Public Slots

Additional Inherited Members


Detailed Description

The QtopiaPowerManagerService class provides the QtopiaPowerManager service.

The QtopiaPowerManager service enables applications to control the behavior of the Qt Extended power manager. Normally an application will use QtopiaApplication::setPowerConstraint() for this, but finer control is available for settings applications.


Member Function Documentation

void QtopiaPowerManagerService::setActive ( bool on )   [slot]

Activate power management if on is true; otherwise deactivate power management.

This slot corresponds to the QCop service message QtopiaPowerManager::setActive(bool).

void QtopiaPowerManagerService::setBacklight ( int brightness )   [slot]

Set the backlight level to brightness, between 0 and 255.

This slot corresponds to the QCop service message QtopiaPowerManager::setBacklight(int,int).

Once the brightnes has been updated, the brightnessChanged(int) message will be sent to the Qtopia/PowerStatus channel.

If brightness is -3, then the backlight will be forced on. If brightness is -2, then the backlight will be toggled from its current state. If brightness is -1, then the backlight will be set to its default state.

void QtopiaPowerManagerService::setConstraint ( int constraint, const QString & app )   [slot]

Apply the power management constraint constraint for the application app. The constraint value is one of the values from QtopiaApplication::PowerConstraint.

Normally client applications will use QtopiaApplication::setPowerConstraint().

This slot corresponds to the QCop service message QtopiaPowerManagerService::setConstraint(int,QString).

See also QtopiaApplication::setPowerConstraint().

void QtopiaPowerManagerService::setDefaultIntervals ()   [slot]

Set the power manager intervals to their default values.

This slot corresponds to the QCop service message QtopiaPowerManager::setDefaultIntervals().

void QtopiaPowerManagerService::setIntervals ( int dim, int lightOff, int suspend )   [slot]

Set the power manager intervals to dim, lightOff, and suspend, for the three levels of power saving. The values are in seconds.

This slot corresponds to the QCop service message QtopiaPowerManager::setIntervals(int,int,int).


Copyright © 2009 Trolltech Trademarks
Qt Extended 4.4.3