mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 07:23:09 +02:00
CServiceManager: add member GetCurrentChannel()
Shortcut for CZapit::getInstance()->GetCurrentChannel() inside CServiceManager
This commit is contained in:
@@ -134,6 +134,8 @@ class CServiceManager
|
|||||||
CZapitChannel* FindChannelFuzzy(const t_channel_id channel_id,
|
CZapitChannel* FindChannelFuzzy(const t_channel_id channel_id,
|
||||||
const t_satellite_position pos, const freq_id_t freq);
|
const t_satellite_position pos, const freq_id_t freq);
|
||||||
|
|
||||||
|
CZapitChannel * GetCurrentChannel(void);
|
||||||
|
|
||||||
std::string GetServiceName(t_channel_id channel_id);
|
std::string GetServiceName(t_channel_id channel_id);
|
||||||
|
|
||||||
tallchans* GetAllChannels(){ return &allchans; };
|
tallchans* GetAllChannels(){ return &allchans; };
|
||||||
|
@@ -262,6 +262,11 @@ CZapitChannel* CServiceManager::FindChannelFuzzy(const t_channel_id channel_id,
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
CZapitChannel* CServiceManager::GetCurrentChannel(void)
|
||||||
|
{
|
||||||
|
return CZapit::getInstance()->GetCurrentChannel();
|
||||||
|
}
|
||||||
|
|
||||||
bool CServiceManager::GetAllRadioChannels(ZapitChannelList &list, int flags)
|
bool CServiceManager::GetAllRadioChannels(ZapitChannelList &list, int flags)
|
||||||
{
|
{
|
||||||
list.clear();
|
list.clear();
|
||||||
|
Reference in New Issue
Block a user