mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 08:21:07 +02:00
zapit/bouquets: rename bAlwaysLocked => bLockCount
Origin commit data
------------------
Branch: ni/coolstream
Commit: 3a52a97fce
Author: martii <m4rtii@gmx.de>
Date: 2014-05-25 (Sun, 25 May 2014)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -147,7 +147,7 @@ int CRemoteControl::handleMsg(const neutrino_msg_t msg, neutrino_msg_data_t data
|
|||||||
is_video_started = true;
|
is_video_started = true;
|
||||||
if (channel) {
|
if (channel) {
|
||||||
current_channel_name = channel->getName();
|
current_channel_name = channel->getName();
|
||||||
if (!!channel->bAlwaysLocked != g_settings.parentallock_defaultlocked)
|
if (!!channel->bLockCount != g_settings.parentallock_defaultlocked)
|
||||||
stopvideo();
|
stopvideo();
|
||||||
}
|
}
|
||||||
CVFD::getInstance()->showServicename(current_channel_name); // UTF-8
|
CVFD::getInstance()->showServicename(current_channel_name); // UTF-8
|
||||||
|
@@ -433,11 +433,11 @@ void CBEBouquetWidget::deleteBouquet()
|
|||||||
if ((*Bouquets)[selected]->bLocked) {
|
if ((*Bouquets)[selected]->bLocked) {
|
||||||
ZapitChannelList *channels = &(*Bouquets)[selected]->tvChannels;
|
ZapitChannelList *channels = &(*Bouquets)[selected]->tvChannels;
|
||||||
for(unsigned int i = 0; i < channels->size(); i++)
|
for(unsigned int i = 0; i < channels->size(); i++)
|
||||||
((*channels)[i])->bAlwaysLocked--;
|
((*channels)[i])->bLockCount--;
|
||||||
|
|
||||||
channels = &(*Bouquets)[selected]->radioChannels;
|
channels = &(*Bouquets)[selected]->radioChannels;
|
||||||
for(unsigned int i = 0; i < channels->size(); i++)
|
for(unsigned int i = 0; i < channels->size(); i++)
|
||||||
((*channels)[i])->bAlwaysLocked--;
|
((*channels)[i])->bLockCount--;
|
||||||
}
|
}
|
||||||
|
|
||||||
g_bouquetManager->deleteBouquet(selected);
|
g_bouquetManager->deleteBouquet(selected);
|
||||||
@@ -531,15 +531,15 @@ void CBEBouquetWidget::switchLockBouquet()
|
|||||||
(*Bouquets)[selected]->bLocked = !(*Bouquets)[selected]->bLocked;
|
(*Bouquets)[selected]->bLocked = !(*Bouquets)[selected]->bLocked;
|
||||||
paint();
|
paint();
|
||||||
|
|
||||||
int add = (*Bouquets)[selected]->bLocked ? +1 : -1;
|
int add = (*Bouquets)[selected]->bLocked * 2 - 1;
|
||||||
|
|
||||||
ZapitChannelList *channels = &(*Bouquets)[selected]->tvChannels;
|
ZapitChannelList *channels = &(*Bouquets)[selected]->tvChannels;
|
||||||
for(unsigned int i = 0; i < channels->size(); i++)
|
for(unsigned int i = 0; i < channels->size(); i++)
|
||||||
((*channels)[i])->bAlwaysLocked += add;
|
((*channels)[i])->bLockCount += add;
|
||||||
|
|
||||||
channels = &(*Bouquets)[selected]->radioChannels;
|
channels = &(*Bouquets)[selected]->radioChannels;
|
||||||
for(unsigned int i = 0; i < channels->size(); i++)
|
for(unsigned int i = 0; i < channels->size(); i++)
|
||||||
((*channels)[i])->bAlwaysLocked += add;
|
((*channels)[i])->bLockCount += add;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string CBEBouquetWidget::inputName(const char * const defaultName, const neutrino_locale_t caption)
|
std::string CBEBouquetWidget::inputName(const char * const defaultName, const neutrino_locale_t caption)
|
||||||
|
@@ -352,7 +352,7 @@ int CChannelList::doChannelMenu(void)
|
|||||||
* a channel could be added/removed to/from an unlocked bouquet and so made
|
* a channel could be added/removed to/from an unlocked bouquet and so made
|
||||||
* accessible. */
|
* accessible. */
|
||||||
if (g_settings.parentallock_prompt == PARENTALLOCK_PROMPT_CHANGETOLOCKED &&
|
if (g_settings.parentallock_prompt == PARENTALLOCK_PROMPT_CHANGETOLOCKED &&
|
||||||
!!chanlist[selected]->bAlwaysLocked != g_settings.parentallock_defaultlocked)
|
!!chanlist[selected]->bLockCount != g_settings.parentallock_defaultlocked)
|
||||||
unlocked = (chanlist[selected]->last_unlocked_time + 3600 > time_monotonic());
|
unlocked = (chanlist[selected]->last_unlocked_time + 3600 > time_monotonic());
|
||||||
|
|
||||||
snprintf(cnt, sizeof(cnt), "%d", i);
|
snprintf(cnt, sizeof(cnt), "%d", i);
|
||||||
@@ -1298,7 +1298,7 @@ void CChannelList::zapToChannel(CZapitChannel *channel, bool force)
|
|||||||
}
|
}
|
||||||
|
|
||||||
selected_chid = channel->getChannelID();
|
selected_chid = channel->getChannelID();
|
||||||
g_RemoteControl->zapTo_ChannelID(selected_chid, channel->getName(), (!!channel->bAlwaysLocked == g_settings.parentallock_defaultlocked));
|
g_RemoteControl->zapTo_ChannelID(selected_chid, channel->getName(), (!!channel->bLockCount == g_settings.parentallock_defaultlocked));
|
||||||
CNeutrinoApp::getInstance()->channelList->adjustToChannelID(channel->getChannelID());
|
CNeutrinoApp::getInstance()->channelList->adjustToChannelID(channel->getChannelID());
|
||||||
}
|
}
|
||||||
if(new_zap_mode != 2 /* not active */) {
|
if(new_zap_mode != 2 /* not active */) {
|
||||||
|
@@ -178,7 +178,7 @@ class CZapitChannel
|
|||||||
} channel_flags_t;
|
} channel_flags_t;
|
||||||
casys_map_t camap;
|
casys_map_t camap;
|
||||||
|
|
||||||
unsigned int bAlwaysLocked;
|
unsigned int bLockCount;
|
||||||
|
|
||||||
int number;
|
int number;
|
||||||
CChannelEvent currentEvent,nextEvent;
|
CChannelEvent currentEvent,nextEvent;
|
||||||
|
@@ -111,7 +111,7 @@ void CZapitBouquet::addService(CZapitChannel* newChannel)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (bLocked)
|
if (bLocked)
|
||||||
newChannel->bAlwaysLocked++;
|
newChannel->bLockCount++;
|
||||||
}
|
}
|
||||||
|
|
||||||
void CZapitBouquet::removeService(CZapitChannel* oldChannel)
|
void CZapitBouquet::removeService(CZapitChannel* oldChannel)
|
||||||
@@ -131,7 +131,7 @@ void CZapitBouquet::removeService(CZapitChannel* oldChannel)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (bLocked)
|
if (bLocked)
|
||||||
oldChannel->bAlwaysLocked--;
|
oldChannel->bLockCount--;
|
||||||
(*channels).erase(remove(channels->begin(), channels->end(), oldChannel), channels->end());
|
(*channels).erase(remove(channels->begin(), channels->end(), oldChannel), channels->end());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -69,7 +69,7 @@ void CZapitChannel::Init()
|
|||||||
polarization = 0;
|
polarization = 0;
|
||||||
flags = 0;
|
flags = 0;
|
||||||
deltype = FE_QPSK;
|
deltype = FE_QPSK;
|
||||||
bAlwaysLocked = 0;
|
bLockCount = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
CZapitChannel::~CZapitChannel(void)
|
CZapitChannel::~CZapitChannel(void)
|
||||||
|
Reference in New Issue
Block a user