1 #ifndef KARM_IDLE_TIME_DETECTOR_H
2 #define KARM_IDLE_TIME_DETECTOR_H
6 #include <tqdatetime.h>
13 #include <X11/Xutil.h>
14 #include <X11/extensions/scrnsaver.h>
19 const int secsPerMinute = 60;
22 const int testInterval= secsPerMinute * 1000;
89 void informOverrun( int idle);
97 XScreenSaverInfo *_mit_info;
99 bool _idleDetectionPossible;
100 bool _overAllIdleDetect;
Keep track of how long the computer has been idle.
void extractTime(int minutes) Tells the listener to extract time from current timing.
void startIdleDetection() Starts detecting idle time.
void stopAllTimers() Tells the listener to stop timing.
IdleTimeDetector(int maxIdle) Initializes and idle test timer.
void toggleOverAllIdleDetection(bool on) Sets whether idle detection should be done at all.
void stopIdleDetection() Stops detecting idle time.
void setMaxIdle(int maxIdle) Sets the maximum allowed idle.
bool isIdleDetectionPossible() Returns true if it is possible to do idle detection.
void stopAllTimersAt(TQDateTime qdt) Tells the listener to stop timing for TQDateTime.
|