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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
|
#include "displaychannel.h"
cSDDisplayChannel::cSDDisplayChannel(cViewChannel *channelView, bool WithInfo) {
view = channelView;
ok = view->Init();
if (!ok)
esyslog("skindesigner: Error initiating displaychannel view - aborting");
}
cSDDisplayChannel::~cSDDisplayChannel() {
view->Close();
}
void cSDDisplayChannel::SetChannel(const cChannel *Channel, int Number) {
if (!ok)
return;
view->SetChannel(Channel, Number);
}
void cSDDisplayChannel::SetEvents(const cEvent *Present, const cEvent *Following) {
if (!ok)
return;
view->SetEvents(Present, Following);
}
void cSDDisplayChannel::SetMessage(eMessageType Type, const char *Text) {
if (!ok)
return;
view->SetMessage(Type, Text);
}
#ifdef USE_ZAPCOCKPIT
void cSDDisplayChannel::SetViewType(eDisplaychannelView ViewType) {
if (!ok)
return;
view->SetViewType(ViewType);
}
int cSDDisplayChannel::MaxItems(void) {
if (!ok)
return 0;
return view->MaxItems();
}
bool cSDDisplayChannel::KeyRightOpensChannellist(void) {
if (!ok)
return true;
return view->KeyRightOpensChannellist();
}
void cSDDisplayChannel::SetChannelInfo(const cChannel *Channel) {
if (!ok)
return;
view->SetChannelInfo(Channel);
}
void cSDDisplayChannel::SetChannelList(const cChannel *Channel, int Index, bool Current) {
if (!ok)
return;
view->SetChannelList(Channel, Index, Current);
}
void cSDDisplayChannel::SetGroupList(const char *Group, int NumChannels, int Index, bool Current) {
if (!ok)
return;
view->SetGroupList(Group, NumChannels, Index, Current);
}
void cSDDisplayChannel::SetGroupChannelList(const cChannel *Channel, int Index, bool Current) {
if (!ok)
return;
}
void cSDDisplayChannel::ClearList(void) {
if (!ok)
return;
view->ClearList();
}
void cSDDisplayChannel::SetNumChannelHints(int Num) {
if (!ok)
return;
view->SetNumChannelHints(Num);
}
void cSDDisplayChannel::SetChannelHint(const cChannel *Channel) {
if (!ok)
return;
view->SetChannelHint(Channel);
}
#endif //USE_ZAPCOCKPIT
void cSDDisplayChannel::Flush(void) {
if (!ok)
return;
view->GetTimers();
view->Flush();
}
|