mirror of
https://github.com/VDR4Arch/vdr.git
synced 2023-10-10 13:36:52 +02:00
Added a function to get a cRecordControl for a given cTimer
This commit is contained in:
parent
f822cdf261
commit
09e58657a1
11
menu.c
11
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 2.48 2012/04/15 10:15:16 kls Exp $
|
* $Id: menu.c 2.49 2012/04/22 10:44:20 kls Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "menu.h"
|
#include "menu.h"
|
||||||
@ -4395,6 +4395,15 @@ cRecordControl *cRecordControls::GetRecordControl(const char *FileName)
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
cRecordControl *cRecordControls::GetRecordControl(const cTimer *Timer)
|
||||||
|
{
|
||||||
|
for (int i = 0; i < MAXRECORDCONTROLS; i++) {
|
||||||
|
if (RecordControls[i] && RecordControls[i]->Timer() == Timer)
|
||||||
|
return RecordControls[i];
|
||||||
|
}
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
void cRecordControls::Process(time_t t)
|
void cRecordControls::Process(time_t t)
|
||||||
{
|
{
|
||||||
for (int i = 0; i < MAXRECORDCONTROLS; i++) {
|
for (int i = 0; i < MAXRECORDCONTROLS; i++) {
|
||||||
|
5
menu.h
5
menu.h
@ -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.h 2.5 2012/03/08 13:11:40 kls Exp $
|
* $Id: menu.h 2.6 2012/04/19 14:28:37 kls Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef __MENU_H
|
#ifndef __MENU_H
|
||||||
@ -243,6 +243,9 @@ public:
|
|||||||
static bool PauseLiveVideo(void);
|
static bool PauseLiveVideo(void);
|
||||||
static const char *GetInstantId(const char *LastInstantId);
|
static const char *GetInstantId(const char *LastInstantId);
|
||||||
static cRecordControl *GetRecordControl(const char *FileName);
|
static cRecordControl *GetRecordControl(const char *FileName);
|
||||||
|
static cRecordControl *GetRecordControl(const cTimer *Timer);
|
||||||
|
///< Returns the cRecordControl for the given Timer.
|
||||||
|
///< If there is no cRecordControl for Timer, NULL is returned.
|
||||||
static void Process(time_t t);
|
static void Process(time_t t);
|
||||||
static void ChannelDataModified(cChannel *Channel);
|
static void ChannelDataModified(cChannel *Channel);
|
||||||
static bool Active(void);
|
static bool Active(void);
|
||||||
|
Loading…
Reference in New Issue
Block a user