SASC-NG
DVBSoftCAM

cRecordings Class Reference

#include <recording.h>

Inheritance diagram for cRecordings:

List of all members.

Public Member Functions

 cRecordings (bool Deleted=false)
virtual ~cRecordings ()
bool Load (void)
bool Update (bool Wait=false)
void TouchUpdate (void)
bool NeedsUpdate (void)
void ChangeState (void)
bool StateChanged (int &State)
void ResetResume (const char *ResumeFileName=NULL)
cRecording * GetByName (const char *FileName)
void AddByName (const char *FileName, bool TriggerUpdate=true)
void DelByName (const char *FileName)
int TotalFileSizeMB (void)
 Only for deleted recordings!

Protected Member Functions

void Action (void)

Detailed Description

Definition at line 105 of file recording.h.


Constructor & Destructor Documentation

cRecordings::cRecordings ( bool  Deleted = false)
virtual cRecordings::~cRecordings ( ) [virtual]

Member Function Documentation

void cRecordings::Action ( void  ) [protected, virtual]

A derived cThread class must implement the code it wants to execute as a separate thread in this function. If this is a loop, it must check Running() repeatedly to see whether it's time to stop.

Implements cThread.

void cRecordings::AddByName ( const char *  FileName,
bool  TriggerUpdate = true 
)
void cRecordings::ChangeState ( void  ) [inline]

Definition at line 134 of file recording.h.

{ state++; }
void cRecordings::DelByName ( const char *  FileName)
cRecording* cRecordings::GetByName ( const char *  FileName)
bool cRecordings::Load ( void  ) [inline]

Loads the current list of recordings and returns true if there is anything in it (for compatibility with older plugins - use Update(true) instead).

Definition at line 119 of file recording.h.

References Update().

bool cRecordings::NeedsUpdate ( void  )
void cRecordings::ResetResume ( const char *  ResumeFileName = NULL)
bool cRecordings::StateChanged ( int &  State)
int cRecordings::TotalFileSizeMB ( void  )

Only for deleted recordings!

void cRecordings::TouchUpdate ( void  )

Touches the '.update' file in the video directory, so that other instances of VDR that access the same video directory can be triggered to update their recordings list.

bool cRecordings::Update ( bool  Wait = false)

Triggers an update of the list of recordings, which will run as a separate thread if Wait is false. If Wait is true, the function returns only after the update has completed. Returns true if Wait is true and there is anyting in the list of recordings, false otherwise.

Referenced by Load().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines