2013-05-20 11:37:37 +02:00
|
|
|
#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
|
|
|
|
2013-05-20 11:37:37 +02:00
|
|
|
// --- cDummyGrid -------------------------------------------------------------
|
|
|
|
|
2019-07-11 15:06:07 +02:00
|
|
|
class cDummyGrid : public cGridElement {
|
2013-05-20 11:37:37 +02:00
|
|
|
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; };
|
2019-07-11 15:06:07 +02:00
|
|
|
int calcOverlap(cGridElement *neighbor);
|
2013-05-26 11:38:05 +02:00
|
|
|
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
|