summaryrefslogtreecommitdiffstats
path: root/kdesktop/KScreensaverIface.h
blob: de5c19f2bc29fbb413f750d3373fa2de86dc2ace (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51

#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;

  /** 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