vdr-plugin-tvguide/epggrid.h

34 lines
915 B
C
Raw Permalink Normal View History

2019-07-11 11:07:13 +02:00
#ifndef __TVGUIDE_EPGGRID_H
#define __TVGUIDE_EPGGRID_H
#include <vdr/epg.h>
2019-07-11 15:11:26 +02:00
#include "gridelement.h"
2019-07-11 11:07:13 +02:00
// --- cEpgGrid -------------------------------------------------------------
2019-07-11 15:06:07 +02:00
class cEpgGrid : public cGridElement {
2019-07-11 11:07:13 +02:00
private:
const cTimer *timer;
const cEvent *event;
cTextWrapper *extText;
cString timeString;
void drawText();
void drawIcon(cString iconText, tColor color);
time_t Duration(void) { return event->Duration(); };
public:
2019-07-11 12:06:18 +02:00
cEpgGrid(cChannelEpg *c, const cEvent *event);
2019-07-11 11:07:13 +02:00
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();
void SetSwitchTimer();
cString getTimeString(void);
void debug();
};
#endif //__TVGUIDE_EPGGRID_H