mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
Implemented 'new recording' indicator
This commit is contained in:
parent
e4f7e025e5
commit
71c17e5064
@ -6,6 +6,7 @@ Carsten Koch <Carsten.Koch@icem.de>
|
|||||||
for implementing the 'Summary' feature
|
for implementing the 'Summary' feature
|
||||||
for adding the 'epg2timers' tool (see Tools/epg2timers)
|
for adding the 'epg2timers' tool (see Tools/epg2timers)
|
||||||
for his idea of using multiple disks (and for testing this feature)
|
for his idea of using multiple disks (and for testing this feature)
|
||||||
|
for implementing the 'new recording' indicator
|
||||||
|
|
||||||
Plamen Ganev <pganev@com-it.net>
|
Plamen Ganev <pganev@com-it.net>
|
||||||
for fixing the frequency offset for Hotbird channels
|
for fixing the frequency offset for Hotbird channels
|
||||||
|
5
HISTORY
5
HISTORY
@ -206,11 +206,12 @@ Video Disk Recorder Revision History
|
|||||||
|
|
||||||
2000-10-03: Version 0.65
|
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
|
- 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
|
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').
|
against the version 0.71 DVB driver file 'dvb.c').
|
||||||
- When switching channels the channel is now immediately displayed, and the
|
- When switching channels the channel is now immediately displayed, and the
|
||||||
current/next information is shown as soon as it becomes available.
|
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
|
- 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.
|
||||||
|
2
MANUAL
2
MANUAL
@ -97,7 +97,7 @@ Video Disk Recorder User's Manual
|
|||||||
|
|
||||||
All recordings are listed in the "Recordings" menu. Browse through the
|
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)
|
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",
|
Playback can be stopped via the Main menu by selecting "Stop replaying",
|
||||||
or by pressing the "Blue" button outside the menu.
|
or by pressing the "Blue" button outside the menu.
|
||||||
|
|
||||||
|
4
menu.c
4
menu.c
@ -4,7 +4,7 @@
|
|||||||
* See the main source file 'vdr.c' for copyright information and
|
* See the main source file 'vdr.c' for copyright information and
|
||||||
* how to reach the author.
|
* 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"
|
#include "menu.h"
|
||||||
@ -985,7 +985,7 @@ cMenuRecordingItem::cMenuRecordingItem(cRecording *Recording)
|
|||||||
|
|
||||||
void cMenuRecordingItem::Set(void)
|
void cMenuRecordingItem::Set(void)
|
||||||
{
|
{
|
||||||
SetText(recording->Title('\t'));
|
SetText(recording->Title('\t', true));
|
||||||
}
|
}
|
||||||
|
|
||||||
// --- cMenuRecordings -------------------------------------------------------
|
// --- cMenuRecordings -------------------------------------------------------
|
||||||
|
14
recording.c
14
recording.c
@ -4,7 +4,7 @@
|
|||||||
* See the main source file 'vdr.c' for copyright information and
|
* See the main source file 'vdr.c' for copyright information and
|
||||||
* how to reach the author.
|
* 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
|
#define _GNU_SOURCE
|
||||||
@ -15,6 +15,7 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
#include "dvbapi.h"
|
||||||
#include "interface.h"
|
#include "interface.h"
|
||||||
#include "tools.h"
|
#include "tools.h"
|
||||||
#include "videodir.h"
|
#include "videodir.h"
|
||||||
@ -170,17 +171,24 @@ const char *cRecording::FileName(void)
|
|||||||
return fileName;
|
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;
|
delete titleBuffer;
|
||||||
titleBuffer = NULL;
|
titleBuffer = NULL;
|
||||||
struct tm *t = localtime(&start);
|
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_mday,
|
||||||
t->tm_mon + 1,
|
t->tm_mon + 1,
|
||||||
Delimiter,
|
Delimiter,
|
||||||
t->tm_hour,
|
t->tm_hour,
|
||||||
t->tm_min,
|
t->tm_min,
|
||||||
|
New,
|
||||||
Delimiter,
|
Delimiter,
|
||||||
name);
|
name);
|
||||||
return titleBuffer;
|
return titleBuffer;
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
* See the main source file 'vdr.c' for copyright information and
|
* See the main source file 'vdr.c' for copyright information and
|
||||||
* how to reach the author.
|
* 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
|
#ifndef __RECORDING_H
|
||||||
@ -31,7 +31,7 @@ public:
|
|||||||
cRecording(const char *FileName);
|
cRecording(const char *FileName);
|
||||||
~cRecording();
|
~cRecording();
|
||||||
const char *FileName(void);
|
const char *FileName(void);
|
||||||
const char *Title(char Delimiter = ' ');
|
const char *Title(char Delimiter = ' ', bool NewIndicator = false);
|
||||||
const char *Summary(void) { return summary; }
|
const char *Summary(void) { return summary; }
|
||||||
bool WriteSummary(void);
|
bool WriteSummary(void);
|
||||||
bool Delete(void);
|
bool Delete(void);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user