SASC-NG
DVBSoftCAM

cTimer Class Reference

#include <timers.h>

Inheritance diagram for cTimer:

List of all members.

Public Member Functions

 cTimer (bool Instant=false, bool Pause=false, cChannel *Channel=NULL)
 cTimer (const cEvent *Event)
 cTimer (const cTimer &Timer)
virtual ~cTimer ()
cTimer & operator= (const cTimer &Timer)
virtual int Compare (const cListObject &ListObject) const
bool Recording (void) const
bool Pending (void) const
bool InVpsMargin (void) const
uint Flags (void) const
const cChannel * Channel (void) const
time_t Day (void) const
int WeekDays (void) const
int Start (void) const
int Stop (void) const
int Priority (void) const
int Lifetime (void) const
const char * File (void) const
time_t FirstDay (void) const
const char * Aux (void) const
cString ToText (bool UseChannelID=false)
cString ToDescr (void) const
const cEvent * Event (void) const
bool Parse (const char *s)
bool Save (FILE *f)
bool IsSingleEvent (void) const
bool DayMatches (time_t t) const
char * SetFile (const char *File)
bool Matches (time_t t=0, bool Directly=false, int Margin=0) const
int Matches (const cEvent *Event, int *Overlap=NULL) const
bool Expired (void) const
time_t StartTime (void) const
time_t StopTime (void) const
void SetEventFromSchedule (const cSchedules *Schedules=NULL)
void SetEvent (const cEvent *Event)
void SetRecording (bool Recording)
void SetPending (bool Pending)
void SetInVpsMargin (bool InVpsMargin)
void SetPriority (int Priority)
void SetFlags (uint Flags)
void ClrFlags (uint Flags)
void InvFlags (uint Flags)
bool HasFlags (uint Flags) const
void Skip (void)
void OnOff (void)
cString PrintFirstDay (void) const

Static Public Member Functions

static int GetMDay (time_t t)
static int GetWDay (time_t t)
static time_t IncDay (time_t t, int Days)
static time_t SetTime (time_t t, int SecondsFromMidnight)
static int TimeToInt (int t)
static bool ParseDay (const char *s, time_t &Day, int &WeekDays)
static cString PrintDay (time_t Day, int WeekDays, bool SingleByteChars)

Friends

class cMenuEditTimer

Detailed Description

Definition at line 27 of file timers.h.


Constructor & Destructor Documentation

cTimer::cTimer ( bool  Instant = false,
bool  Pause = false,
cChannel *  Channel = NULL 
)
cTimer::cTimer ( const cEvent *  Event)
cTimer::cTimer ( const cTimer &  Timer)
virtual cTimer::~cTimer ( ) [virtual]

Member Function Documentation

const char* cTimer::Aux ( void  ) const [inline]

Definition at line 64 of file timers.h.

{ return aux; }
const cChannel* cTimer::Channel ( void  ) const [inline]

Definition at line 55 of file timers.h.

{ return channel; }
void cTimer::ClrFlags ( uint  Flags)
virtual int cTimer::Compare ( const cListObject &  ListObject) const [virtual]

Must return 0 if this object is equal to ListObject, a positive value if it is "greater", and a negative value if it is "smaller".

Reimplemented from cListObject.

time_t cTimer::Day ( void  ) const [inline]

Definition at line 56 of file timers.h.

{ return day; }
bool cTimer::DayMatches ( time_t  t) const
const cEvent* cTimer::Event ( void  ) const [inline]

Definition at line 67 of file timers.h.

{ return event; }
bool cTimer::Expired ( void  ) const
const char* cTimer::File ( void  ) const [inline]

Definition at line 62 of file timers.h.

{ return file; }
time_t cTimer::FirstDay ( void  ) const [inline]

Definition at line 63 of file timers.h.

{ return weekdays ? day : 0; }
uint cTimer::Flags ( void  ) const [inline]

Definition at line 54 of file timers.h.

References flags.

{ return flags; }
static int cTimer::GetMDay ( time_t  t) [static]
static int cTimer::GetWDay ( time_t  t) [static]
bool cTimer::HasFlags ( uint  Flags) const
static time_t cTimer::IncDay ( time_t  t,
int  Days 
) [static]
void cTimer::InvFlags ( uint  Flags)
bool cTimer::InVpsMargin ( void  ) const [inline]

Definition at line 53 of file timers.h.

{ return inVpsMargin; }
bool cTimer::IsSingleEvent ( void  ) const
int cTimer::Lifetime ( void  ) const [inline]

Definition at line 61 of file timers.h.

{ return lifetime; }
bool cTimer::Matches ( time_t  t = 0,
bool  Directly = false,
int  Margin = 0 
) const
int cTimer::Matches ( const cEvent *  Event,
int *  Overlap = NULL 
) const
void cTimer::OnOff ( void  )
cTimer& cTimer::operator= ( const cTimer &  Timer)
bool cTimer::Parse ( const char *  s)
static bool cTimer::ParseDay ( const char *  s,
time_t &  Day,
int &  WeekDays 
) [static]
bool cTimer::Pending ( void  ) const [inline]

Definition at line 52 of file timers.h.

{ return pending; }
static cString cTimer::PrintDay ( time_t  Day,
int  WeekDays,
bool  SingleByteChars 
) [static]
cString cTimer::PrintFirstDay ( void  ) const
int cTimer::Priority ( void  ) const [inline]

Definition at line 60 of file timers.h.

{ return priority; }
bool cTimer::Recording ( void  ) const [inline]

Definition at line 51 of file timers.h.

{ return recording; }
bool cTimer::Save ( FILE *  f)
void cTimer::SetEvent ( const cEvent *  Event)
void cTimer::SetEventFromSchedule ( const cSchedules *  Schedules = NULL)
char* cTimer::SetFile ( const char *  File)
void cTimer::SetFlags ( uint  Flags)
void cTimer::SetInVpsMargin ( bool  InVpsMargin)
void cTimer::SetPending ( bool  Pending)
void cTimer::SetPriority ( int  Priority)
void cTimer::SetRecording ( bool  Recording)
static time_t cTimer::SetTime ( time_t  t,
int  SecondsFromMidnight 
) [static]
void cTimer::Skip ( void  )
int cTimer::Start ( void  ) const [inline]

Definition at line 58 of file timers.h.

References start().

{ return start; }
time_t cTimer::StartTime ( void  ) const
int cTimer::Stop ( void  ) const [inline]

Definition at line 59 of file timers.h.

{ return stop; }
time_t cTimer::StopTime ( void  ) const
static int cTimer::TimeToInt ( int  t) [static]
cString cTimer::ToDescr ( void  ) const
cString cTimer::ToText ( bool  UseChannelID = false)
int cTimer::WeekDays ( void  ) const [inline]

Definition at line 57 of file timers.h.

{ return weekdays; }

Friends And Related Function Documentation

friend class cMenuEditTimer [friend]

Definition at line 28 of file timers.h.


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