summaryrefslogtreecommitdiff
path: root/status.h
diff options
context:
space:
mode:
Diffstat (limited to 'status.h')
-rw-r--r--status.h30
1 files changed, 22 insertions, 8 deletions
diff --git a/status.h b/status.h
index 56a09fc..d17fdd1 100644
--- a/status.h
+++ b/status.h
@@ -1,5 +1,5 @@
/*
- * $Id: status.h,v 1.1 2004/12/19 22:03:19 lordjaxom Exp $
+ * $Id: status.h,v 1.2 2004/12/21 18:35:54 lordjaxom Exp $
*/
#ifndef VDR_TEXT2SKIN_STATUS_H
@@ -8,6 +8,8 @@
#include "common.h"
#include <vdr/status.h>
+class cText2SkinRender;
+
class cText2SkinStatus: public cStatus {
public:
enum eReplayMode {
@@ -19,26 +21,38 @@ public:
replayVCD,
replayImage,
-#define __REPLAY_COUNT__ (replayImage+1)
+#define __REPLAY_COUNT__ (cText2SkinStatus::replayImage+1)
};
+ struct tRecordingInfo {
+ std::string name;
+ const cDevice *device;
+
+ tRecordingInfo(const std::string &n, const cDevice *d): name(n), device(d) {}
+ };
+ typedef std::vector<tRecordingInfo> tRecordings;
+
private:
static cText2SkinStatus *mStatus;
- static const std::string ReplayNames[__REPLAY_COUNT__];
- eReplayMode mReplayMode;
+ cText2SkinRender *mRender;
+ eReplayMode mReplayMode;
+ tRecordings mRecordings;
+ uint mCurrentRecording;
+ uint mNextRecording;
protected:
virtual void Replaying(const cControl *Control, const char *Name);
+ virtual void Recording(const cDevice *Device, const char *Name);
public:
cText2SkinStatus(void);
- static const std::string &ReplayMode(void);
+ void SetRender(cText2SkinRender *Render);
+
+ cxType GetTokenData(const txToken &Token);
};
-inline const std::string &cText2SkinStatus::ReplayMode(void) {
- return ReplayNames[mStatus->mReplayMode];
-}
+extern cText2SkinStatus Text2SkinStatus;
#endif // VDR_TEXT2SKIN_STATUS_H