summaryrefslogtreecommitdiff
path: root/plex.h
diff options
context:
space:
mode:
Diffstat (limited to 'plex.h')
-rw-r--r--plex.h24
1 files changed, 16 insertions, 8 deletions
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<plexclient::Plexservice> pLastService;
static int lastCurrentItem;
public:
cPlexBrowser(const char *title, std::shared_ptr<plexclient::Plexservice> 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