diff options
author | Christian Wieninger <cwieninger (at) gmx (dot) de> | 2007-10-25 16:38:51 +0000 |
---|---|---|
committer | Christian Wieninger <cwieninger (at) gmx (dot) de> | 2007-10-25 16:38:51 +0000 |
commit | b9542da7561744534b482deae6f087ac020935cb (patch) | |
tree | 0ed1ce9d7101f5c17d5a2cf79194a6238e3b08b8 /timers.cpp | |
parent | 3e27a5e446e94a306569a9116e0d5eaa0f3f6b04 (diff) | |
download | vdr-plugin-live-b9542da7561744534b482deae6f087ac020935cb.tar.gz vdr-plugin-live-b9542da7561744534b482deae6f087ac020935cb.tar.bz2 |
- additional timer info in popup menu in timers menu
Diffstat (limited to 'timers.cpp')
-rw-r--r-- | timers.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
@@ -87,6 +87,23 @@ string SortedTimers::GetTimerDays(cTimer const& timer) return currentDay; } +string SortedTimers::GetTimerInfo(cTimer const& timer) +{ + ostringstream info; + info << trVDR("Priority") << ": " << timer.Priority() << endl; + info << trVDR("Lifetime") << ": " << timer.Lifetime() << endl; + info << trVDR("VPS") << ": " << (timer.HasFlags(tfVps)?trVDR("yes"):trVDR("no")) << endl; + + string epgsearchinfo = GetXMLValue(timer.Aux(), "epgsearch"); + if (!epgsearchinfo.empty()) + { + string searchtimer = GetXMLValue(epgsearchinfo, "searchtimer"); + if (!searchtimer.empty()) + info << tr("Searchtimer") << ": " << searchtimer << endl; + } + return info.str(); +} + TimerManager::TimerManager() { } |