From 44a091857305a75dcaa16f80f480e3174373c377 Mon Sep 17 00:00:00 2001 From: chriszero Date: Thu, 5 Mar 2015 20:12:32 +0100 Subject: Scrobble / Unscrobble via PlexBrowser. --- plex.h | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) (limited to 'plex.h') diff --git a/plex.h b/plex.h index c2570c8..8c1b15f 100644 --- a/plex.h +++ b/plex.h @@ -30,9 +30,9 @@ /// for the distribution archive. static const char *const VERSION = "0.1.0" #ifdef GIT_REV - "-GIT" GIT_REV + "-GIT" GIT_REV #endif -; + ; static const char *const DESCRIPTION = "Plex for VDR Plugin"; static const char *const MAINMENUENTRY = "Plex for VDR"; @@ -56,14 +56,14 @@ private: eOSState LevelUp(void); /// Handle menu item selection eOSState ProcessSelected(); - + static std::shared_ptr pLastService; static int lastCurrentItem; public: cPlexBrowser(const char *title, std::shared_ptr Service); virtual eOSState ProcessKey(eKeys); - + static cPlexBrowser* RecoverLastState(); }; @@ -76,16 +76,25 @@ public: virtual eOSState ProcessKey(eKeys Keys); }; +enum menuShow { + MAIN, + BROWSER, + INFO +}; + /** ** Play plugin menu class. */ class cPlayMenu:public cOsdMenu { + private: public: cPlayMenu(const char *, int = 0, int = 0, int = 0, int = 0, int = 0); virtual ~ cPlayMenu(); virtual eOSState ProcessKey(eKeys); + + static menuShow eShow; }; class cMyPlugin:public cPlugin @@ -101,12 +110,11 @@ public: 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; + static volatile bool CalledFromCode; }; - #endif -- cgit v1.2.3