mirror of
https://projects.vdr-developer.org/git/vdr-plugin-skindesigner.git
synced 2023-10-19 17:58:31 +02:00
37 lines
849 B
C
37 lines
849 B
C
#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);
|
|
}
|
|
|
|
void cSDDisplayChannel::Flush(void) {
|
|
if (!ok)
|
|
return;
|
|
view->Flush();
|
|
}
|