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

#include <epg.h>

Collaboration diagram for cEvent:
[legend]

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 ( tEventID  EventID)

Definition at line 115 of file epg.c.

References tComponent::description, and SI::RunningStatusUndefined.

cEvent::~cEvent ( )

Definition at line 136 of file epg.c.

References tComponent::description.

Member Function Documentation

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

Definition at line 115 of file epg.h.

References cSchedule::DecNumTimers(), and cSchedule::IncNumTimers().

tChannelID cEvent::ChannelID ( void  ) const
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.

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

Definition at line 106 of file epg.h.

Referenced by SetTrackDescriptions().

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

Definition at line 107 of file epg.h.

References MaxEventContents.

Referenced by cSkinCursesDisplayMenu::SetEvent(), and cSkinCursesDisplayMenu::SetRecording().

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

Definition at line 265 of file epg.c.

const char* cEvent::Description ( void  ) const
inline
void cEvent::Dump ( FILE *  f,
const char *  Prefix = "",
bool  InfoOnly = false 
) const
int cEvent::Duration ( void  ) const
inline
time_t cEvent::EndTime ( void  ) const
inline
tEventID cEvent::EventID ( void  ) const
inline

Definition at line 99 of file epg.h.

Referenced by cSchedule::HashEvent(), and cSchedule::UnhashEvent().

void cEvent::FixEpgBugs ( void  )
cString cEvent::GetDateString ( void  ) const
cString cEvent::GetEndTimeString ( void  ) const
cString cEvent::GetParentalRatingString ( void  ) const
cString cEvent::GetTimeString ( void  ) const
cString cEvent::GetVpsString ( void  ) const
bool cEvent::HasTimer ( void  ) const
inline

Definition at line 118 of file epg.h.

References cSchedule::Dump(), cSchedule::Read(), and cSchedule::SetRunningStatus().

Referenced by cSchedule::Cleanup().

void cEvent::IncNumTimers ( void  ) const

Definition at line 256 of file epg.c.

Referenced by cTimer::operator=(), and cTimer::SetEvent().

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

Definition at line 274 of file epg.c.

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

Referenced by cTimer::Matches().

int cEvent::ParentalRating ( void  ) const
inline
bool cEvent::Parse ( char *  s)

Definition at line 490 of file epg.c.

References esyslog, MaxEventContents, cComponents::SetComponent(), skipspace(), and strreplace().

Referenced by Read().

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

Definition at line 102 of file epg.h.

Referenced by cTimer::Matches().

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

Definition at line 98 of file epg.h.

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

time_t cEvent::Seen ( void  ) const
inline

Definition at line 113 of file epg.h.

bool cEvent::SeenWithin ( int  Seconds) const
inline

Definition at line 114 of file epg.h.

void cEvent::SetAux ( const char *  Aux)

Definition at line 242 of file epg.c.

void cEvent::SetComponents ( cComponents Components)

Definition at line 199 of file epg.c.

Referenced by cEpgHandlers::SetComponents().

void cEvent::SetContents ( uchar Contents)

Definition at line 205 of file epg.c.

References MaxEventContents.

Referenced by cEpgHandlers::SetContents().

void cEvent::SetDescription ( const char *  Description)

Definition at line 194 of file epg.c.

References tComponent::description, and strcpyrealloc().

Referenced by cEpgHandlers::SetDescription().

void cEvent::SetDuration ( int  Duration)

Definition at line 227 of file epg.c.

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

void cEvent::SetEventID ( tEventID  EventID)

Definition at line 156 of file epg.c.

Referenced by cEpgHandlers::SetEventID().

void cEvent::SetParentalRating ( int  ParentalRating)

Definition at line 211 of file epg.c.

Referenced by cEpgHandlers::SetParentalRating().

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

Definition at line 237 of file epg.c.

Referenced by cEIT::cEIT().

void cEvent::SetShortText ( const char *  ShortText)

Definition at line 189 of file epg.c.

References strcpyrealloc().

Referenced by cEpgHandlers::SetShortText().

void cEvent::SetStartTime ( time_t  StartTime)

Definition at line 216 of file epg.c.

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

void cEvent::SetTableID ( uchar  TableID)

Definition at line 167 of file epg.c.

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

void cEvent::SetTitle ( const char *  Title)

Definition at line 184 of file epg.c.

References strcpyrealloc().

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

void cEvent::SetVersion ( uchar  Version)

Definition at line 172 of file epg.c.

Referenced by cEIT::cEIT().

void cEvent::SetVps ( time_t  Vps)

Definition at line 232 of file epg.c.

Referenced by cEpgHandlers::SetVps().

const char* cEvent::ShortText ( void  ) const
inline
time_t cEvent::StartTime ( void  ) const
inline
uchar cEvent::TableID ( void  ) const
inline

Definition at line 100 of file epg.h.

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

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

Definition at line 248 of file epg.c.

References cString::sprintf().

Referenced by cTimer::SetEvent().

uchar cEvent::Version ( void  ) const
inline

Definition at line 101 of file epg.h.

Referenced by cSchedule::DropOutdated().

time_t cEvent::Vps ( void  ) const
inline

Friends And Related Function Documentation

friend class cSchedule
friend

Definition at line 72 of file epg.h.

Member Data Documentation

char* cEvent::aux
private

Definition at line 92 of file epg.h.

cComponents* cEvent::components
private

Definition at line 86 of file epg.h.

Referenced by Read().

uchar cEvent::contents[MaxEventContents]
private

Definition at line 89 of file epg.h.

char* cEvent::description
private

Definition at line 85 of file epg.h.

int cEvent::duration
private

Definition at line 88 of file epg.h.

tEventID cEvent::eventID
private

Definition at line 78 of file epg.h.

u_int16_t cEvent::numTimers
mutableprivate

Definition at line 77 of file epg.h.

cMutex cEvent::numTimersMutex
staticprivate

Definition at line 74 of file epg.h.

Referenced by cComponents::GetComponent().

uchar cEvent::parentalRating
private

Definition at line 82 of file epg.h.

uchar cEvent::runningStatus
private

Definition at line 81 of file epg.h.

cSchedule* cEvent::schedule
private

Definition at line 76 of file epg.h.

Referenced by cSchedule::AddEvent(), and cSchedule::DelEvent().

time_t cEvent::seen
private

Definition at line 91 of file epg.h.

Referenced by Read().

char* cEvent::shortText
private

Definition at line 84 of file epg.h.

time_t cEvent::startTime
private

Definition at line 87 of file epg.h.

Referenced by Compare().

uchar cEvent::tableID
private

Definition at line 79 of file epg.h.

char* cEvent::title
private

Definition at line 83 of file epg.h.

uchar cEvent::version
private

Definition at line 80 of file epg.h.

time_t cEvent::vps
private

Definition at line 90 of file epg.h.


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