mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-02 10:21:04 +02:00
zapit/src/bouquets.cpp: add flag for other bouquet
Origin commit data
------------------
Commit: e755e4cfac
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2012-03-29 (Thu, 29 Mar 2012)
This commit is contained in:
@@ -34,6 +34,7 @@ class CZapitBouquet
|
|||||||
bool bLocked;
|
bool bLocked;
|
||||||
bool bUser;
|
bool bUser;
|
||||||
bool bFav;
|
bool bFav;
|
||||||
|
bool bOther;
|
||||||
t_satellite_position satellitePosition;
|
t_satellite_position satellitePosition;
|
||||||
|
|
||||||
ZapitChannelList radioChannels;
|
ZapitChannelList radioChannels;
|
||||||
|
@@ -433,6 +433,7 @@ void CBouquetManager::makeRemainingChannelsBouquet(void)
|
|||||||
|
|
||||||
// TODO: use locales
|
// TODO: use locales
|
||||||
remainChannels = addBouquet((Bouquets.size() == 0) ? "All Channels" : "Other", false); // UTF-8 encoded
|
remainChannels = addBouquet((Bouquets.size() == 0) ? "All Channels" : "Other", false); // UTF-8 encoded
|
||||||
|
remainChannels->bOther = true;
|
||||||
|
|
||||||
for (ZapitChannelList::const_iterator it = unusedChannels.begin(); it != unusedChannels.end(); it++) {
|
for (ZapitChannelList::const_iterator it = unusedChannels.begin(); it != unusedChannels.end(); it++) {
|
||||||
remainChannels->addService(*it);
|
remainChannels->addService(*it);
|
||||||
@@ -457,6 +458,7 @@ CZapitBouquet* CBouquetManager::addBouquet(const std::string & name, bool ub, bo
|
|||||||
CZapitBouquet* newBouquet = new CZapitBouquet(myfav ? "favorites" : name);
|
CZapitBouquet* newBouquet = new CZapitBouquet(myfav ? "favorites" : name);
|
||||||
newBouquet->bUser = ub;
|
newBouquet->bUser = ub;
|
||||||
newBouquet->bFav = myfav;
|
newBouquet->bFav = myfav;
|
||||||
|
newBouquet->bOther = false;
|
||||||
|
|
||||||
//printf("CBouquetManager::addBouquet: %s, user %s\n", name.c_str(), ub ? "YES" : "NO");
|
//printf("CBouquetManager::addBouquet: %s, user %s\n", name.c_str(), ub ? "YES" : "NO");
|
||||||
if(ub) {
|
if(ub) {
|
||||||
|
Reference in New Issue
Block a user