vdr 2.6.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
17class cInterface {
18private:
19 bool interrupted;
20 bool QueryKeys(cRemote *Remote, cSkinDisplayMenu *DisplayMenu);
21public:
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)
bool QueryKeys(cRemote *Remote, cSkinDisplayMenu *DisplayMenu)
void Interrupt(void)
Definition: interface.h:24
eKeys GetKey(bool Wait=true)
cInterface(void)
void LearnKeys(void)
eKeys Wait(int Seconds=0, bool KeepChar=false)
Definition: interface.c:41
cInterface * Interface
Definition: interface.c:20