vdr 2.7.5
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) override
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 () override
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) override

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 189 of file menuitems.h.

Constructor & Destructor Documentation

◆ cMenuEditDateItem()

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

Member Function Documentation

◆ FindDayIndex()

int cMenuEditDateItem::FindDayIndex ( int WeekDays)
private

Definition at line 968 of file menuitems.c.

References days.

Referenced by cMenuEditDateItem(), and ToggleRepeating().

◆ ProcessKey()

eOSState cMenuEditDateItem::ProcessKey ( eKeys Key)
overridevirtual

◆ Set()

void cMenuEditDateItem::Set ( void )
overrideprivatevirtual

Reimplemented from cOsdItem.

Definition at line 976 of file menuitems.c.

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

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

◆ ToggleRepeating()

void cMenuEditDateItem::ToggleRepeating ( void )

Definition at line 995 of file menuitems.c.

References dayindex, days, FindDayIndex(), cTimer::GetWDay(), oldvalue, oldweekdays, Set(), cTimer::SetTime(), value, and weekdays.

Referenced by ProcessKey().

Member Data Documentation

◆ dayindex

int cMenuEditDateItem::dayindex
private

Definition at line 196 of file menuitems.h.

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

◆ days

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 }
static int ParseWeekDays(const char *s)
Definition menuitems.c:937

Definition at line 944 of file menuitems.h.

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

◆ oldvalue

time_t cMenuEditDateItem::oldvalue
private

Definition at line 194 of file menuitems.h.

Referenced by cMenuEditDateItem(), and ToggleRepeating().

◆ oldweekdays

int cMenuEditDateItem::oldweekdays
private

Definition at line 195 of file menuitems.h.

Referenced by cMenuEditDateItem(), and ToggleRepeating().

◆ value

time_t* cMenuEditDateItem::value
private

Definition at line 192 of file menuitems.h.

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

◆ weekdays

int* cMenuEditDateItem::weekdays
private

Definition at line 193 of file menuitems.h.

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


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