summaryrefslogtreecommitdiff
path: root/epggrid.h
blob: 0465d067ea749436ba450280c002b00dde33a35c (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
#ifndef __TVGUIDE_EPGGRID_H
#define __TVGUIDE_EPGGRID_H

// --- cEpgGrid  -------------------------------------------------------------

class cEpgGrid : public cGrid {
private:
    const cEvent *event;
    cTextWrapper *extText;
    cString timeString;
    void drawText();
    void drawIcon(cString iconText, tColor color);
    time_t Duration(void) { return event->Duration(); };
public:
    cEpgGrid(cChannelColumn *c, const cEvent *event);
    virtual ~cEpgGrid(void);
    void SetViewportHeight();
    void PositionPixmap();
    void setText(void);
    const cEvent *GetEvent() {return event;};
    time_t StartTime() { return event->StartTime(); };
    time_t EndTime() { return event->EndTime(); };
    void SetTimer() {hasTimer = event->HasTimer();};
    void SetSwitchTimer() {hasSwitchTimer = SwitchTimers.EventInSwitchList(event);};
    cString getTimeString(void);
    void debug();
};

#endif //__TVGUIDE_EPGGRID_H