2013-05-20 11:37:37 +02:00
|
|
|
#ifndef __TVGUIDE_DUMMYGRID_H
|
|
|
|
#define __TVGUIDE_DUMMYGRID_H
|
|
|
|
|
2013-12-07 15:51:50 +01:00
|
|
|
#include "grid.h"
|
2019-07-11 12:06:18 +02:00
|
|
|
#include "channelepg.h"
|
2013-12-07 15:51:50 +01:00
|
|
|
|
2013-05-20 11:37:37 +02:00
|
|
|
// --- cDummyGrid -------------------------------------------------------------
|
|
|
|
|
|
|
|
class cDummyGrid : public cGrid {
|
|
|
|
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);
|
2013-05-20 11:37:37 +02:00
|
|
|
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();
|
2013-05-20 11:37:37 +02:00
|
|
|
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; };
|
2013-05-20 11:37:37 +02:00
|
|
|
void SetStartTime(time_t start) { this->start = start; };
|
2013-05-26 11:38:05 +02:00
|
|
|
void SetEndTime(time_t end) { this->end = end; };
|
|
|
|
int calcOverlap(cGrid *neighbor);
|
|
|
|
void setTimer() {};
|
2013-05-20 11:37:37 +02:00
|
|
|
cString getText(void);
|
|
|
|
cString getTimeString(void);
|
2013-05-26 11:38:05 +02:00
|
|
|
void debug();
|
2013-05-20 11:37:37 +02:00
|
|
|
};
|
|
|
|
|
2019-07-11 11:07:13 +02:00
|
|
|
#endif //__TVGUIDE_DUMMYGRID_H
|