vdr-plugin-tvguide/epggrid.h

29 lines
850 B
C
Raw Normal View History

2013-01-17 13:16:44 +01:00
#ifndef __TVGUIDE_EPGGRID_H
#define __TVGUIDE_EPGGRID_H
// --- cEpgGrid -------------------------------------------------------------
class cEpgGrid : public cGrid {
2013-01-17 13:16:44 +01:00
private:
2013-05-26 11:38:05 +02:00
const cEvent *event;
cTextWrapper *extText;
2013-05-24 16:23:23 +02:00
cString timeString;
bool hasTimer;
2013-05-26 11:38:05 +02:00
void drawText();
void drawRecIcon();
time_t Duration(void) { return event->Duration(); };
2013-01-17 13:16:44 +01:00
public:
2013-05-26 11:38:05 +02:00
cEpgGrid(cChannelColumn *c, const cEvent *event);
virtual ~cEpgGrid(void);
void SetViewportHeight();
void PositionPixmap();
void setText(void);
2013-05-26 11:38:05 +02:00
const cEvent *GetEvent() {return event;};
time_t StartTime() { return event->StartTime(); };
time_t EndTime() { return event->EndTime(); };
void setTimer() {hasTimer = true;};
cString getTimeString(void);
2013-05-26 11:38:05 +02:00
void debug();
2013-01-17 13:16:44 +01:00
};
#endif //__TVGUIDE_EPGGRID_H