summaryrefslogtreecommitdiff
path: root/dummyelement.c
diff options
context:
space:
mode:
authorlouis <louis.braun@gmx.de>2015-03-12 17:22:16 +0100
committerlouis <louis.braun@gmx.de>2015-03-12 17:22:16 +0100
commit3cc8e78e1bf00e16b49520ac416b74b5fd73c906 (patch)
tree4425c4eb4b9833d927aae2f65d0f3a99d3792f83 /dummyelement.c
downloadvdr-plugin-tvguideng-3cc8e78e1bf00e16b49520ac416b74b5fd73c906.tar.gz
vdr-plugin-tvguideng-3cc8e78e1bf00e16b49520ac416b74b5fd73c906.tar.bz2
Version 0.0.10.0.1
Diffstat (limited to 'dummyelement.c')
-rw-r--r--dummyelement.c26
1 files changed, 26 insertions, 0 deletions
diff --git a/dummyelement.c b/dummyelement.c
new file mode 100644
index 0000000..b33c744
--- /dev/null
+++ b/dummyelement.c
@@ -0,0 +1,26 @@
+#include "dummyelement.h"
+
+cDummyElement::cDummyElement(time_t start, time_t end, cChannelEpg *owner) : cGridElement(owner) {
+ this->start = start;
+ this->end = end;
+ dummy = true;
+}
+
+cDummyElement::~cDummyElement(void) {
+}
+
+time_t cDummyElement::Duration(void) {
+ //max Duration 5h
+ int dur = end - start;
+ if (dur > 18000)
+ return 18000;
+ return dur;
+};
+
+const char *cDummyElement::Title(void) {
+ return tr("No EPG available");
+}
+
+void cDummyElement::Debug(void) {
+ esyslog("tvguideng: dummyelement %ld, %s - %s, Channel %s", id, *TimeString(start), *TimeString(end), Channel()->Name());
+}