mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-31 09:21:18 +02:00
zapit/src/getservices.cpp: add params to ResetChannelNumbers
This commit is contained in:
@@ -152,7 +152,7 @@ class CServiceManager
|
||||
bool AddCurrentChannel(CZapitChannel * &channel);
|
||||
bool AddNVODChannel(CZapitChannel * &channel);
|
||||
|
||||
void ResetChannelNumbers();
|
||||
void ResetChannelNumbers(bool bouquets = true, bool numbers = false);
|
||||
void RemoveChannel(const t_channel_id channel_id);
|
||||
void RemoveAllChannels();
|
||||
void RemoveCurrentChannels();
|
||||
|
@@ -124,7 +124,7 @@ bool CServiceManager::AddNVODChannel(CZapitChannel * &channel)
|
||||
return ret.second;
|
||||
}
|
||||
|
||||
void CServiceManager::ResetChannelNumbers()
|
||||
void CServiceManager::ResetChannelNumbers(bool bouquets, bool numbers)
|
||||
{
|
||||
for (channel_map_iterator_t it = allchans.begin(); it != allchans.end(); ++it) {
|
||||
#if 0 /* force to get free numbers if there are any */
|
||||
@@ -136,6 +136,9 @@ void CServiceManager::ResetChannelNumbers()
|
||||
it->second.number = 0;
|
||||
}
|
||||
#endif
|
||||
if(numbers)
|
||||
it->second.number = 0;
|
||||
if(bouquets)
|
||||
it->second.has_bouquet = 0;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user