zapit/include/zapit/getservices.h: add channel numbers maps and some helpers

This commit is contained in:
[CST] Focus
2012-03-22 11:32:50 +04:00
parent d56781b6f1
commit e8ba0bcd6d

View File

@@ -95,6 +95,8 @@ struct provider_replace
typedef std::list<provider_replace> prov_replace_map_t; typedef std::list<provider_replace> prov_replace_map_t;
typedef prov_replace_map_t::iterator prov_replace_map_iterator_t; typedef prov_replace_map_t::iterator prov_replace_map_iterator_t;
typedef std::set<int> service_number_map_t;
class CServiceManager class CServiceManager
{ {
private: private:
@@ -110,6 +112,11 @@ class CServiceManager
tallchans curchans; tallchans curchans;
tallchans nvodchannels; 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; fe_type_t frontendType;
satellite_map_t satellitePositions; satellite_map_t satellitePositions;
@@ -153,6 +160,7 @@ class CServiceManager
CZapitChannel* FindChannel(const t_channel_id channel_id, bool * current_is_nvod = NULL); CZapitChannel* FindChannel(const t_channel_id channel_id, bool * current_is_nvod = NULL);
CZapitChannel* FindChannelByName(std::string name); CZapitChannel* FindChannelByName(std::string name);
CZapitChannel* FindCurrentChannel(const t_channel_id channel_id); CZapitChannel* FindCurrentChannel(const t_channel_id channel_id);
CZapitChannel* FindChannel48(const t_channel_id channel_id);
std::string GetServiceName(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; } satellite_map_t & SatelliteList() { return satellitePositions; }
xmlDocPtr ScanXml(); xmlDocPtr ScanXml();
prov_replace_map_t replace_map;
bool LoadProviderMap(); bool LoadProviderMap();
bool ReplaceProviderName(std::string &name, t_transport_stream_id tsid, t_original_network_id onid); 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__ */ #endif /* __getservices_h__ */