1
0
mirror of https://github.com/VDR4Arch/vdr.git synced 2023-10-10 13:36:52 +02:00
vdr/interface.h

34 lines
769 B
C
Raw Permalink Normal View History

2000-02-19 13:36:48 +01:00
/*
* interface.h: Abstract user interface layer
*
2000-04-24 09:46:05 +02:00
* See the main source file 'vdr.c' for copyright information and
2000-02-19 13:36:48 +01:00
* how to reach the author.
*
* $Id: interface.h 4.1 2015/04/28 11:15:11 kls Exp $
2000-02-19 13:36:48 +01:00
*/
#ifndef __INTERFACE_H
#define __INTERFACE_H
#include "config.h"
#include "remote.h"
2004-05-16 10:35:36 +02:00
#include "skins.h"
2000-02-19 13:36:48 +01:00
class cInterface {
private:
2001-09-01 09:04:37 +02:00
bool interrupted;
2004-05-16 10:35:36 +02:00
bool QueryKeys(cRemote *Remote, cSkinDisplayMenu *DisplayMenu);
2000-02-19 13:36:48 +01:00
public:
cInterface(void);
~cInterface();
2001-09-01 09:04:37 +02:00
void Interrupt(void) { interrupted = true; }
2000-04-23 15:38:16 +02:00
eKeys GetKey(bool Wait = true);
2004-05-16 10:35:36 +02:00
eKeys Wait(int Seconds = 0, bool KeepChar = false);
2001-09-01 09:04:37 +02:00
bool Confirm(const char *s, int Seconds = 10, bool WaitForTimeout = false);
2000-02-19 13:36:48 +01:00
void LearnKeys(void);
};
extern cInterface *Interface;
2000-02-19 13:36:48 +01:00
#endif //__INTERFACE_H