summaryrefslogtreecommitdiff
path: root/tvguideosd.h
blob: 9ff4c2f954b0b1f2dca53d0261f55f2239a8067b (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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#ifndef __TVGUIDE_TVGUIDEOSD_H
#define __TVGUIDE_TVGUIDEOSD_H

#include "timemanager.h"
#include "gridelement.h"
#include "channelepg.h"
#include "statusheader.h"
#include "detailview.h"
#include "timeline.h"
#include "channelgroups.h"
#include "footer.h"
#include "recmenuview.h"
#include "channeljump.h"

// --- cTvGuideOsd -------------------------------------------------------------

class cTvGuideOsd : public cOsdObject {
private:
  cTimeManager *timeManager;
  cList<cChannelEpg> columns;
  cGridElement *activeGrid;
  cStatusHeader *statusHeader;
  cDetailView *detailView;
  cTimeLine *timeLine;
  cChannelGroups *channelGroups;
  cFooter *footer;
  cRecMenuView *recMenuView;
  cChannelJump *channelJumper;
  int GetLastValidChannel(void);
  bool detailViewActive;
  void drawOsd();
  void readChannels(const cChannel *channelStart);
  void drawGridsChannelJump(int offset = 0);
  void drawGridsTimeJump();
  void processKeyUp();
  void processKeyDown();
  void processKeyLeft();
  void processKeyRight();
  void processKeyRed();
  void processKeyGreen();
  void processKeyYellow();
  eOSState processKeyBlue(bool *alreadyUnlocked);
  eOSState processKeyOk(bool *alreadyUnlocked);
  void processNumKey(int numKey);
  void TimeJump(int mode);
  void ChannelJump(int num);
  void CheckTimeout(void);
  void setNextActiveGrid(cGridElement *next);
  void channelForward();
  void channelBack();
  void timeForward();
  void timeBack();
  void ScrollForward();
  void ScrollBack();
  eOSState ChannelSwitch(bool *alreadyUnlocked);
  void DetailedEPG();
  void SetTimers();
  void dump();
public:
  cTvGuideOsd(void);
  virtual ~cTvGuideOsd(void);
  virtual void Show(void);
  virtual eOSState ProcessKey(eKeys Key);
};

#endif //__TVGUIDE_TVGUIDEOSD_H