summaryrefslogtreecommitdiff
path: root/dummygrid.h
blob: f0837f6955c1cc16d16a28ecf98b4c964874eee3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#ifndef __TVGUIDE_DUMMYGRID_H
#define __TVGUIDE_DUMMYGRID_H

#include "grid.h"
#include "channelcolumn.h"

// --- cDummyGrid  -------------------------------------------------------------

class cDummyGrid : public cGrid {
private:
    time_t start;
    time_t end;
    cString strText;
    void drawText();
    time_t Duration(void);
public:
    cDummyGrid(cChannelColumn *c, time_t start, time_t end);
    virtual ~cDummyGrid(void);
    void SetViewportHeight();
    void PositionPixmap();
    void setText(void);
    const cEvent *GetEvent() {return NULL;};
    time_t StartTime() { return start; };
    time_t EndTime() { return end; };
    void SetStartTime(time_t start) { this->start = start; };
    void SetEndTime(time_t end) { this->end = end; };
    int calcOverlap(cGrid *neighbor);
    void setTimer() {};
    cString getText(void);
    cString getTimeString(void);
    void debug();
};

#endif //__TVGUIDE_DUMMYGRID_H