diff options
Diffstat (limited to 'SwifTools/Idle/XSSIdleQuerier.h')
-rw-r--r-- | SwifTools/Idle/XSSIdleQuerier.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/SwifTools/Idle/XSSIdleQuerier.h b/SwifTools/Idle/XSSIdleQuerier.h new file mode 100644 index 0000000..476784d --- /dev/null +++ b/SwifTools/Idle/XSSIdleQuerier.h @@ -0,0 +1,22 @@ +#pragma once + +#include <X11/Xlib.h> +#include <X11/extensions/scrnsaver.h> + +#include "SwifTools/Idle/IdleQuerier.h" + +namespace Swift { + class XSSIdleQuerier : public IdleQuerier { + public: + XSSIdleQuerier(); + ~XSSIdleQuerier(); + + virtual int getIdleTimeSeconds(); + + private: + Display* display; + Window rootWindow; + bool available; + XScreenSaverInfo* info; + }; +} |