diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2000-10-03 12:44:15 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2000-10-03 12:44:15 +0200 |
commit | 71c17e50642d9256dc5cac86a284f80f8acf75bb (patch) | |
tree | cec1cb014182aa9bca9e74d2b645b2a8d8927e41 | |
parent | e4f7e025e59707b655032f7a3347bf89bad47484 (diff) | |
download | vdr-71c17e50642d9256dc5cac86a284f80f8acf75bb.tar.gz vdr-71c17e50642d9256dc5cac86a284f80f8acf75bb.tar.bz2 |
Implemented 'new recording' indicator
-rw-r--r-- | CONTRIBUTORS | 1 | ||||
-rw-r--r-- | HISTORY | 5 | ||||
-rw-r--r-- | MANUAL | 2 | ||||
-rw-r--r-- | menu.c | 4 | ||||
-rw-r--r-- | recording.c | 14 | ||||
-rw-r--r-- | recording.h | 4 |
6 files changed, 20 insertions, 10 deletions
diff --git a/CONTRIBUTORS b/CONTRIBUTORS index 03fd4bc0..a70ff64b 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -6,6 +6,7 @@ Carsten Koch <Carsten.Koch@icem.de> for implementing the 'Summary' feature for adding the 'epg2timers' tool (see Tools/epg2timers) for his idea of using multiple disks (and for testing this feature) + for implementing the 'new recording' indicator Plamen Ganev <pganev@com-it.net> for fixing the frequency offset for Hotbird channels @@ -206,11 +206,12 @@ Video Disk Recorder Revision History 2000-10-03: Version 0.65 -- Modified LIRC interface to better handle repeat function (by Carsten Koch). +- Modified LIRC interface to better handle repeat function. - Faster OSD by first writing into a bitmap and then sending the entire bitmap to the DVB driver at once (requires the patch 'dvb.c.071.diff' to be applied against the version 0.71 DVB driver file 'dvb.c'). - When switching channels the channel is now immediately displayed, and the current/next information is shown as soon as it becomes available. - No longer displaying the year in the 'Recordings' menu to save space for the - title (by Carsten Koch). + title. +- The 'Recordings' menu now displays a '*' to indicate new recordings. @@ -97,7 +97,7 @@ Video Disk Recorder User's Manual All recordings are listed in the "Recordings" menu. Browse through the list with the "Up" and "Down" button and press "Ok" (or the "Red" button) - to start playback. + to start playback. New recordings are marked with an '*'. Playback can be stopped via the Main menu by selecting "Stop replaying", or by pressing the "Blue" button outside the menu. @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: menu.c 1.28 2000/10/03 11:32:41 kls Exp $ + * $Id: menu.c 1.29 2000/10/03 12:38:03 kls Exp $ */ #include "menu.h" @@ -985,7 +985,7 @@ cMenuRecordingItem::cMenuRecordingItem(cRecording *Recording) void cMenuRecordingItem::Set(void) { - SetText(recording->Title('\t')); + SetText(recording->Title('\t', true)); } // --- cMenuRecordings ------------------------------------------------------- diff --git a/recording.c b/recording.c index ae59688f..60ea4a1c 100644 --- a/recording.c +++ b/recording.c @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: recording.c 1.17 2000/10/03 11:32:03 kls Exp $ + * $Id: recording.c 1.18 2000/10/03 12:39:28 kls Exp $ */ #define _GNU_SOURCE @@ -15,6 +15,7 @@ #include <string.h> #include <sys/stat.h> #include <unistd.h> +#include "dvbapi.h" #include "interface.h" #include "tools.h" #include "videodir.h" @@ -170,17 +171,24 @@ const char *cRecording::FileName(void) return fileName; } -const char *cRecording::Title(char Delimiter) +const char *cRecording::Title(char Delimiter, bool NewIndicator) { + char New = ' '; + if (NewIndicator) { + cResumeFile ResumeFile(FileName()); + if (ResumeFile.Read() <= 0) + New = '*'; + } delete titleBuffer; titleBuffer = NULL; struct tm *t = localtime(&start); - asprintf(&titleBuffer, "%02d.%02d%c%02d:%02d%c%s", + asprintf(&titleBuffer, "%02d.%02d%c%02d:%02d%c%c%s", t->tm_mday, t->tm_mon + 1, Delimiter, t->tm_hour, t->tm_min, + New, Delimiter, name); return titleBuffer; diff --git a/recording.h b/recording.h index dc3b3d74..7511c659 100644 --- a/recording.h +++ b/recording.h @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: recording.h 1.9 2000/07/28 13:53:54 kls Exp $ + * $Id: recording.h 1.10 2000/10/03 12:27:49 kls Exp $ */ #ifndef __RECORDING_H @@ -31,7 +31,7 @@ public: cRecording(const char *FileName); ~cRecording(); const char *FileName(void); - const char *Title(char Delimiter = ' '); + const char *Title(char Delimiter = ' ', bool NewIndicator = false); const char *Summary(void) { return summary; } bool WriteSummary(void); bool Delete(void); |