summaryrefslogtreecommitdiff
path: root/timers.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'timers.cpp')
-rw-r--r--timers.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/timers.cpp b/timers.cpp
index b5a82ed..4ceb60d 100644
--- a/timers.cpp
+++ b/timers.cpp
@@ -65,6 +65,24 @@ namespace vdrlive {
return 0;
}
+
+ string SortedTimers::EncodeDomId(string const& timerid)
+ {
+ string tId("timer_");
+ tId += vdrlive::EncodeDomId(timerid, ".-:", "pmc");
+ return tId;
+ }
+
+ string SortedTimers::DecodeDomId(string const &timerDomId)
+ {
+ string const timerStr("timer_");
+
+ string tId = timerDomId.substr(timerStr.length());
+
+ return vdrlive::DecodeDomId(tId, "pmc", ".-:");
+ }
+
+
void SortedTimers::ReloadTimers( bool initial )
{
dsyslog("live reloading timers");