diff options
author | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
---|---|---|
committer | toma <toma@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2009-11-25 17:56:58 +0000 |
commit | 4aed2c8219774f5d797760606b8489a92ddc5163 (patch) | |
tree | 3f8c130f7d269626bf6a9447407ef6c35954426a /kdesktop/KScreensaverIface.h | |
download | tdebase-4aed2c8219774f5d797760606b8489a92ddc5163.tar.gz tdebase-4aed2c8219774f5d797760606b8489a92ddc5163.zip |
Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features.
BUG:215923
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kdesktop/KScreensaverIface.h')
-rw-r--r-- | kdesktop/KScreensaverIface.h | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/kdesktop/KScreensaverIface.h b/kdesktop/KScreensaverIface.h new file mode 100644 index 000000000..0ed26b67a --- /dev/null +++ b/kdesktop/KScreensaverIface.h @@ -0,0 +1,49 @@ + +#ifndef __KScreensaverIface_h__ +#define __KScreensaverIface_h__ + +#include <dcopobject.h> + +class KScreensaverIface : virtual public DCOPObject +{ + K_DCOP +public: + +k_dcop: + /** Lock the screen now even if the screensaver does not lock by default. */ + virtual void lock() = 0; + + /** Save the screen 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; + + /** Only blank the screen (and possibly lock). Do not use a custom + * screen saver in the interest of saving battery. + */ + virtual void setBlankOnly( bool blankOnly ) = 0; + + /*** + * @internal + */ + virtual void saverLockReady() = 0; +}; + +#endif |