#ifndef PLEX_H #define PLEX_H #include #include #include #include #include #include #include #include #include "Config.h" #include "Plexservice.h" #include "plexgdm.h" #include "cPlexOsdItem.h" #include "hlsPlayerControl.h" #include #include #include #include #include #include /// 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.4" #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 { 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