summaryrefslogtreecommitdiff
path: root/status.h
blob: 56a09fc1dbbdc03dd50f5a18124b1eeffa8e6ca2 (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
39
40
41
42
43
44
/*
 * $Id: status.h,v 1.1 2004/12/19 22:03:19 lordjaxom Exp $
 */
 
#ifndef VDR_TEXT2SKIN_STATUS_H
#define VDR_TEXT2SKIN_STATUS_H

#include "common.h"
#include <vdr/status.h>

class cText2SkinStatus: public cStatus {
public:
	enum eReplayMode {
		replayNone,
		replayNormal,
		replayMP3,
		replayMPlayer,
		replayDVD,
		replayVCD,
		replayImage,

#define __REPLAY_COUNT__ (replayImage+1)
	};

private:
	static cText2SkinStatus *mStatus;
	static const std::string ReplayNames[__REPLAY_COUNT__];

	eReplayMode mReplayMode;

protected:
	virtual void Replaying(const cControl *Control, const char *Name);

public:
	cText2SkinStatus(void);

	static const std::string &ReplayMode(void);
};

inline const std::string &cText2SkinStatus::ReplayMode(void) {
	return ReplayNames[mStatus->mReplayMode];
}

#endif // VDR_TEXT2SKIN_STATUS_H