vdr-plugin-tvguide/dummygrid.h

35 lines
947 B
C
Raw Normal View History

#ifndef __TVGUIDE_DUMMYGRID_H
#define __TVGUIDE_DUMMYGRID_H
2019-07-11 15:11:26 +02:00
#include "gridelement.h"
2019-07-11 12:06:18 +02:00
#include "channelepg.h"
2013-12-07 15:51:50 +01:00
// --- cDummyGrid -------------------------------------------------------------
2019-07-11 15:06:07 +02:00
class cDummyGrid : public cGridElement {
private:
time_t start;
time_t end;
cString strText;
2013-05-26 11:38:05 +02:00
void drawText();
2013-07-12 16:00:18 +02:00
time_t Duration(void);
public:
2019-07-11 12:06:18 +02:00
cDummyGrid(cChannelEpg *c, time_t start, time_t end);
2013-05-26 11:38:05 +02:00
virtual ~cDummyGrid(void);
void SetViewportHeight();
void PositionPixmap();
void setText(void);
2013-05-26 11:38:05 +02:00
const cEvent *GetEvent() {return NULL;};
time_t StartTime() { return start; };
time_t EndTime() { return end; };
void SetStartTime(time_t start) { this->start = start; };
2013-05-26 11:38:05 +02:00
void SetEndTime(time_t end) { this->end = end; };
2019-07-11 15:06:07 +02:00
int calcOverlap(cGridElement *neighbor);
2013-05-26 11:38:05 +02:00
void setTimer() {};
cString getText(void);
cString getTimeString(void);
2013-05-26 11:38:05 +02:00
void debug();
};
2019-07-11 11:07:13 +02:00
#endif //__TVGUIDE_DUMMYGRID_H