Merge branch 'central-widget'
[krunner.git] / xautolock_c.h
blobcff6829fa719cd9fae1c29a19ea683c92c8ee5c4
1 /*****************************************************************************
3 * Authors: Michel Eyckmans (MCE) & Stefan De Troch (SDT)
5 * Content: This file is part of version 2.x of xautolock. It takes care
6 * of most OS dependencies, and defines the program's default
7 * settings.
9 * Please send bug reports etc. to eyckmans@imec.be.
11 * --------------------------------------------------------------------------
13 * Copyright 1990,1992-1999,2001-2002 by Stefan De Troch and Michel Eyckmans.
15 * Versions 2.0 and above of xautolock are available under version 2 of the
16 * GNU GPL. Earlier versions are available under other conditions. For more
17 * information, see the License file.
19 *****************************************************************************/
21 #ifndef __xautolock_c_h
22 #define __xautolock_c_h
24 #include <config-X11.h>
26 #ifdef HAVE_XSCREENSAVER
27 #include <X11/extensions/scrnsaver.h>
28 #endif
30 /* I'd first need to get my hands on this */
31 #undef HAVE_XIDLE
32 #undef HasXidle
34 #define DEFAULT_TIMEOUT 600
36 #define CHECK_INTERVAL 5000 /* ms */
38 #define CREATION_DELAY 30 /* should be > 10 and
39 < min (45,(MIN_MINUTES*30)) */
40 #define TIME_CHANGE_LIMIT 120 /* if the time changes by more
41 than x secs then we will
42 assume someone has changed
43 date or machine has suspended */
45 #define cornerSize 5
47 #define cornerDelay 5
49 #define cornerRedelay 5
51 typedef enum { ca_nothing, ca_dontLock, ca_forceLock } xautolock_corner_t;
53 #ifdef __cplusplus
54 extern "C"
56 #endif
57 void xautolock_processEvent( XEvent* ev );
58 void xautolock_queryIdleTime( Display* d);
59 void xautolock_processQueue( void );
60 void xautolock_queryPointer (Display* d);
61 void xautolock_initDiy (Display* d);
62 void xautolock_resetTriggers( void );
63 void xautolock_setTrigger( time_t );
64 int xautolock_ignoreWindow( Window );
65 extern int xautolock_useXidle;
66 extern int xautolock_useMit;
67 extern xautolock_corner_t xautolock_corners[ 4 ];
68 #ifdef __cplusplus
70 #endif
73 #endif