vdr  2.4.7
Public Member Functions | Static Public Member Functions | Private Attributes | Static Private Attributes | Friends | List of all members
cEvent Class Reference

#include <epg.h>

Public Member Functions

 cEvent (tEventID EventID)
 
 ~cEvent ()
 
virtual int Compare (const cListObject &ListObject) const
 
tChannelID ChannelID (void) const
 
const cScheduleSchedule (void) const
 
tEventID EventID (void) const
 
uchar TableID (void) const
 
uchar Version (void) const
 
int RunningStatus (void) const
 
const char * Title (void) const
 
const char * ShortText (void) const
 
const char * Description (void) const
 
const cComponentsComponents (void) const
 
uchar Contents (int i=0) const
 
int ParentalRating (void) const
 
time_t StartTime (void) const
 
time_t EndTime (void) const
 
int Duration (void) const
 
time_t Vps (void) const
 
time_t Seen (void) const
 
bool SeenWithin (int Seconds) const
 
const char * Aux (void) const
 
void IncNumTimers (void) const
 
void DecNumTimers (void) const
 
bool HasTimer (void) const
 
bool IsRunning (bool OrAboutToStart=false) const
 
cString GetParentalRatingString (void) const
 
cString GetDateString (void) const
 
cString GetTimeString (void) const
 
cString GetEndTimeString (void) const
 
cString GetVpsString (void) const
 
void SetEventID (tEventID EventID)
 
void SetTableID (uchar TableID)
 
void SetVersion (uchar Version)
 
void SetRunningStatus (int RunningStatus, const cChannel *Channel=NULL)
 
void SetTitle (const char *Title)
 
void SetShortText (const char *ShortText)
 
void SetDescription (const char *Description)
 
void SetComponents (cComponents *Components)
 
void SetContents (uchar *Contents)
 
void SetParentalRating (int ParentalRating)
 
void SetStartTime (time_t StartTime)
 
void SetDuration (int Duration)
 
void SetVps (time_t Vps)
 
void SetSeen (void)
 
void SetAux (const char *Aux)
 
cString ToDescr (void) const
 
void Dump (FILE *f, const char *Prefix="", bool InfoOnly=false) const
 
bool Parse (char *s)
 
void FixEpgBugs (void)
 
- Public Member Functions inherited from cListObject
 cListObject (void)
 
virtual ~cListObject ()
 
void Append (cListObject *Object)
 
void Insert (cListObject *Object)
 
void Unlink (void)
 
int Index (void) const
 
cListObjectPrev (void) const
 
cListObjectNext (void) const
 

Static Public Member Functions

static const char * ContentToString (uchar Content)
 
static bool Read (FILE *f, cSchedule *Schedule, int &Line)
 

Private Attributes

cScheduleschedule
 
u_int16_t numTimers
 
tEventID eventID
 
uchar tableID
 
uchar version
 
uchar runningStatus
 
uchar parentalRating
 
char * title
 
char * shortText
 
char * description
 
cComponentscomponents
 
time_t startTime
 
int duration
 
uchar contents [MaxEventContents]
 
time_t vps
 
time_t seen
 
char * aux
 

Static Private Attributes

static cMutex numTimersMutex
 

Friends

class cSchedule
 

Detailed Description

Definition at line 71 of file epg.h.

Constructor & Destructor Documentation

◆ cEvent()

cEvent::cEvent ( tEventID  EventID)

◆ ~cEvent()

cEvent::~cEvent ( )

Definition at line 136 of file epg.c.

References aux, components, description, shortText, and title.

Member Function Documentation

◆ Aux()

const char* cEvent::Aux ( void  ) const
inline

Definition at line 115 of file epg.h.

References aux.

Referenced by SetAux().

◆ ChannelID()

tChannelID cEvent::ChannelID ( void  ) const

◆ Compare()

int cEvent::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.

Definition at line 145 of file epg.c.

References startTime.

◆ Components()

const cComponents* cEvent::Components ( void  ) const
inline

Definition at line 106 of file epg.h.

References components.

Referenced by cRecordingInfo::cRecordingInfo(), SetComponents(), and SetTrackDescriptions().

◆ Contents()

uchar cEvent::Contents ( int  i = 0) const
inline

◆ ContentToString()

const char * cEvent::ContentToString ( uchar  Content)
static

◆ DecNumTimers()

void cEvent::DecNumTimers ( void  ) const

◆ Description()

const char* cEvent::Description ( void  ) const
inline

◆ Dump()

void cEvent::Dump ( FILE *  f,
const char *  Prefix = "",
bool  InfoOnly = false 
) const

◆ Duration()

int cEvent::Duration ( void  ) const
inline

◆ EndTime()

time_t cEvent::EndTime ( void  ) const
inline

Definition at line 110 of file epg.h.

References duration, and startTime.

Referenced by cSchedule::Cleanup(), cTimer::cTimer(), cSchedule::DropOutdated(), and cTimer::Matches().

◆ EventID()

tEventID cEvent::EventID ( void  ) const
inline

Definition at line 99 of file epg.h.

References eventID.

Referenced by cEvent(), cSchedule::HashEvent(), Read(), SetEventID(), and cSchedule::UnhashEvent().

◆ FixEpgBugs()

void cEvent::FixEpgBugs ( void  )

◆ GetDateString()

cString cEvent::GetDateString ( void  ) const

◆ GetEndTimeString()

cString cEvent::GetEndTimeString ( void  ) const

◆ GetParentalRatingString()

cString cEvent::GetParentalRatingString ( void  ) const

◆ GetTimeString()

cString cEvent::GetTimeString ( void  ) const

◆ GetVpsString()

cString cEvent::GetVpsString ( void  ) const

◆ HasTimer()

bool cEvent::HasTimer ( void  ) const
inline

Definition at line 118 of file epg.h.

References numTimers.

Referenced by cSchedule::Cleanup().

◆ IncNumTimers()

void cEvent::IncNumTimers ( void  ) const

◆ IsRunning()

bool cEvent::IsRunning ( bool  OrAboutToStart = false) const

Definition at line 274 of file epg.c.

References runningStatus, SI::RunningStatusPausing, and SI::RunningStatusStartsInAFewSeconds.

Referenced by cTimer::Matches().

◆ ParentalRating()

int cEvent::ParentalRating ( void  ) const
inline

◆ Parse()

bool cEvent::Parse ( char *  s)

◆ Read()

bool cEvent::Read ( FILE *  f,
cSchedule Schedule,
int &  Line 
)
static

◆ RunningStatus()

int cEvent::RunningStatus ( void  ) const
inline

Definition at line 102 of file epg.h.

References runningStatus.

Referenced by cEIT::cEIT(), cTimer::Matches(), and SetRunningStatus().

◆ Schedule()

const cSchedule* cEvent::Schedule ( void  ) const
inline

Definition at line 98 of file epg.h.

References schedule.

Referenced by cTimer::Matches(), Read(), and cTimer::SetEvent().

◆ Seen()

time_t cEvent::Seen ( void  ) const
inline

Definition at line 113 of file epg.h.

References seen.

◆ SeenWithin()

bool cEvent::SeenWithin ( int  Seconds) const
inline

Definition at line 114 of file epg.h.

References seen.

◆ SetAux()

void cEvent::SetAux ( const char *  Aux)

Definition at line 242 of file epg.c.

References aux, and Aux().

Referenced by Parse().

◆ SetComponents()

void cEvent::SetComponents ( cComponents Components)

Definition at line 199 of file epg.c.

References components, and Components().

Referenced by cEpgHandlers::SetComponents().

◆ SetContents()

void cEvent::SetContents ( uchar Contents)

Definition at line 205 of file epg.c.

References Contents(), contents, and MaxEventContents.

Referenced by cEpgHandlers::SetContents().

◆ SetDescription()

void cEvent::SetDescription ( const char *  Description)

Definition at line 194 of file epg.c.

References description, Description(), and strcpyrealloc().

Referenced by Parse(), and cEpgHandlers::SetDescription().

◆ SetDuration()

void cEvent::SetDuration ( int  Duration)

Definition at line 227 of file epg.c.

References duration, and Duration().

Referenced by cEIT::cEIT(), cRecordingInfo::Read(), Read(), and cEpgHandlers::SetDuration().

◆ SetEventID()

void cEvent::SetEventID ( tEventID  EventID)

◆ SetParentalRating()

void cEvent::SetParentalRating ( int  ParentalRating)

Definition at line 211 of file epg.c.

References parentalRating, and ParentalRating().

Referenced by Parse(), and cEpgHandlers::SetParentalRating().

◆ SetRunningStatus()

void cEvent::SetRunningStatus ( int  RunningStatus,
const cChannel Channel = NULL 
)

◆ SetSeen()

void cEvent::SetSeen ( void  )

Definition at line 237 of file epg.c.

References seen.

Referenced by cEIT::cEIT(), and cEvent().

◆ SetShortText()

void cEvent::SetShortText ( const char *  ShortText)

Definition at line 189 of file epg.c.

References shortText, ShortText(), and strcpyrealloc().

Referenced by Parse(), and cEpgHandlers::SetShortText().

◆ SetStartTime()

void cEvent::SetStartTime ( time_t  StartTime)

◆ SetTableID()

void cEvent::SetTableID ( uchar  TableID)

Definition at line 167 of file epg.c.

References tableID, and TableID().

Referenced by cEIT::cEIT(), cRecordingInfo::Read(), and Read().

◆ SetTitle()

void cEvent::SetTitle ( const char *  Title)

Definition at line 184 of file epg.c.

References strcpyrealloc(), title, and Title().

Referenced by cRecording::cRecording(), Parse(), Read(), and cEpgHandlers::SetTitle().

◆ SetVersion()

void cEvent::SetVersion ( uchar  Version)

Definition at line 172 of file epg.c.

References version, and Version().

Referenced by cEIT::cEIT(), and cRecordingInfo::Read().

◆ SetVps()

void cEvent::SetVps ( time_t  Vps)

Definition at line 232 of file epg.c.

References vps, and Vps().

Referenced by Parse(), and cEpgHandlers::SetVps().

◆ ShortText()

const char* cEvent::ShortText ( void  ) const
inline

◆ StartTime()

time_t cEvent::StartTime ( void  ) const
inline

◆ TableID()

uchar cEvent::TableID ( void  ) const
inline

Definition at line 100 of file epg.h.

References tableID.

Referenced by cEIT::cEIT(), cSchedule::DropOutdated(), cTable0Handler::Ignore(), Read(), and SetTableID().

◆ Title()

const char* cEvent::Title ( void  ) const
inline

◆ ToDescr()

cString cEvent::ToDescr ( void  ) const

◆ Version()

uchar cEvent::Version ( void  ) const
inline

Definition at line 101 of file epg.h.

References version.

Referenced by cSchedule::DropOutdated(), Read(), and SetVersion().

◆ Vps()

time_t cEvent::Vps ( void  ) const
inline

Friends And Related Function Documentation

◆ cSchedule

friend class cSchedule
friend

Definition at line 72 of file epg.h.

Member Data Documentation

◆ aux

char* cEvent::aux
private

Definition at line 92 of file epg.h.

Referenced by Aux(), cEvent(), Dump(), SetAux(), and ~cEvent().

◆ components

cComponents* cEvent::components
private

Definition at line 86 of file epg.h.

Referenced by cEvent(), Components(), Dump(), FixEpgBugs(), Parse(), Read(), SetComponents(), and ~cEvent().

◆ contents

uchar cEvent::contents[MaxEventContents]
private

Definition at line 89 of file epg.h.

Referenced by cEvent(), Contents(), Dump(), Parse(), and SetContents().

◆ description

char* cEvent::description
private

Definition at line 85 of file epg.h.

Referenced by cEvent(), Description(), Dump(), FixEpgBugs(), SetDescription(), and ~cEvent().

◆ duration

int cEvent::duration
private

Definition at line 88 of file epg.h.

Referenced by cEvent(), Dump(), Duration(), EndTime(), GetEndTimeString(), and SetDuration().

◆ eventID

tEventID cEvent::eventID
private

Definition at line 78 of file epg.h.

Referenced by cEvent(), Dump(), EventID(), and SetEventID().

◆ numTimers

u_int16_t cEvent::numTimers
mutableprivate

Definition at line 77 of file epg.h.

Referenced by cEvent(), DecNumTimers(), HasTimer(), and IncNumTimers().

◆ numTimersMutex

cMutex cEvent::numTimersMutex
staticprivate

Definition at line 74 of file epg.h.

Referenced by DecNumTimers(), and IncNumTimers().

◆ parentalRating

uchar cEvent::parentalRating
private

Definition at line 82 of file epg.h.

Referenced by cEvent(), Dump(), GetParentalRatingString(), ParentalRating(), and SetParentalRating().

◆ runningStatus

uchar cEvent::runningStatus
private

Definition at line 81 of file epg.h.

Referenced by cEvent(), IsRunning(), RunningStatus(), and SetRunningStatus().

◆ schedule

cSchedule* cEvent::schedule
private

◆ seen

time_t cEvent::seen
private

Definition at line 91 of file epg.h.

Referenced by Read(), Seen(), SeenWithin(), and SetSeen().

◆ shortText

char* cEvent::shortText
private

Definition at line 84 of file epg.h.

Referenced by cEvent(), Dump(), FixEpgBugs(), SetShortText(), ShortText(), and ~cEvent().

◆ startTime

time_t cEvent::startTime
private

◆ tableID

uchar cEvent::tableID
private

Definition at line 79 of file epg.h.

Referenced by cEvent(), Dump(), SetTableID(), and TableID().

◆ title

char* cEvent::title
private

Definition at line 83 of file epg.h.

Referenced by cEvent(), Dump(), FixEpgBugs(), SetTitle(), Title(), and ~cEvent().

◆ version

uchar cEvent::version
private

Definition at line 80 of file epg.h.

Referenced by cEvent(), Dump(), SetVersion(), and Version().

◆ vps

time_t cEvent::vps
private

Definition at line 90 of file epg.h.

Referenced by cEvent(), Dump(), GetVpsString(), SetVps(), and Vps().


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