Home · All Classes · Annotated · Functions

ScreenSaverService Class Reference

Provides the Qtopia ScreenSaver service. More...

#include <ScreenSaverService>

Inherits QCopObjectService.

Public Slots

Additional Inherited Members


Detailed Description

Provides the Qtopia ScreenSaver service.

The ScreenSaver service enables applications to control the behavior of the screen saver. Normally an application will use QtopiaApplication::setTemporaryScreenSaverMode() for this, but finer control is available for settings applications.


Member Function Documentation

void ScreenSaverService::screenSaverActivate ( bool on )   [slot]

Activate or deactivate screen saver

This slot corresponds to the QCop service message ScreenSaver::screenSaverActivate(bool).

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

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

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

Once the brightnes has been updated, the brightnessChanged(int) message will be sent to the QPE/ScreenSaverStatus 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 ScreenSaverService::setDefaultIntervals ()   [slot]

Set the screen saver intervals to their default values.

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

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

Set the screen saver 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 ScreenSaver::setIntervals(int,int,int).

void ScreenSaverService::setTemporaryMode ( int hint, int pid )   [slot]

Set the temporary screen saver mode for the process pid to hint. The hint value is one of the values from QtopiaApplication::ScreenSaverHint.

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

This slot corresponds to the QCop service message ScreenSaver::setTemporaryMode(int,int).

See also QtopiaApplication::setTemporaryScreenSaverMode().


Copyright © 2006 Trolltech Trademarks
Qtopia 4.1.7