summaryrefslogtreecommitdiff
path: root/timerconflict.cpp
diff options
context:
space:
mode:
authorDieter Hametner <dh (plus) vdr (at) gekrumbel (dot) de>2008-02-24 19:37:21 +0100
committerDieter Hametner <dh (plus) vdr (at) gekrumbel (dot) de>2008-02-24 19:37:21 +0100
commit41298f1f32e40644b2837c96c45b02e9ad27f95f (patch)
tree19d0ba2874a237e27344a0b56c2e881d0f65f5f6 /timerconflict.cpp
parent503a94cd38b65b686fe898aba960b55ab47ddbf5 (diff)
downloadvdr-plugin-live-41298f1f32e40644b2837c96c45b02e9ad27f95f.tar.gz
vdr-plugin-live-41298f1f32e40644b2837c96c45b02e9ad27f95f.tar.bz2
Added functionality to display timer conflicts when polled through the
statusbox updates. Created the layout and look of the status message.
Diffstat (limited to 'timerconflict.cpp')
-rw-r--r--timerconflict.cpp13
1 files changed, 12 insertions, 1 deletions
diff --git a/timerconflict.cpp b/timerconflict.cpp
index 6f2c95c..14f42f9 100644
--- a/timerconflict.cpp
+++ b/timerconflict.cpp
@@ -111,7 +111,18 @@ namespace vdrlive {
std::string TimerConflictNotifier::Message() const
{
int count = conflicts ? conflicts->size() : 0;
- return count > 0 ? tr("Timer conflicts detected! You should check the conflicting timers.") : "";
+ std::string msg = tr("Timer conflict check detected ");
+ if (count == 1)
+ msg += ConvertToString(count) + tr(" conflict");
+ else
+ msg += ConvertToString(count) + tr(" conflicts");
+ return count > 0 ? msg : "";
}
+ std::string TimerConflictNotifier::Url() const
+ {
+ return "timerconflicts.html";
+ }
+
+
} // namespace vdrlive