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

#include "libskindesigner/osdelements.h"

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

class cChannelJump {
private:
    cViewElement *channelJump;
    int channel;
    int maxChannels;
    int startTime;
    int timeout;
    cString BuildChannelString(void);
public:
    cChannelJump(cViewElement *channelJump, int lastValidChannel);
    virtual ~cChannelJump(void);
    void Set(int key);
    bool TimeOut(void);
    void Draw(void);
    int GetChannel(void) { return channel; };
};

#endif //__TVGUIDE_CHANNELJUMP_H