summaryrefslogtreecommitdiff
path: root/plexSdOsd.h
blob: 1f7c6772d93a2afc6d8437f655e6cc98097c0e59 (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
#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 {
	verHeader,
	verFooter
};

enum eViewGrids {
	vgBrowser
};

class cPlexSdOsd : public cSkindesignerOsdObject
{
private:	
	std::shared_ptr<cBrowserGrid> m_pBrowserGrid;
	std::shared_ptr<cViewHeader> m_pViewHeader;
	cOsdView* m_pRootView;
	
	void Flush();
	void SwitchGrid(ePlexMenuTab currentTab);
	
public:
	cPlexSdOsd();
	virtual void Show(void);
  	virtual eOSState ProcessKey(eKeys Key);

};

#endif // CPLEXSDOSD_H