summaryrefslogtreecommitdiff
path: root/skins.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2012-05-12 14:20:41 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2012-05-12 14:20:41 +0200
commit5f93700e07382ec2d1ef735f36f4f988f0318ad2 (patch)
tree188c7eff4ccbae80c5c505e25039b0b91328b2ae /skins.c
parent2193ea32f62c4394be13e2950896f49e01e1d14f (diff)
downloadvdr-5f93700e07382ec2d1ef735f36f4f988f0318ad2.tar.gz
vdr-5f93700e07382ec2d1ef735f36f4f988f0318ad2.tar.bz2
The new member function cSkinDisplayReplay::SetRecording() allows a skin to display more information about the currently played recording
Diffstat (limited to 'skins.c')
-rw-r--r--skins.c17
1 files changed, 16 insertions, 1 deletions
diff --git a/skins.c b/skins.c
index b2ca83ad..85741e9c 100644
--- a/skins.c
+++ b/skins.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: skins.c 2.7 2012/04/28 10:40:16 kls Exp $
+ * $Id: skins.c 2.8 2012/05/12 11:27:23 kls Exp $
*/
#include "skins.h"
@@ -172,6 +172,21 @@ cSkinDisplayReplay::cSkinDisplayReplay(void)
marks = NULL;
}
+void cSkinDisplayReplay::SetRecording(const cRecording *Recording)
+{
+ const char *Title = NULL;
+ const char *ShortText = NULL;
+ const cRecordingInfo *RecordingInfo = Recording->Info();
+ if ((Title = RecordingInfo->Title()) != NULL)
+ ShortText = RecordingInfo->ShortText();
+ else
+ Title = Recording->Name();
+ if (ShortText)
+ SetTitle(cString::sprintf("%s: %s", Title, ShortText));
+ else
+ SetTitle(Title);
+}
+
void cSkinDisplayReplay::SetMarks(const cMarks *Marks)
{
marks = Marks;