vdr-plugin-tvguide/epggrid.h

32 lines
909 B
C
Raw Normal View History

2013-01-17 13:16:44 +01:00
#ifndef __TVGUIDE_EPGGRID_H
#define __TVGUIDE_EPGGRID_H
2013-12-07 15:51:50 +01:00
#include <vdr/epg.h>
#include "grid.h"
2013-01-17 13:16:44 +01:00
// --- 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;
2013-05-26 11:38:05 +02:00
void drawText();
2013-07-09 00:17:42 +02:00
void drawIcon(cString iconText, tColor color);
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(); };
2013-07-20 13:46:26 +02:00
void SetTimer();
void SetSwitchTimer();
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