QtopiaPowerManager Class Reference
|
ValueSpace path | Description |
---|---|
/Hardware/ScreenSaver/CurrentLevel | Returns current level of the screen saver. A value of zero means that the system is up and running and no power management option has been activated yet. This state is active while the user interacts with the device. The mapping of the remaining levels depends on this classes subclass that is in use (e.g. see PhonePowerManager). |
/Hardware/ScreenSaver/Timeout/Dim | Contains the number of seconds until the displays dims. |
/Hardware/ScreenSaver/Timeout/LightOff | Contains the number of seconds until the display turns off. This timeout starts once the Dim state has been reached. |
/Hardware/ScreenSaver/Timeout/Suspend | Contains the number of seconds until the system suspends. This timeout starts once the Lightoff state has been reached. |
/Hardware/ScreenSaver/State/DimEnabled | Returns true if display dimming is enabled; other false. |
/Hardware/ScreenSaver/State/LightOffEnabled | Returns true if turning the display of is part of the power management process; other false. |
/Hardware/ScreenSaver/State/SuspendEnabled | Returns true if the system will suspend; otherwise false. |
This class is part of the Qt Extended server and cannot be used by other Qt Extended applications.
See also setIntervals(), save(), PhonePowerManager, QtopiaPowerManagerService, and QtopiaPowerConstraintManager.
Constructs a QtopiaPowerManager instance.
This function is called when the QtopiaPowerConstraintManager::forceSuspend() signal is emitted. The default implementation suspends the system using the Suspend service. Custom implementations may want to re-implement this method if suspending can be prevented so as to avoid processing the SystemSuspendHandler tasks.
Restores the state of the device when power saving is active. This usually happens when the user interacts with the device.
Reimplemented from QWSScreenSaver.
This function is called by Qt Extended when a timeout has occurred and dynamically maps level onto a power saving action.
This function needs to be reimplemented by subclasses.
Reimplemented from QWSScreenSaver.
Activates or deactivates the power manager given the flag on. When activated, power management is enabled. When deactivated, power management is completely disabled.
Resets the intervals to the default configuration for the power manager. The default values are defined in configuration files and can be edited by the user using the Power Management application.
This function sets the internal timeouts for the power manager. It expects an array v containing the timeout values and size being the number of entries in v. This allows any arbitrary number of power saving levels.
This function needs to be reimplemented by subclasses. However any overriding function should call QtopiaPowerManager::setIntervals() as part of its implementation.
Cette page est une traduction d'une page de la documentation de Qt, écrite par Nokia Corporation and/or its subsidiary(-ies). Les éventuels problèmes résultant d'une mauvaise traduction ne sont pas imputables à Nokia. | Qt qtextended4.4 | |
Copyright © 2012 Developpez LLC. Tous droits réservés Developpez LLC. Aucune reproduction, même partielle, ne peut être faite de ce site et de l'ensemble de son contenu : textes, documents et images sans l'autorisation expresse de Developpez LLC. Sinon, vous encourez selon la loi jusqu'à 3 ans de prison et jusqu'à 300 000 E de dommages et intérêts. Cette page est déposée à la SACD. | ||
Vous avez déniché une erreur ? Un bug ? Une redirection cassée ? Ou tout autre problème, quel qu'il soit ? Ou bien vous désirez participer à ce projet de traduction ? N'hésitez pas à nous contacter ou par MP ! |
Copyright © 2000-2012 - www.developpez.com