summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Dummer <martin.dummer@gmx.net>2012-06-18 22:14:14 +0200
committerMartin Dummer <martin.dummer@gmx.net>2012-06-18 22:14:14 +0200
commit5c5d72ee401f48587ef385637496a3445fee94c9 (patch)
tree53b2bc00ce6b52d8179c0ee2c3e196b256a10b86
parent48974acd8a2550c8f32f52ba9fd84a29ca148ab4 (diff)
downloadvdr-plugin-undelete-0.0.3.tar.gz
vdr-plugin-undelete-0.0.3.tar.bz2
import of version 0.0.3v0.0.3
-rw-r--r--menuundelete.c22
-rw-r--r--undelete.c4
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,12 +294,24 @@ 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 <ctype.h>
#include <vdr/recording.h>
-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: