summaryrefslogtreecommitdiff
path: root/display.c
diff options
context:
space:
mode:
authorlordjaxom <lordjaxom>2005-05-30 10:07:45 +0000
committerlordjaxom <lordjaxom>2005-05-30 10:07:45 +0000
commit0a8c56cd149462f76edc40c2edbba21c5d88beb5 (patch)
treed8243324e8f7ba13c193e1262003bad49b9596c3 /display.c
parentf7780da63dbc6fc2715cb364b68f756c4165718c (diff)
downloadvdr-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.c29
1 files changed, 28 insertions, 1 deletions
diff --git a/display.c b/display.c
index 578c126..e5a7f38 100644
--- a/display.c
+++ b/display.c
@@ -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);
}