zapit/src/bouquets.cpp: add flag for other bouquet

This commit is contained in:
[CST] Focus
2012-03-29 13:13:04 +04:00
parent 02dcd33cb3
commit e755e4cfac
2 changed files with 3 additions and 0 deletions

View File

@@ -34,6 +34,7 @@ class CZapitBouquet
bool bLocked;
bool bUser;
bool bFav;
bool bOther;
t_satellite_position satellitePosition;
ZapitChannelList radioChannels;

View File

@@ -433,6 +433,7 @@ void CBouquetManager::makeRemainingChannelsBouquet(void)
// TODO: use locales
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++) {
remainChannels->addService(*it);
@@ -457,6 +458,7 @@ CZapitBouquet* CBouquetManager::addBouquet(const std::string & name, bool ub, bo
CZapitBouquet* newBouquet = new CZapitBouquet(myfav ? "favorites" : name);
newBouquet->bUser = ub;
newBouquet->bFav = myfav;
newBouquet->bOther = false;
//printf("CBouquetManager::addBouquet: %s, user %s\n", name.c_str(), ub ? "YES" : "NO");
if(ub) {