blob: b2e00a8da330d5df7f9e197323b10e1308d55576 (
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
|
#include "cPlexOsdItem.h"
cPlexOsdItem::cPlexOsdItem(const char* title) :cOsdItem(title) {
m_bVideo = false;
m_bDir = false;
}
cPlexOsdItem::cPlexOsdItem(const char* title, std::shared_ptr<plexclient::Plexservice> service) :cOsdItem(title) {
pservice = service;
m_bVideo = false;
m_bDir = false;
}
cPlexOsdItem::cPlexOsdItem(const char* title, plexclient::Video* obj) :cOsdItem(title) {
item = obj;
m_bVideo = true;
m_bDir = false;
}
cPlexOsdItem::cPlexOsdItem(const char* title, plexclient::Directory* obj) :cOsdItem(title) {
dir = obj;
m_bDir = true;
m_bVideo = false;
}
cPlexOsdItem::cPlexOsdItem(const char* title, plexclient::Stream* obj) :cOsdItem(title) {
stream = *obj;
dir = NULL;
item = NULL;
pservice = NULL;
m_bVideo = false;
m_bDir = false;
}
plexclient::Video* cPlexOsdItem::GetAttachedVideo() {
return item;
}
plexclient::Directory* cPlexOsdItem::GetAttachedDirectory() {
return dir;
}
std::shared_ptr<plexclient::Plexservice> cPlexOsdItem::GetAttachedService() {
return pservice;
}
|