summaryrefslogtreecommitdiff
path: root/plexSdOsd.h
blob: f4f44278a07be63c282f0bda6caed541dfa254a4 (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
#ifndef CPLEXSDOSD_H
#define CPLEXSDOSD_H

#include <vdr/osdbase.h>

#include <iostream>
#include <string>
#include <vector>
#include <iterator>
#include <algorithm>
#include <memory>

#include "Config.h"
#include "Plexservice.h"

#include "plexgdm.h"
#include "hlsPlayerControl.h"

#include "browserGrid.h"
#include "viewHeader.h"
#include "libskindesigner/osdelements.h"
#include "libskindesigner/skindesignerosdbase.h"

enum eViews {
	viRootView,
	viDetailView
};

enum eViewElementsRoot {
	verBackground,
	verHeader,
	verFooter
};

enum eViewGrids {
	vgBrowser
};

class cPlexSdOsd : public cSkindesignerOsdObject
{	
private:	
	std::shared_ptr<cBrowserGrid> m_pBrowserGrid;
	std::shared_ptr<cViewHeader> m_pViewHeader;
	std::shared_ptr<cViewElement> m_pBackground;
	std::shared_ptr<cViewElement> m_pfooter;
	cOsdView* m_pRootView;
	
	void Flush();
	void SwitchGrid(ePlexMenuTab currentTab);
	void DrawBackground();
	void DrawFooter();
	
public:
	cPlexSdOsd();
	virtual void Show(void);
  	virtual eOSState ProcessKey(eKeys Key);
	
	static cMutex RedrawMutex;
};

#endif // CPLEXSDOSD_H