summaryrefslogtreecommitdiffstats
path: root/xbmc/pvr/epg/EpgChannelData.cpp
blob: 259b29646e099deadf6f44e13fe4e56bd8a96544 (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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
/*
 *  Copyright (C) 2012-2018 Team Kodi
 *  This file is part of Kodi - https://kodi.tv
 *
 *  SPDX-License-Identifier: GPL-2.0-or-later
 *  See LICENSES/README.md for more information.
 */

#include "EpgChannelData.h"

#include "XBDateTime.h"
#include "pvr/channels/PVRChannel.h"

using namespace PVR;

CPVREpgChannelData::CPVREpgChannelData(int iClientId, int iUniqueClientChannelId)
  : m_iClientId(iClientId), m_iUniqueClientChannelId(iUniqueClientChannelId)
{
}

CPVREpgChannelData::CPVREpgChannelData(const CPVRChannel& channel)
  : m_bIsRadio(channel.IsRadio()),
    m_iClientId(channel.ClientID()),
    m_iUniqueClientChannelId(channel.UniqueID()),
    m_bIsHidden(channel.IsHidden()),
    m_bIsLocked(channel.IsLocked()),
    m_bIsEPGEnabled(channel.EPGEnabled()),
    m_iChannelId(channel.ChannelID()),
    m_strChannelName(channel.ChannelName()),
    m_strChannelIconPath(channel.IconPath())
{
}

bool CPVREpgChannelData::IsRadio() const
{
  return m_bIsRadio;
}

int CPVREpgChannelData::ClientId() const
{
  return m_iClientId;
}

int CPVREpgChannelData::UniqueClientChannelId() const
{
  return m_iUniqueClientChannelId;
}

bool CPVREpgChannelData::IsHidden() const
{
  return m_bIsHidden;
}

void CPVREpgChannelData::SetHidden(bool bIsHidden)
{
  m_bIsHidden = bIsHidden;
}

bool CPVREpgChannelData::IsLocked() const
{
  return m_bIsLocked;
}

void CPVREpgChannelData::SetLocked(bool bIsLocked)
{
  m_bIsLocked = bIsLocked;
}

bool CPVREpgChannelData::IsEPGEnabled() const
{
  return m_bIsEPGEnabled;
}

void CPVREpgChannelData::SetEPGEnabled(bool bIsEPGEnabled)
{
  m_bIsEPGEnabled = bIsEPGEnabled;
}

int CPVREpgChannelData::ChannelId() const
{
  return m_iChannelId;
}

void CPVREpgChannelData::SetChannelId(int iChannelId)
{
  m_iChannelId = iChannelId;
}

const std::string& CPVREpgChannelData::ChannelName() const
{
  return m_strChannelName;
}

void CPVREpgChannelData::SetChannelName(const std::string& strChannelName)
{
  m_strChannelName = strChannelName;
}

const std::string& CPVREpgChannelData::ChannelIconPath() const
{
  return m_strChannelIconPath;
}

void CPVREpgChannelData::SetChannelIconPath(const std::string& strChannelIconPath)
{
  m_strChannelIconPath = strChannelIconPath;
}