home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / SLAX 6.0.8 / slax-6.0.8.iso / slax / base / 006-devel.lzm / usr / include / KScreensaverIface.h < prev    next >
Encoding:
C/C++ Source or Header  |  2006-03-17  |  1.1 KB  |  50 lines

  1.  
  2. #ifndef __KScreensaverIface_h__
  3. #define __KScreensaverIface_h__
  4.  
  5. #include <dcopobject.h>
  6.  
  7. class KScreensaverIface : virtual public DCOPObject
  8. {
  9.   K_DCOP
  10. public:
  11.  
  12. k_dcop:
  13.   /** Lock the screen now even if the screensaver does not lock by default. */
  14.   virtual void lock() = 0;
  15.  
  16.   /** Save the screen now.  If the user has locking enabled, the screen is
  17.    * locked also. */
  18.   virtual void save() = 0;
  19.  
  20.   /** Quit the screensaver if it is running */
  21.   virtual void quit() = 0;
  22.  
  23.   /** Is the screensaver enabled? */
  24.   virtual bool isEnabled() = 0;
  25.  
  26.   /**
  27.    * Enable/disable the screensaver
  28.    * returns true if the action succeeded
  29.    */
  30.   virtual bool enable( bool e ) = 0;
  31.  
  32.   /** Is the screen currently blanked? */
  33.   virtual bool isBlanked() = 0;
  34.  
  35.   /** Reload the screensaver configuration. */
  36.   virtual void configure() = 0;
  37.  
  38.   /** Only blank the screen (and possibly lock).  Do not use a custom
  39.    * screen saver in the interest of saving battery.
  40.    */
  41.   virtual void setBlankOnly( bool blankOnly ) = 0;
  42.  
  43.   /***
  44.    * @internal
  45.   */
  46.   virtual void saverLockReady() = 0;
  47. };
  48.  
  49. #endif
  50.