summaryrefslogtreecommitdiff
path: root/zappilotosd.h
blob: d455fc4d681f6d9209709032be6b817c77f55bab (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
#ifndef __ZAPPILOTOSD_H
#define __ZAPPILOTOSD_H

#include <vdr/osd.h>
#include <vdr/menuitems.h>
#include <vdr/menu.h>
#include <vdr/skins.h>
#include <ctype.h>

#include <vdr/plugin.h>
#include <vdr/menu.h>
#include <time.h>
#include "config.h"

class cZappilotOsd : public cOsdObject
{
   private:

      cOsd *osd;
      cSkinDisplayChannel *displayChannel;
      class cMenuEvent *displayEvent;
      class cMenuEditTimer *displayTimer;
      int lastTime;
      int number;
      int group;
      char ChanName[255];
      char ChanNumber[255];
      int extraInfo;
      const cEvent *Present;
      const cEvent *Following;
      const cEvent **pArray;
      const char *textPresentInfo;
      const char *textFollowingInfo;
      const char *titlePresentInfo;
      const char *titleFollowingInfo;
      const char *subtitlePresentInfo;
      const char *subtitleFollowingInfo;
      int currentEvent;
      int offset;
      int lines;
      int type;
      cChannel* currentChannel;

   public:
      cZappilotOsd(void);
      ~cZappilotOsd();
      virtual void Show(void);
      virtual eOSState ProcessKey(eKeys Key);

      void CursorUp();
      void CursorDown();
      void CursorOK();

      void AddDelSwitchTimer(const cEvent *event);
      void UpdateEPGInfo(int NowPrevNext);
      void DrawMenu(int delta, int highlight);
      void DisplayBitmap(void);
      void DisplayInfo(int delta);
      void DisplayExtraInfo(void);
      void DisplayTimer(void);
      void DisplayChannel(const cChannel *Channel);
};
#endif                           //__ZAPPILOTOSD_H