summaryrefslogtreecommitdiff
path: root/control.h
blob: d0b773de6960143c7188c65c2e5abf821f704414 (plain)
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
/**
 * based on control.h,v 1.2 2007/06/18 17:58:52 lordjaxom
 *
 * version by Midas
 *
 */

#ifndef VDR_BLOCK_CONTROL_H
#define VDR_BLOCK_CONTROL_H

#include <vdr/player.h>

class cControlBlock : public cControl {
private:
	static bool           mRequested;
	
	const cChannel       *mChannel;
	const cEvent         *mPresent;
	const cEvent         *mFollowing;
	uint64_t              mStart;
	bool                  mSwitch;
	cSkinDisplayChannel  *mOsd;
	int direction;

protected:
	virtual void Show(void);
  virtual void Hide(void) {}

public:
  cControlBlock(const cChannel *Channel, const cEvent *Present, const cEvent *Following);
  ~cControlBlock();

  virtual eOSState ProcessKey(eKeys Key);

	static bool IsRequested(void) { bool r = mRequested; mRequested = false; return r; }
};

#endif // VDR_BLOCK_CONTROL_H