summaryrefslogtreecommitdiff
path: root/channelcolumn.h
blob: 2b1fdbddf8e0e4e17221425ec316d66db9c37081 (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
35
36
37
38
39
40
41
42
#ifndef __TVGUIDE_CHANNELCOLUMN_H
#define __TVGUIDE_CHANNELCOLUMN_H

class cEpgGrid;
// --- cChannelColumn  -------------------------------------------------------------

class cChannelColumn : public cListObject, public cStyledPixmap {
friend class cEpgGrid;
private:
    cPixmap *pixmapLogo;
	cMyTime *myTime;
	int num;
	cChannel *channel;
	cList<cEpgGrid> grids;
	cSchedulesLock schedulesLock;
	const cSchedules *schedules;
	bool hasTimer;
public:
	cChannelColumn(int num, cChannel *channel, cMyTime *myTime);
	virtual ~cChannelColumn(void);
	void createHeader();
	void drawHeader();
	bool readGrids();
	void drawGrids();
	int getX();
	cChannel * getChannel() {return channel;}
	cEpgGrid * getActive();
	cEpgGrid * getNext(cEpgGrid *activeGrid);
	cEpgGrid * getPrev(cEpgGrid *activeGrid);
	cEpgGrid * getNeighbor(cEpgGrid *activeGrid);
	void AddNewGridsAtStart();
	void AddNewGridsAtEnd();
	void ClearOutdatedStart();
	void ClearOutdatedEnd();
	int GetNum() {return num;};
	void SetNum(int num) {this->num = num;};
	void setTimer() {hasTimer = true;};
	void clearGrids();
	void dumpGrids();
};

#endif //__TVGUIDE_CHANNELCOLUMN_H