summaryrefslogtreecommitdiff
path: root/displaychannel.c
blob: 9eead8f26c549e94429b837a4884c09d86bf91ea (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
#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(false);
}