#include <savercontrol.h>
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) |
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.
|
Get the DCOP interface to communicate with the KDE screensaver.
|
|
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. |
|
Disable the KDE screensaver if TRUE is passed to this slot. Uses the DCOP interface to communicate with the screensaver. |
|
Static accessor method to get the status of the screensaver. Returns true if the KDE screensaver is currently enabled, false if it is disabled. |
|
Static accessor method to disable the screensaver. Returns true if the operation was successful, false if it was not. |
|
Static accessor method to enable the screensaver. Returns true if the operation was successful, false if it was not. |
|
Static accessor method to enable or disable the screen- saver, depending on the provided parameter.
|