MeeGo 1.2 Harmattan Developer Documentation Develop for the Nokia N9

QSystemScreenSaver Class Reference

The QSystemScreenSaver class provides access to screen saver and blanking. More...

 #include <QSystemScreenSaver>

Inherits: QObject.

Note: All functions in this class are reentrant.

This class was introduced in Qt Mobility 1.0.

Properties

  • 1 property inherited from QObject

Public Functions

QSystemScreenSaver ( QObject * parent = 0 )
~QSystemScreenSaver ()
bool screenSaverInhibited ()
bool setScreenSaverInhibit ()
void setScreenSaverInhibited ( bool on )
  • 29 public functions inherited from QObject

Additional Inherited Members

  • 1 public slot inherited from QObject
  • 1 signal inherited from QObject
  • 1 public variable inherited from QObject
  • 4 static public members inherited from QObject
  • 7 protected functions inherited from QObject
  • 2 protected variables inherited from QObject

Detailed Description

The QSystemScreenSaver class provides access to screen saver and blanking.

On platforms where there is no one default screensaver mechanism, such as Linux, this class may not be available.

Note: All functions in this class are reentrant.

Warning: On Symbian this class does not support QObject::moveToThread().

Property Documentation

screenSaverInhibited : bool

This property holds screensaver inhibited.

Returns true if the screensaver is inhibited, otherwise false.

Access functions:

bool screenSaverInhibited ()
void setScreenSaverInhibited ( bool on )

Member Function Documentation

QSystemScreenSaver::QSystemScreenSaver ( QObject * parent = 0 )

Constructs a QSystemScreenSaver object with the given parent.

QSystemScreenSaver::~QSystemScreenSaver ()

Destroys the QSystemScreenSaver object, and sets the screen saver to a non-inhibited state.

bool QSystemScreenSaver::setScreenSaverInhibit ()

Set the screensaver to be inhibited.