vdr 2.6.3
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
18private:
20 bool QueryKeys(cRemote *Remote, cSkinDisplayMenu *DisplayMenu);
21public:
22 cInterface(void);
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
31extern cInterface *Interface;
32
33#endif //__INTERFACE_H
bool Confirm(const char *s, int Seconds=10, bool WaitForTimeout=false)
Definition: interface.c:59
bool QueryKeys(cRemote *Remote, cSkinDisplayMenu *DisplayMenu)
Definition: interface.c:68
void Interrupt(void)
Definition: interface.h:24
eKeys GetKey(bool Wait=true)
Definition: interface.c:31
~cInterface()
Definition: interface.c:27
cInterface(void)
Definition: interface.c:22
void LearnKeys(void)
Definition: interface.c:147
bool interrupted
Definition: interface.h:19
eKeys Wait(int Seconds=0, bool KeepChar=false)
Definition: interface.c:41
Definition: remote.h:20
cInterface * Interface
Definition: interface.c:20
eKeys
Definition: keys.h:16