summaryrefslogtreecommitdiff
path: root/cPlexOsdItem.h
diff options
context:
space:
mode:
Diffstat (limited to 'cPlexOsdItem.h')
-rw-r--r--cPlexOsdItem.h39
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