The QWSScreenSaver class is a base class for screensavers in Qt for Embedded Linux. More...
#include <QWSScreenSaver>
virtual | ~QWSScreenSaver () |
virtual void | restore () = 0 |
virtual bool | save ( int level ) = 0 |
The QWSScreenSaver class is a base class for screensavers in Qt for Embedded Linux.
When running Qt for Embedded Linux applications, it is the server application that installs and controls the screensaver. Qt for Embedded Linux supports multilevel screen saving; i.e., it is possible to specify several different levels of screen responsiveness. For example, you can choose to first turn off the light before you fully activate the screensaver.
Note that there exists no default screensaver implementation.
To create a custom screensaver, derive from this class and reimplement the restore() and save() functions. These functions are called whenever the screensaver is activated or deactivated, respectively. Once an instance of your custom screensaver is created, you can use the QWSServer::setScreenSaver() function to install it.
See also QWSServer, QScreen, and Qt for Embedded Linux.
Reimplement this function to destroy the screensaver.
Implement this function to deactivate the screensaver, restoring the previously saved screen.
See also save() and QWSServer::screenSaverActivate().
Implement this function to activate the screensaver, saving the current screen.
Qt for Embedded Linux supports multilevel screen saving; i.e., it is possible to specify several different levels of screen responsiveness. For example, you can choose to first turn off the light before you fully activate the screensaver. Use the QWSServer::setScreenSaverIntervals() to specify the time intervals between the different levels.
This function should return true if the screensaver successfully enters the given level; otherwise it should return false.
See also restore() and QWSServer::screenSaverActivate().
© 2008-2011 Nokia Corporation and/or its subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation in Finland and/or other countries worldwide.
All other trademarks are property of their respective owners. Privacy Policy
Licensees holding valid Qt Commercial licenses may use this document in accordance with the Qt Commercial License Agreement provided with the Software or, alternatively, in accordance with the terms contained in a written agreement between you and Nokia.
Alternatively, this document may be used under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation.