vdr 2.7.5
cEvent Class Reference

#include <epg.h>

Public Member Functions

 cEvent (tEventID EventID)
 ~cEvent ()
virtual int Compare (const cListObject &ListObject) const override
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 73 of file epg.h.

Constructor & Destructor Documentation

◆ cEvent()

◆ ~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 117 of file epg.h.

References aux.

Referenced by SetAux().

◆ ChannelID()

tChannelID cEvent::ChannelID ( void ) const

◆ Compare()

int cEvent::Compare ( const cListObject & ListObject) const
overridevirtual

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 cEvent(), cListObject::cListObject(), startTime, and tableID.

◆ Components()

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

Definition at line 108 of file epg.h.

References components.

Referenced by SetComponents(), and SetTrackDescriptions().

◆ Contents()

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

◆ ContentToString()

◆ DecNumTimers()

void cEvent::DecNumTimers ( void ) const

Definition at line 268 of file epg.c.

References numTimers, numTimersMutex, and schedule.

◆ 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

Definition at line 113 of file epg.h.

References duration.

Referenced by cEIT::cEIT(), cSkinLCARSDisplayMenu::DrawLive(), Read(), and SetDuration().

◆ EndTime()

time_t cEvent::EndTime ( void ) const
inline

Definition at line 112 of file epg.h.

References duration, and startTime.

Referenced by cTimer::AdjustSpawnedTimer(), and cSchedule::Cleanup().

◆ EventID()

tEventID cEvent::EventID ( void ) const
inline

Definition at line 101 of file epg.h.

References eventID.

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

◆ FixEpgBugs()

◆ GetDateString()

◆ GetEndTimeString()

◆ GetParentalRatingString()

◆ GetTimeString()

◆ GetVpsString()

cString cEvent::GetVpsString ( void ) const

◆ HasTimer()

bool cEvent::HasTimer ( void ) const
inline

Definition at line 120 of file epg.h.

References numTimers.

Referenced by cEIT::cEIT(), cSchedule::Cleanup(), and cTimers::GetTimerForEvent().

◆ IncNumTimers()

void cEvent::IncNumTimers ( void ) const

Definition at line 259 of file epg.c.

References numTimers, numTimersMutex, and schedule.

Referenced by cTimer::operator=().

◆ IsRunning()

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

◆ ParentalRating()

◆ 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 104 of file epg.h.

References runningStatus.

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

◆ Schedule()

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

Definition at line 100 of file epg.h.

References cSchedule, and schedule.

Referenced by Read().

◆ Seen()

time_t cEvent::Seen ( void ) const
inline

Definition at line 115 of file epg.h.

References seen.

◆ SeenWithin()

bool cEvent::SeenWithin ( int Seconds) const
inline

Definition at line 116 of file epg.h.

References seen.

◆ SetAux()

void cEvent::SetAux ( const char * Aux)

Definition at line 245 of file epg.c.

References Aux(), and aux.

Referenced by Parse().

◆ SetComponents()

void cEvent::SetComponents ( cComponents * Components)

Definition at line 202 of file epg.c.

References Components(), and components.

Referenced by cEpgHandlers::SetComponents().

◆ SetContents()

void cEvent::SetContents ( uchar * Contents)

Definition at line 208 of file epg.c.

References Contents(), contents, and MaxEventContents.

Referenced by cEpgHandlers::SetContents().

◆ SetDescription()

void cEvent::SetDescription ( const char * Description)

Definition at line 197 of file epg.c.

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

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

◆ SetDuration()

void cEvent::SetDuration ( int Duration)

Definition at line 230 of file epg.c.

References Duration(), and duration.

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

◆ SetEventID()

void cEvent::SetEventID ( tEventID EventID)

Definition at line 159 of file epg.c.

References EventID(), eventID, and schedule.

Referenced by cEpgHandlers::SetEventID().

◆ SetParentalRating()

void cEvent::SetParentalRating ( int ParentalRating)

Definition at line 214 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 240 of file epg.c.

References seen.

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

◆ SetShortText()

void cEvent::SetShortText ( const char * ShortText)

Definition at line 192 of file epg.c.

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

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

◆ SetStartTime()

void cEvent::SetStartTime ( time_t StartTime)

Definition at line 219 of file epg.c.

References schedule, StartTime(), and startTime.

Referenced by cEIT::cEIT(), Read(), and cEpgHandlers::SetStartTime().

◆ SetTableID()

void cEvent::SetTableID ( uchar TableID)

Definition at line 170 of file epg.c.

References TableID(), and tableID.

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

◆ SetTitle()

void cEvent::SetTitle ( const char * Title)

Definition at line 187 of file epg.c.

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

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

◆ SetVersion()

void cEvent::SetVersion ( uchar Version)

Definition at line 175 of file epg.c.

References Version(), and version.

Referenced by cEIT::cEIT().

◆ SetVps()

void cEvent::SetVps ( time_t Vps)

Definition at line 235 of file epg.c.

References Vps(), and vps.

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

◆ ShortText()

◆ StartTime()

◆ TableID()

uchar cEvent::TableID ( void ) const
inline

Definition at line 102 of file epg.h.

References tableID.

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

◆ Title()

◆ ToDescr()

cString cEvent::ToDescr ( void ) const

◆ Version()

uchar cEvent::Version ( void ) const
inline

Definition at line 103 of file epg.h.

References version.

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

◆ Vps()

◆ cSchedule

friend class cSchedule
friend

Definition at line 74 of file epg.h.

References cSchedule.

Referenced by cSchedule, Read(), and Schedule().

Member Data Documentation

◆ aux

char* cEvent::aux
private

Definition at line 94 of file epg.h.

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

◆ components

cComponents* cEvent::components
private

Definition at line 88 of file epg.h.

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

◆ contents

uchar cEvent::contents[MaxEventContents]
private

Definition at line 91 of file epg.h.

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

◆ description

char* cEvent::description
private

Definition at line 87 of file epg.h.

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

◆ duration

int cEvent::duration
private

Definition at line 90 of file epg.h.

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

◆ eventID

tEventID cEvent::eventID
private

Definition at line 80 of file epg.h.

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

◆ numTimers

u_int16_t cEvent::numTimers
mutableprivate

Definition at line 79 of file epg.h.

Referenced by cEvent(), DecNumTimers(), cSchedule::DelEvent(), HasTimer(), and IncNumTimers().

◆ numTimersMutex

cMutex cEvent::numTimersMutex
staticprivate

Definition at line 76 of file epg.h.

Referenced by DecNumTimers(), cSchedule::DelEvent(), and IncNumTimers().

◆ parentalRating

uchar cEvent::parentalRating
private

Definition at line 84 of file epg.h.

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

◆ runningStatus

uchar cEvent::runningStatus
private

Definition at line 83 of file epg.h.

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

◆ schedule

◆ seen

time_t cEvent::seen
private

Definition at line 93 of file epg.h.

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

◆ shortText

char* cEvent::shortText
private

Definition at line 86 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 81 of file epg.h.

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

◆ title

char* cEvent::title
private

Definition at line 85 of file epg.h.

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

◆ version

uchar cEvent::version
private

Definition at line 82 of file epg.h.

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

◆ vps

time_t cEvent::vps
private

Definition at line 92 of file epg.h.

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


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