vdr  2.2.0
interface.h
Go to the documentation of this file.
1 /*
2  * interface.h: Abstract user interface layer
3  *
4  * See the main source file 'vdr.c' for copyright information and
5  * how to reach the author.
6  *
7  * $Id: interface.h 3.0 2004/05/01 11:11:13 kls Exp $
8  */
9 
10 #ifndef __INTERFACE_H
11 #define __INTERFACE_H
12 
13 #include "config.h"
14 #include "remote.h"
15 #include "skins.h"
16 #include "svdrp.h"
17 
18 class cInterface {
19 private:
22  bool QueryKeys(cRemote *Remote, cSkinDisplayMenu *DisplayMenu);
23 public:
24  cInterface(int SVDRPport = 0);
25  ~cInterface();
26  bool HasSVDRPConnection(void) { return SVDRP && SVDRP->HasConnection(); }
27  void Interrupt(void) { interrupted = true; }
28  eKeys GetKey(bool Wait = true);
29  eKeys Wait(int Seconds = 0, bool KeepChar = false);
30  bool Confirm(const char *s, int Seconds = 10, bool WaitForTimeout = false);
31  void LearnKeys(void);
32  };
33 
34 extern cInterface *Interface;
35 
36 #endif //__INTERFACE_H
bool Confirm(const char *s, int Seconds=10, bool WaitForTimeout=false)
Definition: interface.c:67
bool QueryKeys(cRemote *Remote, cSkinDisplayMenu *DisplayMenu)
Definition: interface.c:76
void Interrupt(void)
Definition: interface.h:27
bool interrupted
Definition: interface.h:20
eKeys Wait(int Seconds=0, bool KeepChar=false)
Definition: interface.c:49
~cInterface()
Definition: interface.c:30
cInterface(int SVDRPport=0)
Definition: interface.c:22
cInterface * Interface
Definition: interface.c:20
cSVDRP * SVDRP
Definition: interface.h:21
Definition: remote.h:20
bool HasSVDRPConnection(void)
Definition: interface.h:26
eKeys GetKey(bool Wait=true)
Definition: interface.c:35
Definition: svdrp.h:42
eKeys
Definition: keys.h:16
bool HasConnection(void)
Definition: svdrp.h:92
void LearnKeys(void)
Definition: interface.c:155