diff options
author | chriszero <zerov83@gmail.com> | 2014-11-15 19:43:07 +0100 |
---|---|---|
committer | chriszero <zerov83@gmail.com> | 2014-11-15 19:43:07 +0100 |
commit | 23f9f7712bfa33b5a488a447a6fabe6035cc3240 (patch) | |
tree | 06bbe8e0bc52496c5ad3c41accc7524aa597e670 /cPlexOsdItem.h | |
parent | a40adaf76fb1267d38b4c5e6386933ddb2d0d328 (diff) | |
download | vdr-plugin-plex-23f9f7712bfa33b5a488a447a6fabe6035cc3240.tar.gz vdr-plugin-plex-23f9f7712bfa33b5a488a447a6fabe6035cc3240.tar.bz2 |
initial commit
Diffstat (limited to 'cPlexOsdItem.h')
-rw-r--r-- | cPlexOsdItem.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/cPlexOsdItem.h b/cPlexOsdItem.h new file mode 100644 index 0000000..5ca144c --- /dev/null +++ b/cPlexOsdItem.h @@ -0,0 +1,39 @@ +#ifndef CPLEXOSDITEM_H +#define CPLEXOSDITEM_H + +#include <vdr/osd.h> // Base class: cOsdItem +#include <vdr/interface.h> +#include <vdr/plugin.h> + +#include "PVideo.h" +#include "Directory.h" + +class cPlexOsdItem : public cOsdItem +{ +private: + plexclient::Video *item; + plexclient::Directory *dir; + bool m_bVideo; + bool m_bDir; + +public: + cPlexOsdItem(const char* title); + cPlexOsdItem(const char* title, plexclient::Video* obj); + cPlexOsdItem(const char* title, plexclient::Directory* obj); + ~cPlexOsdItem(); + plexclient::Video* GetAttachedVideo(); + plexclient::Directory* GetAttachedDirectory(); + + bool IsVideo() const { + return m_bVideo; + } + bool IsDir() const { + return m_bDir; + } + + //virtual eOSState ProcessKey(eKeys Key); + //virtual void Set(void); + //virtual void SetMenuItem(cSkinDisplayMenu* DisplayMenu, int Index, bool Current, bool Selectable); +}; + +#endif // CPLEXOSDITEM_H |