|  | Home · All Classes · Main Classes · Grouped Classes · Modules · Functions |

# QWSScreenSaver Class Reference
[QtGui module]

The QWSScreenSaver class implements a screensaver in Qtopia Core. More...

    #include <QWSScreenSaver>

- List of all members, including inherited members

### Public Functions

- virtual ~QWSScreenSaver ()
- virtual void restore () = 0
- virtual bool save ( int level ) = 0

## Detailed Description

The QWSScreenSaver class implements a screensaver in Qtopia Core.

Derive from this class to define a custom screensaver, note that there exists no default implementation. Reimplement the restore() and save() functions. These functions are called whenever the screensaver is activated or deactivated, respectively. Once the custom screensave is created, use the QWSServer::setScreenSaver() function to install it.

QWSServer also provides means of controlling the screensaver, see the QWSServer class documentation for details.

See also QWSServer, QScreen, and Qtopia Core.

## Member Function Documentation

### QWSScreenSaver::~QWSScreenSaver () `[virtual]`

Reimplement this function to destroy the screensaver.

### void QWSScreenSaver::restore () `[pure virtual]`

Reimplement this function to deactivate the screensaver.

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

### bool QWSScreenSaver::save ( int level ) `[pure virtual]`

Reimplement this function to return true if the screensaver successfully enters the timeout interval specified by the level parameter; otherwise it should return false.

The timeout intervals are typically specified using the QWSServer::setScreenSaverIntervals() function.

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