summaryrefslogtreecommitdiff
path: root/cPlexOsdItem.cpp
blob: 3d0684e1d2d1c4439939092549a737cbc5d41894 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#include "cPlexOsdItem.h"

cPlexOsdItem::cPlexOsdItem(const char* title) :cOsdItem(title) {
	item = 0;
	dir = 0;
	pserver = 0;
	m_bVideo = false;
	m_bDir = false;
}

cPlexOsdItem::cPlexOsdItem(const char* title, plexclient::PlexServer* server) :cOsdItem(title) {
	item = 0;
	dir = 0;
	pserver = server;
	m_bVideo = false;
	m_bDir = false;
}

cPlexOsdItem::cPlexOsdItem(const char* title, plexclient::Video* obj) :cOsdItem(title) {
	item = obj;
	dir = 0;
	pserver = 0;
	m_bVideo = true;
	m_bDir = false;
}

cPlexOsdItem::cPlexOsdItem(const char* title, plexclient::Directory* obj) :cOsdItem(title) {
	dir = obj;
	item = 0;
	pserver = 0;
	m_bDir = true;
	m_bVideo = false;
}

plexclient::Video* cPlexOsdItem::GetAttachedVideo() {
	return item;
}

plexclient::Directory* cPlexOsdItem::GetAttachedDirectory() {
	return dir;
}

plexclient::PlexServer* cPlexOsdItem::GetAttachedServer() {
	return pserver;
}

cPlexOsdItem::~cPlexOsdItem()
{
}