summaryrefslogtreecommitdiff
path: root/plex.h
blob: 097f0adc3830eec4e782f19d14fbf82c0e79e8ae (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
#ifndef PLEX_H
#define PLEX_H

#include <vdr/interface.h>
#include <vdr/plugin.h>
#include <vdr/player.h>
#include <vdr/osd.h>
#include <vdr/shutdown.h>
#include <vdr/status.h>
#include <vdr/videodir.h>
#include <vdr/menuitems.h>

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

#include "plexgdm.h"
#include "cPlexOsdItem.h"
#include "hlsPlayerControl.h"
#include "plexSdOsd.h"

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

/// vdr-plugin version number.
/// Makefile extracts the version number for generating the file name
/// for the distribution archive.
static const char *const VERSION = "0.1.5"
#ifdef GIT_REV
                                   "-GIT" GIT_REV
#endif
                                   ;
static const char *const DESCRIPTION = "Plex for VDR Plugin";
static const char *const MAINMENUENTRY = "Plex for VDR";


class cMyPlugin:public cPlugin
{
private:
	cPlexSdOsd* m_pSdCheck;
	static bool bSkindesigner;
	
public:
	cMyPlugin(void);
	virtual ~ cMyPlugin(void);
	virtual const char *Version(void);
	virtual const char *Description(void);
	virtual bool Initialize(void);
	virtual bool Start(void);
	virtual void MainThreadHook(void);
	virtual const char *MainMenuEntry(void);
	virtual cOsdObject *MainMenuAction(void);
	virtual cMenuSetupPage *SetupMenu(void);
	virtual bool SetupParse(const char *, const char *);

	static void PlayFile(plexclient::Video Vid);

public:
	static volatile bool CalledFromCode;

};
#endif