summaryrefslogtreecommitdiff
path: root/displaychannel.h
blob: d0c7dbbb32b1b133055395f75e1be2c7162bce15 (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
#ifndef __DISPLAYCHANNEL_H
#define __DISPLAYCHANNEL_H

#include <vdr/skins.h>
#include "config.h"
#include "coreengine/definitions.h"
#include "coreengine/viewdisplaychannel.h"

#ifdef USE_ZAPCOCKPIT
class cSDDisplayChannel : public cSkinDisplayChannelExtended {
#else
class cSDDisplayChannel : public cSkinDisplayChannel {
#endif
private:
    cViewChannel *view;
    bool ok;
public:
    cSDDisplayChannel(cViewChannel *channelView, bool WithInfo);
    virtual ~cSDDisplayChannel();
    virtual void SetChannel(const cChannel *Channel, int Number);
    virtual void SetEvents(const cEvent *Present, const cEvent *Following);
    virtual void SetMessage(eMessageType Type, const char *Text);
#ifdef USE_ZAPCOCKPIT
    virtual void SetViewType(eDisplaychannelView ViewType);
    virtual int MaxItems(void);
    virtual bool KeyRightOpensChannellist(void);
    virtual void SetChannelInfo(const cChannel *Channel);
    virtual void SetChannelList(const cChannel *Channel, int Index, bool Current);
    virtual void SetGroupList(const char *Group, int NumChannels, int Index, bool Current);
    virtual void SetGroupChannelList(const cChannel *Channel, int Index, bool Current);
    virtual void ClearList(void);
    virtual void SetNumChannelHints(int Num);
    virtual void SetChannelHint(const cChannel *Channel);
#endif
    virtual void Flush(void);
};
#endif //__DISPLAYCHANNEL_H