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.
|
|
|
|
*
|
2015-04-29 13:10:06 +02:00
|
|
|
* $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"
|
2000-10-08 12:24:30 +02:00
|
|
|
#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:
|
2015-04-29 13:10:06 +02:00
|
|
|
cInterface(void);
|
2000-10-08 12:24:30 +02:00
|
|
|
~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);
|
|
|
|
};
|
|
|
|
|
2000-10-08 12:24:30 +02:00
|
|
|
extern cInterface *Interface;
|
2000-02-19 13:36:48 +01:00
|
|
|
|
|
|
|
#endif //__INTERFACE_H
|