vdr 2.7.7
|
#include <shutdown.h>
Public Member Functions | |
cCountdown (void) | |
void | Start (const char *Message, int Seconds) |
void | Cancel (void) |
bool | Done (void) |
operator bool (void) const | |
bool | Update (void) |
Private Attributes | |
time_t | timeout |
int | counter |
bool | timedOut |
const char * | message |
Definition at line 17 of file shutdown.h.
cCountdown::cCountdown | ( | void | ) |
void cCountdown::Cancel | ( | void | ) |
bool cCountdown::Done | ( | void | ) |
Check if countdown timer has run out without canceling.
Definition at line 55 of file shutdown.c.
|
inline |
void cCountdown::Start | ( | const char * | Message, |
int | Seconds ) |
bool cCountdown::Update | ( | void | ) |
Update status display of the countdown.
Returns true on actual update.
Definition at line 64 of file shutdown.c.
References counter, message, mtStatus, Skins, cString::sprintf(), timedOut, and timeout.
Referenced by Start().
|
private |
last shown time in 10s units
Definition at line 20 of file shutdown.h.
Referenced by cCountdown(), Start(), and Update().
|
private |
message to display, s is placeholder for time
Definition at line 22 of file shutdown.h.
Referenced by cCountdown(), Start(), and Update().
|
private |
countdown did run down to 0 and was not canceled
Definition at line 21 of file shutdown.h.
Referenced by Cancel(), cCountdown(), Done(), Start(), and Update().
|
private |
5-minute countdown timer
Definition at line 19 of file shutdown.h.
Referenced by Cancel(), cCountdown(), operator bool(), Start(), and Update().