-
Notifications
You must be signed in to change notification settings - Fork 0
/
osdproxy.h
42 lines (32 loc) · 911 Bytes
/
osdproxy.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#ifndef _OSDPROXY_H
#define _OSDPROXY_H 1
#include <vdr/osdbase.h>
class cOsdMenu;
class cOsdProxyData
{
public:
cOsdProxyData() {};
virtual ~cOsdProxyData() {};
};
typedef cOsdMenu* (*OSDCREATEFUNC)(const char*, cOsdProxyData* data);
typedef eOSState (*KEYHANDLERFUNC)(eKeys Key);
typedef void (*RELEASEFUNC) (void);
class cOsdProxy : public cOsdObject
{
private:
bool mReturnOsEnd;
cOsdProxyData* mData;
eKeys mOsdKey;
char* mTitle;
cOsdMenu* mOsdMenu;
OSDCREATEFUNC mOsdMenuCreateFunc;
KEYHANDLERFUNC mKeyHandlerFunc;
RELEASEFUNC mReleaseFunc;
public:
cOsdProxy(OSDCREATEFUNC osdMenuCreateFunction, KEYHANDLERFUNC keyHandler, RELEASEFUNC releaseFunc, const char* title, cOsdProxyData* data, eKeys osdKey, bool directShow);
virtual ~cOsdProxy();
virtual eOSState ProcessKey(eKeys Key);
virtual void Show(void);
void ShowOsd(bool show);
};
#endif // #ifndef _OSDPROXY_H