Qt:Документация 4.3.2/qwsscreensaver

Материал из Wiki.crossplatform.ru

Перейти к: навигация, поиск
40px Внимание: Актуальная версия перевода документации находится здесь

__NOTOC__

Image:qt-logo.png

Главная · Все классы · Основные классы · Классы по группам · Модули · Функции

Image:trolltech-logo.png

Содержание

[править] QWSScreenSaver Class Reference
[модуль QtGui ]

The QWSScreenSaver class is a base class for screensavers in Qtopia Core. Далее...

 #include <QWSScreenSaver>

[править] Открытые функции


[править] Подробное описание

The QWSScreenSaver class is a base class for screensavers in Qtopia Core.

When running Qtopia Core applications, it is the server application that installs and controls the screensaver. Qtopia Core 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 screen driver, 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 Qtopia Core.


[править] Описание функций-членов

[править]
QWSScreenSaver::~QWSScreenSaver () [virtual]

Reimplement this function to destroy the screensaver.

[править]
void QWSScreenSaver::restore () [pure virtual]

Implement this function to deactivate the screensaver, restoring the previously saved screen.

See also save() and QWSServer::screenSaverActivate().

[править]
bool QWSScreenSaver::save ( int level ) [pure virtual]

Implement this function to activate the screensaver, saving the current screen.

Qtopia Core 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().



Copyright © 2007 Trolltech Trademarks
Qt 4.3.2