vdr  2.0.2
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 2.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
37