vdr  2.4.1
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 4.1 2015/04/28 11:15:11 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 
17 class cInterface {
18 private:
20  bool QueryKeys(cRemote *Remote, cSkinDisplayMenu *DisplayMenu);
21 public:
22  cInterface(void);
23  ~cInterface();
24  void Interrupt(void) { interrupted = true; }
25  eKeys GetKey(bool Wait = true);
26  eKeys Wait(int Seconds = 0, bool KeepChar = false);
27  bool Confirm(const char *s, int Seconds = 10, bool WaitForTimeout = false);
28  void LearnKeys(void);
29  };
30 
31 extern cInterface *Interface;
32 
33 #endif //__INTERFACE_H
remote.h
cInterface::interrupted
bool interrupted
Definition: interface.h:19
cInterface::Interrupt
void Interrupt(void)
Definition: interface.h:24
eKeys
eKeys
Definition: keys.h:16
cInterface::cInterface
cInterface(void)
Definition: interface.c:22
Interface
cInterface * Interface
Definition: interface.c:20
cInterface::Confirm
bool Confirm(const char *s, int Seconds=10, bool WaitForTimeout=false)
Definition: interface.c:59
cRemote
Definition: remote.h:20
cSkinDisplayMenu
Definition: skins.h:150
cInterface::GetKey
eKeys GetKey(bool Wait=true)
Definition: interface.c:31
skins.h
cInterface::~cInterface
~cInterface()
Definition: interface.c:27
cInterface::QueryKeys
bool QueryKeys(cRemote *Remote, cSkinDisplayMenu *DisplayMenu)
Definition: interface.c:68
cInterface::LearnKeys
void LearnKeys(void)
Definition: interface.c:147
config.h
cInterface
Definition: interface.h:17
cInterface::Wait
eKeys Wait(int Seconds=0, bool KeepChar=false)
Definition: interface.c:41