summaryrefslogtreecommitdiff
path: root/plex.h
diff options
context:
space:
mode:
authorchriszero <zerov83@gmail.com>2015-02-21 16:43:14 +0100
committerchriszero <zerov83@gmail.com>2015-02-21 16:43:14 +0100
commit2d8e03d177d20f22c2776b77b2d704a5009ce0fa (patch)
tree6969a3735fcc106b6f744417587ef8766d8b225a /plex.h
parent37043899a114c20b50d26ceb2992c2e670b6024e (diff)
downloadvdr-plugin-plex-2d8e03d177d20f22c2776b77b2d704a5009ce0fa.tar.gz
vdr-plugin-plex-2d8e03d177d20f22c2776b77b2d704a5009ce0fa.tar.bz2
Add feature: recovers menustate before playing
Diffstat (limited to 'plex.h')
-rw-r--r--plex.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/plex.h b/plex.h
index 89075f5..c2570c8 100644
--- a/plex.h
+++ b/plex.h
@@ -56,10 +56,15 @@ 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();
};
@@ -98,6 +103,9 @@ public:
virtual bool SetupParse(const char *, const char *);
static void PlayFile(plexclient::Video Vid);
+
+public:
+ static volatile bool CalledFromCode;
};