diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2007-02-25 10:56:29 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2007-02-25 10:56:29 +0100 |
commit | ddb7f335674d668af3dd06bd61a0853b3af60df0 (patch) | |
tree | 5d52ba7939f6aa0b18cc01f546ce5c82ae8d3b80 /remote.h | |
parent | 50b14be807e1d3002246f359de83a8a18a0e6008 (diff) | |
download | vdr-ddb7f335674d668af3dd06bd61a0853b3af60df0.tar.gz vdr-ddb7f335674d668af3dd06bd61a0853b3af60df0.tar.bz2 |
Rewrite of shutdown handling; implemented cPlugin::WakeupTime(); SIGHUP forces reload; cThread::EmergencyExit() replaced by ShutdownHandler.RequestEmergencyExit()
Diffstat (limited to 'remote.h')
-rw-r--r-- | remote.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: remote.h 1.38 2006/12/02 11:12:49 kls Exp $ + * $Id: remote.h 1.39 2007/02/24 15:53:00 kls Exp $ */ #ifndef __REMOTE_H @@ -28,6 +28,7 @@ private: static char *unknownCode; static cMutex mutex; static cCondVar keyPressed; + static time_t lastActivity; static const char *keyMacroPlugin; static const char *callPlugin; char *name; @@ -61,6 +62,8 @@ public: ///< plugin name will be reset to NULL by this call. static bool HasKeys(void); static eKeys Get(int WaitMs = 1000, char **UnknownCode = NULL); + static time_t LastActivity(void) { return lastActivity; } + ///< Absolute time when last key was delivered by Get(). }; class cRemotes : public cList<cRemote> {}; |