summaryrefslogtreecommitdiff
path: root/channeljump.h
blob: 50b80e6787c92bf0a1ac609be1da3d42b71880d3 (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
#ifndef __TVGUIDE_CHANNELJUMP_H
#define __TVGUIDE_CHANNELJUMP_H

#include "styledpixmap.h"

// --- cChannelJump  -------------------------------------------------------------

class cChannelJump : public cStyledPixmap {
private:
    int channel;
    cChannelGroups *channelGroups;
    int maxChannels;
    long unsigned int startTime;
    long unsigned int timeout;
    cPixmap *pixmapBack;
    cPixmap *pixmapText;
    void SetPixmaps(void);
    void Draw(void);
    cString BuildChannelString(void);
public:
    cChannelJump(cChannelGroups *channelGroups, int lastValidChannel);
    virtual ~cChannelJump(void);
    void Set(int num);
    void DrawText(void);
    bool TimeOut(void);
    int GetChannel(void) { return channel; };
};

#endif //__TVGUIDE_CHANNELJUMP_H