Main Page   Class Hierarchy   Compound List   File List   Compound Members  

SaverControl Class Reference

KDE ScreenSaver Control class. More...

#include <savercontrol.h>

List of all members.

Public Methods

 SaverControl ()
 ~SaverControl ()
bool getSaverDCOPIface ()
bool isScreenSaverEnabled ()
void disableScreenSaver (bool disable)

Static Public Methods

bool getSaverStatus ()
bool disableSaver ()
bool enableSaver ()
bool toggleSaver (bool enable)


Detailed Description

KDE ScreenSaver Control class.

This class can be used by either creating a new object and using the regular ("dynamic") methods to get the status of the KDE screensaver or to enable/disable it.

You can also call the static methods of this class directly from within another class to control the KDE screensaver or to get its current status.

Version:
Id:
savercontrol.h,v 1.1 2002/08/17 11:09:17 hellwig Exp


Member Function Documentation

bool SaverControl::getSaverDCOPIface
 

Get the DCOP interface to communicate with the KDE screensaver.

bool SaverControl::isScreenSaverEnabled
 

Get the current status of the KDE screensaver.

Usually only called once on startup of the application to find out if we have to enable it later on when the application is stopped. This method is using DCOP to communicate with the screensaver.

void SaverControl::disableScreenSaver bool disable
 

Disable the KDE screensaver if TRUE is passed to this slot.

Uses the DCOP interface to communicate with the screensaver.

bool SaverControl::getSaverStatus [static]
 

Static accessor method to get the status of the screensaver.

Returns true if the KDE screensaver is currently enabled, false if it is disabled.

bool SaverControl::disableSaver [static]
 

Static accessor method to disable the screensaver.

Returns true if the operation was successful, false if it was not.

bool SaverControl::enableSaver [static]
 

Static accessor method to enable the screensaver.

Returns true if the operation was successful, false if it was not.

bool SaverControl::toggleSaver bool enable [static]
 

Static accessor method to enable or disable the screen- saver, depending on the provided parameter.


The documentation for this class was generated from the following file:
Generated at Thu Jan 30 02:56:03 2003 for QtVision by doxygen1.2.9.1 written by Dimitri van Heesch, © 1997-2001