vdr  2.2.0
Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
cMenuEditDateItem Class Reference

#include <menuitems.h>

Public Member Functions

 cMenuEditDateItem (const char *Name, time_t *Value, int *WeekDays=NULL)
 
void ToggleRepeating (void)
 
virtual eOSState ProcessKey (eKeys Key)
 
- Public Member Functions inherited from cMenuEditItem
 cMenuEditItem (const char *Name)
 
 ~cMenuEditItem ()
 
void SetValue (const char *Value)
 
bool DisplayHelp (bool Current)
 
- Public Member Functions inherited from cOsdItem
 cOsdItem (eOSState State=osUnknown)
 
 cOsdItem (const char *Text, eOSState State=osUnknown, bool Selectable=true)
 
virtual ~cOsdItem ()
 
bool Selectable (void) const
 
void SetText (const char *Text, bool Copy=true)
 
void SetSelectable (bool Selectable)
 
void SetFresh (bool Fresh)
 
const char * Text (void) const
 
virtual void SetMenuItem (cSkinDisplayMenu *DisplayMenu, int Index, bool Current, bool Selectable)
 
- Public Member Functions inherited from cListObject
 cListObject (void)
 
virtual ~cListObject ()
 
virtual int Compare (const cListObject &ListObject) const
 
void Append (cListObject *Object)
 
void Insert (cListObject *Object)
 
void Unlink (void)
 
int Index (void) const
 
cListObjectPrev (void) const
 
cListObjectNext (void) const
 

Private Member Functions

int FindDayIndex (int WeekDays)
 
virtual void Set (void)
 

Private Attributes

time_t * value
 
int * weekdays
 
time_t oldvalue
 
int oldweekdays
 
int dayindex
 

Static Private Attributes

static int days []
 

Additional Inherited Members

- Protected Member Functions inherited from cMenuEditItem
void SetHelp (const char *Red, const char *Green=NULL, const char *Yellow=NULL, const char *Blue=NULL)
 
- Protected Attributes inherited from cOsdItem
bool fresh
 

Detailed Description

Definition at line 171 of file menuitems.h.

Constructor & Destructor Documentation

cMenuEditDateItem::cMenuEditDateItem ( const char *  Name,
time_t *  Value,
int *  WeekDays = NULL 
)

Definition at line 896 of file menuitems.c.

References dayindex, FindDayIndex(), oldvalue, oldweekdays, Set(), value, and weekdays.

Member Function Documentation

int cMenuEditDateItem::FindDayIndex ( int  WeekDays)
private

Definition at line 907 of file menuitems.c.

References days.

Referenced by cMenuEditDateItem(), and ToggleRepeating().

eOSState cMenuEditDateItem::ProcessKey ( eKeys  Key)
virtual
void cMenuEditDateItem::Set ( void  )
privatevirtual

Reimplemented from cOsdItem.

Definition at line 915 of file menuitems.c.

References DATEBUFFERSIZE, cTimer::PrintDay(), cMenuEditItem::SetValue(), value, WeekDayName(), and weekdays.

Referenced by cMenuEditDateItem(), ProcessKey(), and ToggleRepeating().

void cMenuEditDateItem::ToggleRepeating ( void  )

Member Data Documentation

int cMenuEditDateItem::dayindex
private

Definition at line 178 of file menuitems.h.

Referenced by cMenuEditDateItem(), ProcessKey(), and ToggleRepeating().

int cMenuEditDateItem::days
staticprivate
Initial value:
= { ParseWeekDays("M------"),
ParseWeekDays("-T-----"),
ParseWeekDays("--W----"),
ParseWeekDays("---T---"),
ParseWeekDays("----F--"),
ParseWeekDays("-----S-"),
ParseWeekDays("------S"),
ParseWeekDays("MTWTF--"),
ParseWeekDays("MTWTFS-"),
ParseWeekDays("MTWTFSS"),
ParseWeekDays("-----SS"),
0 }

Definition at line 173 of file menuitems.h.

Referenced by FindDayIndex(), ParseWeekDays(), ProcessKey(), and ToggleRepeating().

time_t cMenuEditDateItem::oldvalue
private

Definition at line 176 of file menuitems.h.

Referenced by cMenuEditDateItem(), and ToggleRepeating().

int cMenuEditDateItem::oldweekdays
private

Definition at line 177 of file menuitems.h.

Referenced by cMenuEditDateItem(), and ToggleRepeating().

time_t* cMenuEditDateItem::value
private

Definition at line 174 of file menuitems.h.

Referenced by cMenuEditDateItem(), ProcessKey(), Set(), and ToggleRepeating().

int* cMenuEditDateItem::weekdays
private

Definition at line 175 of file menuitems.h.

Referenced by cMenuEditDateItem(), ProcessKey(), Set(), and ToggleRepeating().


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