From e8ba0bcd6d4aadcbd8af6817bb764e1f78b0fd0e Mon Sep 17 00:00:00 2001 From: "[CST] Focus" Date: Thu, 22 Mar 2012 11:32:50 +0400 Subject: [PATCH] zapit/include/zapit/getservices.h: add channel numbers maps and some helpers --- src/zapit/include/zapit/getservices.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/zapit/include/zapit/getservices.h b/src/zapit/include/zapit/getservices.h index 503d0f2d2..7e2a6391b 100644 --- a/src/zapit/include/zapit/getservices.h +++ b/src/zapit/include/zapit/getservices.h @@ -95,6 +95,8 @@ struct provider_replace typedef std::list prov_replace_map_t; typedef prov_replace_map_t::iterator prov_replace_map_iterator_t; +typedef std::set service_number_map_t; + class CServiceManager { private: @@ -110,6 +112,11 @@ class CServiceManager tallchans curchans; tallchans nvodchannels; + prov_replace_map_t replace_map; + bool have_numbers; + service_number_map_t tv_numbers; + service_number_map_t radio_numbers; + fe_type_t frontendType; satellite_map_t satellitePositions; @@ -153,6 +160,7 @@ class CServiceManager CZapitChannel* FindChannel(const t_channel_id channel_id, bool * current_is_nvod = NULL); CZapitChannel* FindChannelByName(std::string name); CZapitChannel* FindCurrentChannel(const t_channel_id channel_id); + CZapitChannel* FindChannel48(const t_channel_id channel_id); std::string GetServiceName(t_channel_id channel_id); @@ -180,8 +188,9 @@ class CServiceManager satellite_map_t & SatelliteList() { return satellitePositions; } xmlDocPtr ScanXml(); - prov_replace_map_t replace_map; bool LoadProviderMap(); bool ReplaceProviderName(std::string &name, t_transport_stream_id tsid, t_original_network_id onid); + int GetFreeNumber(bool radio); + int GetMaxNumber(bool radio); }; #endif /* __getservices_h__ */