blob: b33c744e9b0fc8da76fc5ac1a2452c0a5dd95f80 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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());
}
|