CServiceManager: add member GetCurrentChannel()

Shortcut for CZapit::getInstance()->GetCurrentChannel() inside
CServiceManager
This commit is contained in:
2017-11-12 15:58:56 +01:00
parent 7370c4c557
commit 1de277effe
2 changed files with 7 additions and 0 deletions

View File

@@ -134,6 +134,8 @@ class CServiceManager
CZapitChannel* FindChannelFuzzy(const t_channel_id channel_id,
const t_satellite_position pos, const freq_id_t freq);
CZapitChannel * GetCurrentChannel(void);
std::string GetServiceName(t_channel_id channel_id);
tallchans* GetAllChannels(){ return &allchans; };

View File

@@ -262,6 +262,11 @@ CZapitChannel* CServiceManager::FindChannelFuzzy(const t_channel_id channel_id,
return NULL;
}
CZapitChannel* CServiceManager::GetCurrentChannel(void)
{
return CZapit::getInstance()->GetCurrentChannel();
}
bool CServiceManager::GetAllRadioChannels(ZapitChannelList &list, int flags)
{
list.clear();