-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdummy_player.h
More file actions
38 lines (27 loc) · 735 Bytes
/
dummy_player.h
File metadata and controls
38 lines (27 loc) · 735 Bytes
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
/*
* dummy_player.h: Player that does nothing (saves CPU time)
*
* See the main source file '.c' for copyright information and
* how to reach the author.
*
*/
#ifndef __DUMMY_PLAYER_H
#define __DUMMY_PLAYER_H
#include <vdr/player.h>
class cDummyPlayer;
class cDummyPlayerControl : public cControl {
private:
static cDummyPlayer *m_Player;
static cMutex m_Lock;
static cDummyPlayer *OpenPlayer(void);
public:
cDummyPlayerControl(void);
virtual ~cDummyPlayerControl();
virtual void Show(void) {}
virtual void Hide(void) {}
virtual eOSState ProcessKey(eKeys Key);
static void Close(void);
static bool IsOpen(void) { return m_Player != NULL; }
static bool UseBlankImage;
};
#endif //__DUMMY_PLAYER_H