From c05277882c111760d4e275b8521bb057e913a946 Mon Sep 17 00:00:00 2001 From: lordjaxom Date: Tue, 21 Dec 2004 18:35:54 +0000 Subject: - dunno --- status.h | 30 ++++++++++++++++++++++-------- 1 file changed, 22 insertions(+), 8 deletions(-) (limited to 'status.h') 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 +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 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 -- cgit v1.2.3