diff options
author | lordjaxom <lordjaxom> | 2005-05-30 10:07:45 +0000 |
---|---|---|
committer | lordjaxom <lordjaxom> | 2005-05-30 10:07:45 +0000 |
commit | 0a8c56cd149462f76edc40c2edbba21c5d88beb5 (patch) | |
tree | d8243324e8f7ba13c193e1262003bad49b9596c3 /display.c | |
parent | f7780da63dbc6fc2715cb364b68f756c4165718c (diff) | |
download | vdr-plugin-text2skin-0a8c56cd149462f76edc40c2edbba21c5d88beb5.tar.gz vdr-plugin-text2skin-0a8c56cd149462f76edc40c2edbba21c5d88beb5.tar.bz2 |
- added tokens for Recording Info Display
(RecordingName, RecordingDateTime, RecordingTitle, RecordingShortText,
RecordingDescription)
Diffstat (limited to 'display.c')
-rw-r--r-- | display.c | 29 |
1 files changed, 28 insertions, 1 deletions
@@ -1,5 +1,5 @@ /* - * $Id: display.c,v 1.20 2005/05/30 09:23:41 lordjaxom Exp $ + * $Id: display.c,v 1.21 2005/05/30 10:07:45 lordjaxom Exp $ */ #include "render.h" @@ -1067,6 +1067,33 @@ cxType cText2SkinDisplayMenu::GetTokenData(const txToken &Token) case tMenuText: return mText; +#if VDRVERSNUM >= 10325 + case tRecordingName: + return mRecording != NULL + ? (cxType)mRecording->Name() + : (cxType)false; + + case tRecordingDateTime: + return mRecording != NULL + ? (cxType)TimeType(mRecording->start, Token.Attrib.Text) + : (cxType)false; + + case tRecordingTitle: + return mRecording != NULL + ? (cxType)mRecording->Info()->Title() + : (cxType)false; + + case tRecordingShortText: + return mRecording != NULL + ? (cxType)mRecording->Info()->ShortText() + : (cxType)false; + + case tRecordingDescription: + return mRecording != NULL + ? (cxType)mRecording->Info()->Description() + : (cxType)false; +#endif + default: return cText2SkinRender::GetTokenData(Token); } |