diff options
Diffstat (limited to 'browserGrid.h')
-rw-r--r-- | browserGrid.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/browserGrid.h b/browserGrid.h index 36fac5c..30ada77 100644 --- a/browserGrid.h +++ b/browserGrid.h @@ -3,6 +3,7 @@ #include <memory> #include <vector> +#include <functional> #include "Plexservice.h" #include "plexgdm.h" #include "PlexServer.h" @@ -13,7 +14,7 @@ class cDummyElement : public cGridElement { public: virtual std::string GetTitle(); - virtual void AddTokens(std::shared_ptr<cViewGrid> grid); + virtual void AddTokens(std::shared_ptr<cOsdElement> grid, bool clear = true, std::function<void(cGridElement*)> OnCached = NULL); }; class cServerElement : public cGridElement @@ -25,17 +26,16 @@ private: public: cServerElement(plexclient::PlexServer* server, std::string startPath, std::string startName); virtual std::string GetTitle(); - virtual void AddTokens(std::shared_ptr<cViewGrid> grid); + virtual void AddTokens(std::shared_ptr<cOsdElement> grid, bool clear = true, std::function<void(cGridElement*)> OnCached = NULL); std::string StartPath() { return m_sStartPath; } plexclient::PlexServer* Server() { return m_pServer; } }; class cBrowserGrid : public cViewGridNavigator { -private: +private: bool m_bServersAreRoot; std::vector<cServerElement> m_vServerElements; - std::shared_ptr<plexclient::MediaContainer> m_pContainer; std::shared_ptr<plexclient::Plexservice> m_pService; cDummyElement m_Dummy; @@ -46,7 +46,8 @@ private: public: cBrowserGrid(cViewGrid* viewGrid); cBrowserGrid(cViewGrid* viewGrid, std::shared_ptr<plexclient::Plexservice> service); - + std::shared_ptr<plexclient::MediaContainer> MediaContainer() { return m_pContainer; } + virtual eOSState NavigateSelect(); virtual eOSState NavigateBack(); }; |