~ubuntu-branches/ubuntu/warty/xplanet/warty

« back to all changes in this revision

Viewing changes to src/libdisplay/TimerX11.h

  • Committer: Bazaar Package Importer
  • Author(s): LaMont Jones
  • Date: 2004-08-24 07:14:00 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20040824071400-2dr4qnjbjmm8z3ia
Tags: 1.0.6-1ubuntu1
Build-depend: libtiff4-dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef TIMERX11_H
 
2
#define TIMERX11_H
 
3
 
 
4
#include <ctime>
 
5
 
 
6
#include "config.h"
 
7
 
 
8
#include <X11/Xlib.h>
 
9
#include <X11/Xutil.h>
 
10
 
 
11
#ifdef HAVE_XSS
 
12
#include <X11/extensions/scrnsaver.h>
 
13
#endif
 
14
 
 
15
#include "Timer.h"
 
16
 
 
17
class TimerX11 : public Timer
 
18
{
 
19
 public:
 
20
    TimerX11(const int w, const unsigned long h, const unsigned long i);
 
21
    ~TimerX11();
 
22
 
 
23
    static Display *const DisplayID() { return(display_); };
 
24
    bool Sleep();
 
25
 
 
26
 private:
 
27
    static Display *display_;
 
28
 
 
29
    bool Sleep(time_t sleep);
 
30
 
 
31
#ifdef HAVE_XSS
 
32
    Window root_;
 
33
    XScreenSaverInfo* screenSaverInfo_;
 
34
#endif
 
35
 
 
36
};
 
37
 
 
38
#endif