zapit/src/getservices.cpp: add IsChannelTVChannel()

This commit is contained in:
[CST] Focus
2012-04-18 19:01:20 +04:00
parent 0b8adae5bd
commit 628f900451
2 changed files with 11 additions and 0 deletions

View File

@@ -139,6 +139,8 @@ class CServiceManager
bool GetAllTransponderChannels(ZapitChannelList &list, transponder_id_t tpid);
bool GetAllUnusedChannels(ZapitChannelList &list);
bool IsChannelTVChannel(const t_channel_id channel_id);
std::string GetSatelliteName(t_satellite_position position)
{
sat_iterator_t it = satellitePositions.find(position);

View File

@@ -1081,3 +1081,12 @@ void CServiceManager::UpdateSatTransponders(t_satellite_position satellitePositi
tI->second.dump("[zapit] duplicate in sat transponders:");
}
}
bool CServiceManager::IsChannelTVChannel(const t_channel_id channel_id)
{
bool ret = true;
CZapitChannel * channel = FindChannel(channel_id);
if(channel)
ret = (channel->getServiceType() != ST_DIGITAL_RADIO_SOUND_SERVICE);
return ret;
}