mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
Made the functions cRecordingInfo::SetData() and cRecordingInfo::SetAux() public
This commit is contained in:
parent
d78d6fba7e
commit
dee1225fa4
@ -1226,6 +1226,7 @@ Peter Bieringer <pb@bieringer.de>
|
|||||||
for suggesting to ignore lines tagged with '#' in the 'info.vdr' file of a recording
|
for suggesting to ignore lines tagged with '#' in the 'info.vdr' file of a recording
|
||||||
for reporting a problem with the backslash ('\') in parameters when executing
|
for reporting a problem with the backslash ('\') in parameters when executing
|
||||||
external commands
|
external commands
|
||||||
|
for making the functions cRecordingInfo::SetData() and cRecordingInfo::SetAux() public
|
||||||
|
|
||||||
Alexander Damhuis <ad@phonedation.de>
|
Alexander Damhuis <ad@phonedation.de>
|
||||||
for reporting problems when deleting a timer that is currently recording
|
for reporting problems when deleting a timer that is currently recording
|
||||||
|
4
HISTORY
4
HISTORY
@ -9578,7 +9578,7 @@ Video Disk Recorder Revision History
|
|||||||
given (reported by Manuel Reimer).
|
given (reported by Manuel Reimer).
|
||||||
- Fixed handling $(PKG_CONFIG) in newplugin (thanks to Winfried Köhler).
|
- Fixed handling $(PKG_CONFIG) in newplugin (thanks to Winfried Köhler).
|
||||||
|
|
||||||
2021-01-15:
|
2021-01-18:
|
||||||
|
|
||||||
- Fixed strreplace() to handle NULL strings (reported by Jürgen Schneider).
|
- Fixed strreplace() to handle NULL strings (reported by Jürgen Schneider).
|
||||||
- Somewhere down the road the 'x' bit of Doxyfile.filter got lost, so the
|
- Somewhere down the road the 'x' bit of Doxyfile.filter got lost, so the
|
||||||
@ -9597,3 +9597,5 @@ Video Disk Recorder Revision History
|
|||||||
- If an event in the Schedules menu is marked with a 'T' or 'I' and the user presses the
|
- If an event in the Schedules menu is marked with a 'T' or 'I' and the user presses the
|
||||||
Red button to edit the timer, spawned timers are now preferred over pattern timers
|
Red button to edit the timer, spawned timers are now preferred over pattern timers
|
||||||
in case there is more than one timer that will match that event.
|
in case there is more than one timer that will match that event.
|
||||||
|
- Made the functions cRecordingInfo::SetData() and cRecordingInfo::SetAux() public
|
||||||
|
(thanks to Peter Bieringer).
|
||||||
|
@ -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 5.2 2021/01/01 15:26:27 kls Exp $
|
* $Id: recording.c 5.3 2021/01/18 12:55:47 kls Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "recording.h"
|
#include "recording.h"
|
||||||
@ -430,11 +430,11 @@ cRecordingInfo::~cRecordingInfo()
|
|||||||
|
|
||||||
void cRecordingInfo::SetData(const char *Title, const char *ShortText, const char *Description)
|
void cRecordingInfo::SetData(const char *Title, const char *ShortText, const char *Description)
|
||||||
{
|
{
|
||||||
if (!isempty(Title))
|
if (Title)
|
||||||
((cEvent *)event)->SetTitle(Title);
|
((cEvent *)event)->SetTitle(Title);
|
||||||
if (!isempty(ShortText))
|
if (ShortText)
|
||||||
((cEvent *)event)->SetShortText(ShortText);
|
((cEvent *)event)->SetShortText(ShortText);
|
||||||
if (!isempty(Description))
|
if (Description)
|
||||||
((cEvent *)event)->SetDescription(Description);
|
((cEvent *)event)->SetDescription(Description);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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 5.1 2020/12/26 15:49:01 kls Exp $
|
* $Id: recording.h 5.2 2021/01/18 12:55:47 kls Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __RECORDING_H
|
#ifndef __RECORDING_H
|
||||||
@ -74,8 +74,6 @@ private:
|
|||||||
char *fileName;
|
char *fileName;
|
||||||
cRecordingInfo(const cChannel *Channel = NULL, const cEvent *Event = NULL);
|
cRecordingInfo(const cChannel *Channel = NULL, const cEvent *Event = NULL);
|
||||||
bool Read(FILE *f);
|
bool Read(FILE *f);
|
||||||
void SetData(const char *Title, const char *ShortText, const char *Description);
|
|
||||||
void SetAux(const char *Aux);
|
|
||||||
public:
|
public:
|
||||||
cRecordingInfo(const char *FileName);
|
cRecordingInfo(const char *FileName);
|
||||||
~cRecordingInfo();
|
~cRecordingInfo();
|
||||||
@ -93,6 +91,8 @@ public:
|
|||||||
bool Write(FILE *f, const char *Prefix = "") const;
|
bool Write(FILE *f, const char *Prefix = "") const;
|
||||||
bool Read(void);
|
bool Read(void);
|
||||||
bool Write(void) const;
|
bool Write(void) const;
|
||||||
|
void SetData(const char *Title, const char *ShortText, const char *Description);
|
||||||
|
void SetAux(const char *Aux);
|
||||||
};
|
};
|
||||||
|
|
||||||
class cRecording : public cListObject {
|
class cRecording : public cListObject {
|
||||||
@ -150,7 +150,7 @@ public:
|
|||||||
///< Returns the full path name to the recording directory, including the
|
///< Returns the full path name to the recording directory, including the
|
||||||
///< video directory and the actual '*.rec'. For disk file access use.
|
///< video directory and the actual '*.rec'. For disk file access use.
|
||||||
const char *Title(char Delimiter = ' ', bool NewIndicator = false, int Level = -1) const;
|
const char *Title(char Delimiter = ' ', bool NewIndicator = false, int Level = -1) const;
|
||||||
const cRecordingInfo *Info(void) const { return info; }
|
cRecordingInfo *Info(void) const { return info; }
|
||||||
const char *PrefixFileName(char Prefix);
|
const char *PrefixFileName(char Prefix);
|
||||||
int HierarchyLevels(void) const;
|
int HierarchyLevels(void) const;
|
||||||
void ResetResume(void) const;
|
void ResetResume(void) const;
|
||||||
|
Loading…
Reference in New Issue
Block a user