summaryrefslogtreecommitdiff
path: root/plex.h
diff options
context:
space:
mode:
authorchriszero <zerov83@gmail.com>2015-03-05 20:12:32 +0100
committerchriszero <zerov83@gmail.com>2015-03-05 20:12:32 +0100
commit44a091857305a75dcaa16f80f480e3174373c377 (patch)
tree5ab6d90f991221809c4072f12c7e613e6d97c944 /plex.h
parenta37e5ffb71a36ed841ec7f53ae24cca5b441c6d2 (diff)
downloadvdr-plugin-plex-44a091857305a75dcaa16f80f480e3174373c377.tar.gz
vdr-plugin-plex-44a091857305a75dcaa16f80f480e3174373c377.tar.bz2
Scrobble / Unscrobble via PlexBrowser.
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