gui/channellist.cpp: disable virtual bouquet edit,

split handleMsg and pincode check code


Origin commit data
------------------
Branch: ni/coolstream
Commit: 14dbe516d3
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2015-11-03 (Tue, 03 Nov 2015)



------------------
This commit was generated by Migit
This commit is contained in:
[CST] Focus
2015-11-03 18:47:29 +03:00
parent 276b9f085d
commit 947e362ec9
2 changed files with 11 additions and 6 deletions

View File

@@ -315,7 +315,7 @@ int CChannelList::doChannelMenu(void)
CMenuSelectorTarget * selector = new CMenuSelectorTarget(&select);
bool empty = (*chanlist).empty();
bool allow_edit = (bouquet && bouquet->zapitBouquet && !bouquet->zapitBouquet->bOther);
bool allow_edit = (bouquet && bouquet->zapitBouquet && !bouquet->zapitBouquet->bOther && !bouquet->zapitBouquet->bVirtual);
int i = 0;
snprintf(cnt, sizeof(cnt), "%d", i);
@@ -988,13 +988,17 @@ bool CChannelList::showInfo(int number, int epgpos)
int CChannelList::handleMsg(const neutrino_msg_t msg, neutrino_msg_data_t data, bool pip)
{
bool startvideo = true;
if (msg != NeutrinoMessages::EVT_PROGRAMLOCKSTATUS) // right now the only message handled here.
return messages_return::unhandled;
checkLockStatus(data, pip);
return messages_return::handled;
}
bool CChannelList::checkLockStatus(neutrino_msg_data_t data, bool pip)
{
bool startvideo = true;
//printf("===> program-lock-status: %d zp: %d\n", data, zapProtection != NULL);
if (g_settings.parentallock_prompt == PARENTALLOCK_PROMPT_NEVER)
goto out;
@@ -1079,9 +1083,9 @@ out:
}
} else
g_RemoteControl->startvideo();
return true;
}
return messages_return::handled;
return false;
}
bool CChannelList::adjustToChannelID(const t_channel_id channel_id)

View File

@@ -242,5 +242,6 @@ public:
};
unsigned Size() { return (*chanlist).size(); }
ZapitChannelList &getChannels() { return channels; };
bool checkLockStatus(neutrino_msg_data_t data, bool pip = false);
};
#endif