summaryrefslogtreecommitdiff
path: root/epghandler.c
blob: 51074ad355f3b06862e4d546a028233ba57dd589 (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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
/*
 * cEEpgHandler.c
 *
 *  Created on: 11.3.2012
 *      Author: d.petrovski
 */

#include "epghandler.h"

cEEpgHandler::cEEpgHandler() {
	// TODO Auto-generated constructor stub

}

cEEpgHandler::~cEEpgHandler() {
	// TODO Auto-generated destructor stub
}

bool cEEpgHandler::HandleEitEvent(cSchedule* Schedule,
		const SI::EIT::Event* EitEvent, uchar TableID, uchar Version) {
	return true;
}

bool cEEpgHandler::SetEventID(cEvent* Event, tEventID EventID) {
	Event->SetEventID(EventID);
	return true;
}

bool cEEpgHandler::SetTitle(cEvent* Event, const char* Title) {
	if (!strcmp(Event->Title(),"") || (strcmp(Title,"") && strcmp(Event->Title(),Title)))
		Event->SetTitle(Title);
	return true;
}

bool cEEpgHandler::SetShortText(cEvent* Event, const char* ShortText) {
	if (!strcmp(Event->ShortText(),"") || (strcmp(ShortText,"") && strcmp(Event->ShortText(),ShortText)))
		Event->SetShortText(ShortText);
	return true;
}

bool cEEpgHandler::SetDescription(cEvent* Event, const char* Description) {
	if (!strcmp(Event->Description(),"") || (strcmp(Description,"") && strcmp(Event->Description(),Description)))
		Event->SetDescription(Description);
	return true;
}

bool cEEpgHandler::SetContents(cEvent* Event, uchar* Contents) {
	Event->SetContents(Contents);
	return true;
}

bool cEEpgHandler::SetParentalRating(cEvent* Event, int ParentalRating) {
	Event->SetParentalRating(ParentalRating);
	return true;
}

bool cEEpgHandler::SetStartTime(cEvent* Event, time_t StartTime) {
	Event->SetStartTime(StartTime);
	return true;
}

bool cEEpgHandler::SetDuration(cEvent* Event, int Duration) {
	Event->SetDuration(Duration);
	return true;
}

bool cEEpgHandler::SetVps(cEvent* Event, time_t Vps) {
	Event->SetVps(Vps);
	return true;
}

bool cEEpgHandler::HandleEvent(cEvent* Event) {
	return true;
}

bool cEEpgHandler::SortSchedule(cSchedule* Schedule) {
	Schedule->Sort();
	return true;
}

bool cEEpgHandler::DropOutdated(cSchedule* Schedule, time_t SegmentStart,
		time_t SegmentEnd, uchar TableID, uchar Version) {
	return false;
}