vdr
2.4.1
|
#include <videodir.h>
Static Public Member Functions | |
static bool | HasChanged (int &State) |
static cString | String (void) |
Static Private Attributes | |
static int | state = 0 |
static time_t | lastChecked = 0 |
static int | usedPercent = 0 |
static int | freeMB = 0 |
static int | freeMinutes = 0 |
Definition at line 87 of file videodir.h.
|
static |
Returns true if the usage of the video disk space has changed since the last call to this function with the given State variable.
The caller should initialize State to -1, and it will be set to the current internal state value of the video disk usage checker upon return. Future calls with the same State variable can then quickly check for changes.
Definition at line 205 of file videodir.c.
References DISKSPACECHEK, freeMB, freeMinutes, lastChecked, LOCK_RECORDINGS_READ, MB_PER_MINUTE, state, usedPercent, and cVideoDirectory::VideoDiskSpace().
Referenced by cSkinLCARSDisplayMenu::DrawDisk(), cSkinClassicDisplayMenu::Flush(), cSkinCursesDisplayMenu::Flush(), cSkinSTTNGDisplayMenu::Flush(), and String().
|
static |
Returns a localized string of the form "Disk nn% - hh:mm free".
This function is mainly for use in skins that want to retain the display of the free disk space in the menu title, as was the case until VDR version 1.7.27. An implicit call to HasChanged() is done in this function, to make sure the returned value is up to date.
Definition at line 229 of file videodir.c.
References freeMinutes, HasChanged(), cString::sprintf(), state, tr, and usedPercent.
Referenced by cSkinClassicDisplayMenu::DrawTitle(), cSkinCursesDisplayMenu::DrawTitle(), and cSkinSTTNGDisplayMenu::DrawTitle().
|
staticprivate |
Definition at line 92 of file videodir.h.
Referenced by HasChanged().
|
staticprivate |
Definition at line 93 of file videodir.h.
Referenced by HasChanged(), and String().
|
staticprivate |
Definition at line 90 of file videodir.h.
Referenced by HasChanged().
|
staticprivate |
Definition at line 89 of file videodir.h.
Referenced by HasChanged(), and String().
|
staticprivate |
Definition at line 91 of file videodir.h.
Referenced by HasChanged(), and String().