[Windows] Fix driver version detection of AMD RDNA+ GPU on Windows 10
[xbmc.git] / xbmc / pvr / epg / EpgChannelData.cpp
blob259b29646e099deadf6f44e13fe4e56bd8a96544
1 /*
2 * Copyright (C) 2012-2018 Team Kodi
3 * This file is part of Kodi - https://kodi.tv
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 * See LICENSES/README.md for more information.
7 */
9 #include "EpgChannelData.h"
11 #include "XBDateTime.h"
12 #include "pvr/channels/PVRChannel.h"
14 using namespace PVR;
16 CPVREpgChannelData::CPVREpgChannelData(int iClientId, int iUniqueClientChannelId)
17 : m_iClientId(iClientId), m_iUniqueClientChannelId(iUniqueClientChannelId)
21 CPVREpgChannelData::CPVREpgChannelData(const CPVRChannel& channel)
22 : m_bIsRadio(channel.IsRadio()),
23 m_iClientId(channel.ClientID()),
24 m_iUniqueClientChannelId(channel.UniqueID()),
25 m_bIsHidden(channel.IsHidden()),
26 m_bIsLocked(channel.IsLocked()),
27 m_bIsEPGEnabled(channel.EPGEnabled()),
28 m_iChannelId(channel.ChannelID()),
29 m_strChannelName(channel.ChannelName()),
30 m_strChannelIconPath(channel.IconPath())
34 bool CPVREpgChannelData::IsRadio() const
36 return m_bIsRadio;
39 int CPVREpgChannelData::ClientId() const
41 return m_iClientId;
44 int CPVREpgChannelData::UniqueClientChannelId() const
46 return m_iUniqueClientChannelId;
49 bool CPVREpgChannelData::IsHidden() const
51 return m_bIsHidden;
54 void CPVREpgChannelData::SetHidden(bool bIsHidden)
56 m_bIsHidden = bIsHidden;
59 bool CPVREpgChannelData::IsLocked() const
61 return m_bIsLocked;
64 void CPVREpgChannelData::SetLocked(bool bIsLocked)
66 m_bIsLocked = bIsLocked;
69 bool CPVREpgChannelData::IsEPGEnabled() const
71 return m_bIsEPGEnabled;
74 void CPVREpgChannelData::SetEPGEnabled(bool bIsEPGEnabled)
76 m_bIsEPGEnabled = bIsEPGEnabled;
79 int CPVREpgChannelData::ChannelId() const
81 return m_iChannelId;
84 void CPVREpgChannelData::SetChannelId(int iChannelId)
86 m_iChannelId = iChannelId;
89 const std::string& CPVREpgChannelData::ChannelName() const
91 return m_strChannelName;
94 void CPVREpgChannelData::SetChannelName(const std::string& strChannelName)
96 m_strChannelName = strChannelName;
99 const std::string& CPVREpgChannelData::ChannelIconPath() const
101 return m_strChannelIconPath;
104 void CPVREpgChannelData::SetChannelIconPath(const std::string& strChannelIconPath)
106 m_strChannelIconPath = strChannelIconPath;