forked from MegaV0lt/vdr-plugin-skinflatplus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdisplaychannel.h
63 lines (50 loc) · 1.91 KB
/
displaychannel.h
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
/*
* Skin flatPlus: A plugin for the Video Disk Recorder
*
* See the README file for copyright information and how to reach the author.
*
* $Id$
*/
#pragma once
#include <vdr/status.h>
#include "./baserender.h"
#include "./flat.h"
#include "./services/dvbapi.h"
#include "./services/scraper2vdr.h"
class cFlatDisplayChannel : public cFlatBaseRender, public cSkinDisplayChannel, public cStatus {
private:
const cEvent *m_Present {nullptr};
int m_ChannelWidth {0}, m_ChannelHeight {0};
// cString m_ChannelName;
const cChannel *m_CurChannel {nullptr};
cPixmap *ChanInfoTopPixmap {nullptr};
cPixmap *ChanInfoBottomPixmap {nullptr};
cPixmap *ChanLogoPixmap {nullptr};
cPixmap *ChanLogoBGPixmap {nullptr};
cPixmap *ChanIconsPixmap {nullptr};
cPixmap *ChanEpgImagesPixmap {nullptr};
int m_ScreenWidth {-1}, m_LastScreenWidth {-1};
int m_ScreenHeight {0};
double m_ScreenAspect {0.0};
int HeightBottom {0}, HeightImageLogo {0};
int m_LastSignalStrength {-1}, m_LastSignalQuality {-1};
int m_SignalStrengthRight {0};
// TVScraper
int m_TVSLeft {0}, m_TVSTop {0}, m_TVSWidth {0}, m_TVSHeight {0};
// TextScroller
cTextScrollers Scrollers;
// bool IsRecording; // Unused?
bool m_IsRadioChannel = false;
bool m_IsGroup = false;
void SignalQualityDraw(void);
void ChannelIconsDraw(const cChannel *Channel, bool Resolution);
void DvbapiInfoDraw(void);
public:
cFlatDisplayChannel(bool WithInfo);
virtual ~cFlatDisplayChannel();
virtual void SetChannel(const cChannel *Channel, int Number);
virtual void SetEvents(const cEvent *Present, const cEvent *Following);
virtual void SetMessage(eMessageType Type, const char *Text);
virtual void Flush(void);
void PreLoadImages(void);
};