summaryrefslogtreecommitdiff
path: root/schedule.ecpp
blob: 76659b480e6203d8d466161519c7b4eebddd2027 (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
<%pre>
#include <vdr/plugin.h>
#include <vdr/channels.h>
#include <vdr/epg.h>
#include <vdr/config.h>

</%pre>
<%args>
int channel;
</%args>
<html>
 <head>
  <title>ecpp-application testproject</title>
 </head>
 <body>

	Programm für Channel Nummer <$ channel $><br/>

<{
	cSchedulesLock schedulesLock;
	const cSchedules* schedules = cSchedules::Schedules(schedulesLock);

	cChannel* Channel = Channels.GetByNumber(channel);
	if (Channel) {
		const cSchedule *Schedule = schedules->GetSchedule(Channel);
		if (Schedule) {
			for (const cEvent *ev = Schedule->Events()->First(); ev; ev = Schedule->Events()->Next(ev)) {
}>
	<$ ev->Title() $><br/>

<{
			}
		} else {
}>
	Kein Schedule für Channel <$ Channel->Number() $>
<{
		}
	} else {
}>
	Kein Channel mit der Nummer <$ channel $>
<{
	}
}>
 </body>
</html>