mirror of
				https://github.com/vdr-projects/vdr.git
				synced 2025-03-01 10:50:46 +00:00 
			
		
		
		
	The new member function cSkinDisplayReplay::SetRecording() allows a skin to display more information about the currently played recording
This commit is contained in:
		
							
								
								
									
										17
									
								
								skins.c
									
									
									
									
									
								
							
							
						
						
									
										17
									
								
								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;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user