blob: 707b9b225b8161c97c9d517ad2d776d7a1fd3bd7 (
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
|
/*
* activity.h: A plugin for the Video Disk Recorder
*
* See the README file for copyright information and how to reach the author.
*
* $Id$
*/
#ifndef _USERACTILITY_ACTIVITY_H
#define _USERACTILITY_ACTIVITY_H
#include <utmp.h>
class cUserActivity {
private:
#ifdef USE_XSS
static int DisplayIdleTime(char *display);
#endif
static int DeviceIdleTime(char *device);
static int IdleTime(struct utmp *uptr);
public:
static bool ActiveUsers(void);
static void SetMinUserInactivity(int minutes);
static int GetMinUserInactivity(void);
static char *GetUsers(void);
#if VDRVERSNUM >= 10501
static int GetUserInactivity(void);
static void UserActivity(void);
#endif
};
#endif
|