vdr 2.7.2
cRecordControls Class Reference

#include <menu.h>

Static Public Member Functions

static bool Start (cTimers *Timers, cTimer *Timer, bool Pause=false)
 
static bool Start (bool Pause=false)
 
static void Stop (const char *InstantId)
 
static void Stop (cTimer *Timer)
 
static bool PauseLiveVideo (void)
 
static const char * GetInstantId (const char *LastInstantId)
 
static cRecordControlGetRecordControl (const char *FileName)
 
static cRecordControlGetRecordControl (const cTimer *Timer)
 
static bool Process (cTimers *Timers, time_t t)
 
static void ChannelDataModified (const cChannel *Channel)
 
static bool Active (void)
 
static void Shutdown (void)
 
static void ChangeState (void)
 
static bool StateChanged (int &State)
 

Static Private Attributes

static cRecordControlRecordControls [] = { NULL }
 
static int state = 0
 

Detailed Description

Definition at line 257 of file menu.h.

Member Function Documentation

◆ Active()

◆ ChangeState()

static void cRecordControls::ChangeState ( void )
inlinestatic

Definition at line 276 of file menu.h.

References state.

Referenced by ChannelDataModified(), Process(), Shutdown(), Start(), Stop(), and Stop().

◆ ChannelDataModified()

void cRecordControls::ChannelDataModified ( const cChannel * Channel)
static

◆ GetInstantId()

const char * cRecordControls::GetInstantId ( const char * LastInstantId)
static

Definition at line 5613 of file menu.c.

References cRecordControl::InstantId(), MAXRECORDCONTROLS, and RecordControls.

Referenced by cMenuMain::Update().

◆ GetRecordControl() [1/2]

cRecordControl * cRecordControls::GetRecordControl ( const char * FileName)
static

◆ GetRecordControl() [2/2]

cRecordControl * cRecordControls::GetRecordControl ( const cTimer * Timer)
static

Returns the cRecordControl for the given Timer.

If there is no cRecordControl for Timer, NULL is returned.

Definition at line 5637 of file menu.c.

References MAXRECORDCONTROLS, and RecordControls.

◆ PauseLiveVideo()

bool cRecordControls::PauseLiveVideo ( void )
static

◆ Process()

bool cRecordControls::Process ( cTimers * Timers,
time_t t )
static

◆ Shutdown()

void cRecordControls::Shutdown ( void )
static

Definition at line 5687 of file menu.c.

References ChangeState(), DELETENULL(), MAXRECORDCONTROLS, and RecordControls.

Referenced by main().

◆ Start() [1/2]

bool cRecordControls::Start ( bool Pause = false)
static

Definition at line 5559 of file menu.c.

References LOCK_TIMERS_WRITE, and Start().

◆ Start() [2/2]

◆ StateChanged()

bool cRecordControls::StateChanged ( int & State)
static

Definition at line 5694 of file menu.c.

References state.

Referenced by cMenuMain::Update().

◆ Stop() [1/2]

void cRecordControls::Stop ( const char * InstantId)
static

◆ Stop() [2/2]

void cRecordControls::Stop ( cTimer * Timer)
static

Definition at line 5585 of file menu.c.

References ChangeState(), DELETENULL(), MAXRECORDCONTROLS, and RecordControls.

Member Data Documentation

◆ RecordControls

cRecordControl * cRecordControls::RecordControls = { NULL }
staticprivate

◆ state

int cRecordControls::state = 0
staticprivate

Definition at line 260 of file menu.h.

Referenced by ChangeState(), and StateChanged().


The documentation for this class was generated from the following files: