vdr
1.7.27
|
Public Member Functions | |
cMenuWhatsOn (const cSchedules *Schedules, bool Now, int CurrentChannelNr) | |
virtual eOSState | ProcessKey (eKeys Key) |
Static Public Member Functions | |
static int | CurrentChannel (void) |
static void | SetCurrentChannel (int ChannelNr) |
static const cEvent * | ScheduleEvent (void) |
Private Member Functions | |
eOSState | Record (void) |
eOSState | Switch (void) |
bool | Update (void) |
void | SetHelpKeys (void) |
Private Attributes | |
bool | now |
int | helpKeys |
int | timerState |
Static Private Attributes | |
static int | currentChannel = 0 |
static const cEvent * | scheduleEvent = NULL |
cMenuWhatsOn::cMenuWhatsOn | ( | const cSchedules * | Schedules, |
bool | Now, | ||
int | CurrentChannelNr | ||
) |
Definition at line 1575 of file menu.c.
References cOsdMenu::Add(), Channels, currentChannel, cOsdMenu::Display(), cList< T >::First(), cSchedule::GetFollowingEvent(), cSchedule::GetPresentEvent(), cSchedules::GetSchedule(), helpKeys, cTimers::Modified(), cList< T >::Next(), now, SetHelpKeys(), Timers, and timerState.
static int cMenuWhatsOn::CurrentChannel | ( | void | ) | [inline, static] |
Definition at line 1566 of file menu.c.
References currentChannel.
Referenced by cMenuSchedule::ProcessKey().
eOSState cMenuWhatsOn::ProcessKey | ( | eKeys | Key | ) | [virtual] |
Reimplemented from cOsdMenu.
Definition at line 1678 of file menu.c.
References cOsdMenu::AddSubMenu(), cMenuScheduleItem::channel, cListBase::Count(), cOsdMenu::Current(), currentChannel, cOsdMenu::Display(), cMenuScheduleItem::event, cList< cOsdItem >::Get(), cOsdMenu::HasSubMenu(), kBlue, kGreen, kInfo, kNone, kOk, kRecord, kRed, kYellow, cChannel::Number(), osBack, osUnknown, Record(), scheduleEvent, SetHelpKeys(), Switch(), and Update().
eOSState cMenuWhatsOn::Record | ( | void | ) | [private] |
Definition at line 1645 of file menu.c.
References cTimers::Add(), cOsdMenu::AddSubMenu(), cOsdMenu::CloseSubMenu(), cOsdMenu::Current(), cOsdMenu::Display(), cMenuScheduleItem::event, cList< cOsdItem >::Get(), cTimers::GetMatch(), cTimers::GetTimer(), cOsdMenu::HasSubMenu(), isyslog, cTimer::Matches(), NEWTIMERLIMIT, osContinue, SetHelpKeys(), cTimers::SetModified(), cMenuScheduleItem::timerMatch, Timers, tmFull, tmNone, cTimer::ToDescr(), and Update().
Referenced by ProcessKey().
const cEvent * cMenuWhatsOn::ScheduleEvent | ( | void | ) | [static] |
Definition at line 1626 of file menu.c.
References scheduleEvent.
Referenced by cMenuSchedule::ProcessKey(), and cMenuSchedule::~cMenuSchedule().
static void cMenuWhatsOn::SetCurrentChannel | ( | int | ChannelNr | ) | [inline, static] |
Definition at line 1567 of file menu.c.
References currentChannel.
Referenced by cMenuSchedule::cMenuSchedule().
void cMenuWhatsOn::SetHelpKeys | ( | void | ) | [private] |
Definition at line 1609 of file menu.c.
References cOsdMenu::Current(), cList< cOsdItem >::Get(), helpKeys, now, cOsdMenu::SetHelp(), cMenuScheduleItem::timerMatch, tmFull, and tr.
Referenced by cMenuWhatsOn(), ProcessKey(), and Record().
eOSState cMenuWhatsOn::Switch | ( | void | ) | [private] |
Definition at line 1633 of file menu.c.
References cEvent::ChannelID(), Channels, cOsdMenu::Current(), cMenuScheduleItem::event, cList< cOsdItem >::Get(), cChannels::GetByChannelID(), cSkins::Message(), mtError, osContinue, osEnd, cDevice::PrimaryDevice(), Skins, cDevice::SwitchChannel(), and tr.
Referenced by ProcessKey().
bool cMenuWhatsOn::Update | ( | void | ) | [private] |
Definition at line 1597 of file menu.c.
References cList< cOsdItem >::First(), cTimers::Modified(), cList< cOsdItem >::Next(), Timers, and timerState.
Referenced by ProcessKey(), and Record().
int cMenuWhatsOn::currentChannel = 0 [static, private] |
Definition at line 1560 of file menu.c.
Referenced by cMenuWhatsOn(), CurrentChannel(), ProcessKey(), and SetCurrentChannel().
int cMenuWhatsOn::helpKeys [private] |
Definition at line 1556 of file menu.c.
Referenced by cMenuWhatsOn(), and SetHelpKeys().
bool cMenuWhatsOn::now [private] |
Definition at line 1555 of file menu.c.
Referenced by cMenuWhatsOn(), and SetHelpKeys().
const cEvent * cMenuWhatsOn::scheduleEvent = NULL [static, private] |
Definition at line 1561 of file menu.c.
Referenced by ProcessKey(), and ScheduleEvent().
int cMenuWhatsOn::timerState [private] |
Definition at line 1557 of file menu.c.
Referenced by cMenuWhatsOn(), and Update().