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

37 lines
895 B
C
Raw 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.
*
2004-05-16 10:35:36 +02:00
* $Id: interface.h 1.31 2004/05/01 11:11:13 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-09-19 17:48:42 +02:00
#include "svdrp.h"
2000-02-19 13:36:48 +01:00
class cInterface {
private:
2001-09-01 09:04:37 +02:00
bool interrupted;
2000-09-19 17:48:42 +02:00
cSVDRP *SVDRP;
2004-05-16 10:35:36 +02:00
bool QueryKeys(cRemote *Remote, cSkinDisplayMenu *DisplayMenu);
2000-02-19 13:36:48 +01:00
public:
cInterface(int SVDRPport = 0);
~cInterface();
bool HasSVDRPConnection(void) { return SVDRP && SVDRP->HasConnection(); }
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