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

#include <libskindesignerapi/skindesignerosdbase.h>
#include "definitions.h"

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

class cChannelJump {
private:
    skindesignerapi::cViewElement *channelJump;
    int channel;
    int maxChannels;
    int startTime;
    int timeout;
    cString BuildChannelString(void);
public:
    cChannelJump(skindesignerapi::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