From 5c5d72ee401f48587ef385637496a3445fee94c9 Mon Sep 17 00:00:00 2001 From: Martin Dummer Date: Mon, 18 Jun 2012 22:14:14 +0200 Subject: import of version 0.0.3 --- menuundelete.c | 22 +++++++++++++++++++++- undelete.c | 4 ++-- 2 files changed, 23 insertions(+), 3 deletions(-) diff --git a/menuundelete.c b/menuundelete.c index e059797..8164b5d 100644 --- a/menuundelete.c +++ b/menuundelete.c @@ -3,7 +3,7 @@ * * See the README file for copyright information and how to reach the author. * - * $Id: menuundelete.c 0.2 2004/10/10 12:23:20 hflor Exp $ + * $Id: menuundelete.c 0.3 2005/10/04 12:35:20 hflor Exp $ */ #include "menuundelete.h" @@ -194,7 +194,11 @@ void cMenuRecordingSelect::SetHelpKeys(void) else { cRecording *recording = GetRecording(ri); +#if VDRVERSNUM >= 10325 + SetHelp(NULL, tr("Undelete"), tr("Delete"), (recording && recording->Info()->Title() && *recording->Info()->Title()) ? tr("Summary") : NULL); +#else SetHelp(NULL, tr("Undelete"), tr("Delete"), (recording && recording->Summary() && *recording->Summary()) ? tr("Summary") : NULL); +#endif } } else { @@ -290,11 +294,23 @@ eOSState cMenuRecordingSelect::Summary(void) if (ri && !ri->IsDirectory()) { cRecording *recording = GetRecording(ri); +#if VDRVERSNUM >= 10325 + if (recording && recording->Info()->Title() && *recording->Info()->Title()) +#else if (recording && recording->Summary() && *recording->Summary()) +#endif #if VDRVERSNUM >= 10307 +#if VDRVERSNUM >= 10325 + return AddSubMenu(new cMenuText(tr("Summary"), recording->Info()->Title())); +#else return AddSubMenu(new cMenuText(tr("Summary"), recording->Summary())); +#endif +#else +#if VDRVERSNUM >= 10325 + return AddSubMenu(new cMenuItemText(tr("Summary"), recording->Info()->Title())); #else return AddSubMenu(new cMenuItemText(tr("Summary"), recording->Summary())); +#endif #endif } return osContinue; @@ -423,8 +439,12 @@ cMenuUndelete::~cMenuUndelete() #if VDRVERSNUM >= 10311 if (SalvageRecording) +#if VDRVERSNUM >= 10333 + Recordings.Update(); +#else Recordings.TriggerUpdate(); #endif +#endif } eOSState cMenuUndelete::ProcessKey(eKeys Key) diff --git a/undelete.c b/undelete.c index 386fe6e..9710d54 100644 --- a/undelete.c +++ b/undelete.c @@ -3,7 +3,7 @@ * * See the README file for copyright information and how to reach the author. * - * $Id: undelete.c 0.2 2004/10/10 12:23:20 hflor Exp $ + * $Id: undelete.c 0.3 2005/10/04 14:35:20 hflor Exp $ */ #include "undelete.h" @@ -15,7 +15,7 @@ #include #include -static const char *VERSION = "0.0.2"; +static const char *VERSION = "0.0.3"; static const char *DESCRIPTION = "undelete for recordings"; // Global variables that control the overall behaviour: -- cgit v1.2.3