You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tdebase/kdesktop/KScreensaverIface.h

52 lines
1.1 KiB
C++

#ifndef __KScreensaverIface_h__
#define __KScreensaverIface_h__
#include <dcopobject.h>
class KScreensaverIface : public DCOPObject
{
K_DCOP
public:
KScreensaverIface() : DCOPObject("KScreensaverIface") {}
k_dcop:
/** Lock the screen now even if the screensaver does not lock by default */
virtual void lock() = 0;
/** Start the screensaver now. If the user has locking enabled, the screen is locked also */
virtual void save() = 0;
/** Quit the screensaver if it is running */
virtual void quit() = 0;
/** Is the screensaver enabled? */
virtual bool isEnabled() = 0;
/**
* Enable/disable the screensaver
* returns true if the action succeeded
*/
virtual bool enable(bool e) = 0;
/** Is the screen currently blanked? */
virtual bool isBlanked() = 0;
/** Reload the screensaver configuration */
virtual void configure() = 0;
/**
* Set the screensaver to blank (and possibly lock).
* This method does not actually start the screensaver.
*/
virtual void setBlankOnly(bool blankOnly) = 0;
/***
* @internal
*/
virtual void saverLockReady() = 0;
};
#endif