mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 17:01:08 +02:00
make channel_id private, use getChannelID()
Origin commit data
------------------
Branch: ni/coolstream
Commit: c624505818
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2015-01-29 (Thu, 29 Jan 2015)
Origin message was:
------------------
make channel_id private, use getChannelID()
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -456,7 +456,7 @@ int CBEChannelWidget::exec(CMenuTarget* parent, const std::string & /*actionKey*
|
||||
if (state == beDefault)
|
||||
{
|
||||
if (selected < Channels->size()) /* Channels.size() might be 0 */
|
||||
g_Zapit->zapTo_serviceID((*Channels)[selected]->channel_id);
|
||||
g_Zapit->zapTo_serviceID((*Channels)[selected]->getChannelID());
|
||||
|
||||
} else if (state == beMoving) {
|
||||
finishMoveChannel();
|
||||
@@ -495,7 +495,7 @@ void CBEChannelWidget::deleteChannel()
|
||||
if (ShowMsg(LOCALE_FILEBROWSER_DELETE, (*Channels)[selected]->getName(), CMessageBox::mbrNo, CMessageBox::mbYes|CMessageBox::mbNo)!=CMessageBox::mbrYes)
|
||||
return;
|
||||
|
||||
g_bouquetManager->Bouquets[bouquet]->removeService((*Channels)[selected]->channel_id);
|
||||
g_bouquetManager->Bouquets[bouquet]->removeService((*Channels)[selected]->getChannelID());
|
||||
|
||||
Channels = mode == CZapitClient::MODE_TV ? &(g_bouquetManager->Bouquets[bouquet]->tvChannels) : &(g_bouquetManager->Bouquets[bouquet]->radioChannels);
|
||||
|
||||
|
@@ -92,7 +92,7 @@ bool CBEChannelSelectWidget::isChannelInBouquet( int index)
|
||||
{
|
||||
for (unsigned int i=0; i< bouquetChannels->size(); i++)
|
||||
{
|
||||
if ((*bouquetChannels)[i]->channel_id == Channels[index]->channel_id)
|
||||
if ((*bouquetChannels)[i]->getChannelID() == Channels[index]->getChannelID())
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
@@ -549,9 +549,9 @@ void EpgPlus::createChannelEntries (int selectedChannelEntryIndex)
|
||||
CZapitChannel * channel = (*this->channelList)[i];
|
||||
|
||||
ChannelEntry *channelEntry = new ChannelEntry (channel, i, this->frameBuffer, this->footer, this->bouquetList, this->channelsTableX + 2, yPosChannelEntry, this->channelsTableWidth);
|
||||
//printf("Going to get getEventsServiceKey for %llx\n", (channel->channel_id & 0xFFFFFFFFFFFFULL));
|
||||
//printf("Going to get getEventsServiceKey for %llx\n", (channel->getChannelID() & 0xFFFFFFFFFFFFULL));
|
||||
CChannelEventList channelEventList;
|
||||
CEitManager::getInstance()->getEventsServiceKey(channel->channel_id, channelEventList);
|
||||
CEitManager::getInstance()->getEventsServiceKey(channel->getChannelID(), channelEventList);
|
||||
//printf("channelEventList size %d\n", channelEventList.size());
|
||||
|
||||
int xPosEventEntry = this->eventsTableX;
|
||||
@@ -562,13 +562,13 @@ void EpgPlus::createChannelEntries (int selectedChannelEntryIndex)
|
||||
//for (CChannelEventList::const_iterator It = channelEventList.begin(); (It != channelEventList.end()) && (It->startTime < (this->startTime + this->duration)); ++It)
|
||||
for (CChannelEventList::const_iterator It = channelEventList.begin(); It != channelEventList.end(); ++It)
|
||||
{
|
||||
//if(0x2bc000b004b7ULL == (channel->channel_id & 0xFFFFFFFFFFFFULL)) printf("*** Check1 event %s event start %ld this start %ld\n", It->description.c_str(), It->startTime, (this->startTime + this->duration));
|
||||
//if(0x2bc000b004b7ULL == (channel->getChannelID() & 0xFFFFFFFFFFFFULL)) printf("*** Check1 event %s event start %ld this start %ld\n", It->description.c_str(), It->startTime, (this->startTime + this->duration));
|
||||
if (!(It->startTime < (this->startTime + this->duration)) )
|
||||
continue;
|
||||
if ((lastIt == channelEventList.end()) || (lastIt->startTime != It->startTime)) {
|
||||
int startTimeDiff = It->startTime - this->startTime;
|
||||
int endTimeDiff = this->startTime + time_t (this->duration) - It->startTime - time_t (It->duration);
|
||||
//if(0x2bc000b004b7ULL == (channel->channel_id & 0xFFFFFFFFFFFFULL)) printf("*** Check event %s\n", It->description.c_str());
|
||||
//if(0x2bc000b004b7ULL == (channel->getChannelID() & 0xFFFFFFFFFFFFULL)) printf("*** Check event %s\n", It->description.c_str());
|
||||
if ((startTimeDiff >= 0) && (endTimeDiff >= 0)) {
|
||||
// channel event fits completely in the visible part of time line
|
||||
startTimeDiff = 0;
|
||||
@@ -582,10 +582,10 @@ void EpgPlus::createChannelEntries (int selectedChannelEntryIndex)
|
||||
// channel event ends after visible part of the time line but starts in the visible part
|
||||
startTimeDiff = 0;
|
||||
} else if (startTimeDiff > 0) { // channel event starts and ends after visible part of the time line => break the loop
|
||||
//if(0x2bc000b004b7ULL == (channel->channel_id & 0xFFFFFFFFFFFFULL)) printf("*** break 1\n");
|
||||
//if(0x2bc000b004b7ULL == (channel->getChannelID() & 0xFFFFFFFFFFFFULL)) printf("*** break 1\n");
|
||||
break;
|
||||
} else { // channel event starts and ends after visible part of the time line => ignore the channel event
|
||||
//if(0x2bc000b004b7ULL == (channel->channel_id & 0xFFFFFFFFFFFFULL)) printf("*** continue 1 startTimeDiff %ld endTimeDiff %ld\n", startTimeDiff, endTimeDiff);
|
||||
//if(0x2bc000b004b7ULL == (channel->getChannelID() & 0xFFFFFFFFFFFFULL)) printf("*** continue 1 startTimeDiff %ld endTimeDiff %ld\n", startTimeDiff, endTimeDiff);
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -926,7 +926,7 @@ int EpgPlus::exec (CChannelList * pchannelList, int selectedChannelIndex, CBouqu
|
||||
}
|
||||
else if (msg == CRCInput::RC_ok) {
|
||||
if (selectedChannelEntry)
|
||||
CNeutrinoApp::getInstance()->channelList->zapTo_ChannelID(selectedChannelEntry->channel->channel_id);
|
||||
CNeutrinoApp::getInstance()->channelList->zapTo_ChannelID(selectedChannelEntry->channel->getChannelID());
|
||||
current_bouquet = bouquetList->getActiveBouquetNumber();
|
||||
}
|
||||
else if (CRCInput::isNumeric (msg)) {
|
||||
@@ -1109,7 +1109,7 @@ int EpgPlus::exec (CChannelList * pchannelList, int selectedChannelIndex, CBouqu
|
||||
this->hide();
|
||||
|
||||
time_t startTime2 = (*It)->channelEvent.startTime;
|
||||
res = g_EpgData->show (this->selectedChannelEntry->channel->channel_id, (*It)->channelEvent.eventID, &startTime2);
|
||||
res = g_EpgData->show (this->selectedChannelEntry->channel->getChannelID(), (*It)->channelEvent.eventID, &startTime2);
|
||||
|
||||
if (res == menu_return::RETURN_EXIT_ALL) {
|
||||
loop = false;
|
||||
@@ -1286,7 +1286,7 @@ int EpgPlus::MenuTargetAddReminder::exec (CMenuTarget * /*parent*/, const std::s
|
||||
&& (!(*It)->channelEvent.description.empty())
|
||||
) {
|
||||
if (g_Timerd->isTimerdAvailable()) {
|
||||
g_Timerd->addZaptoTimerEvent (this->epgPlus->selectedChannelEntry->channel->channel_id, (*It)->channelEvent.startTime - (g_settings.zapto_pre_time * 60), (*It)->channelEvent.startTime - ANNOUNCETIME - (g_settings.zapto_pre_time * 60), 0, (*It)->channelEvent.eventID, (*It)->channelEvent.startTime, 0);
|
||||
g_Timerd->addZaptoTimerEvent (this->epgPlus->selectedChannelEntry->channel->getChannelID(), (*It)->channelEvent.startTime - (g_settings.zapto_pre_time * 60), (*It)->channelEvent.startTime - ANNOUNCETIME - (g_settings.zapto_pre_time * 60), 0, (*It)->channelEvent.eventID, (*It)->channelEvent.startTime, 0);
|
||||
|
||||
ShowMsg (LOCALE_TIMER_EVENTTIMED_TITLE, g_Locale->getText (LOCALE_TIMER_EVENTTIMED_MSG)
|
||||
, CMessageBox::mbrBack, CMessageBox::mbBack, NEUTRINO_ICON_INFO); // UTF-8
|
||||
@@ -1309,7 +1309,7 @@ int EpgPlus::MenuTargetAddRecordTimer::exec (CMenuTarget * /*parent*/, const std
|
||||
) {
|
||||
if (g_Timerd->isTimerdAvailable()) {
|
||||
|
||||
g_Timerd->addRecordTimerEvent (this->epgPlus->selectedChannelEntry->channel->channel_id, (*It)->channelEvent.startTime, (*It)->channelEvent.startTime + (*It)->channelEvent.duration, (*It)->channelEvent.eventID, (*It)->channelEvent.startTime, (*It)->channelEvent.startTime - (ANNOUNCETIME + 120)
|
||||
g_Timerd->addRecordTimerEvent (this->epgPlus->selectedChannelEntry->channel->getChannelID(), (*It)->channelEvent.startTime, (*It)->channelEvent.startTime + (*It)->channelEvent.duration, (*It)->channelEvent.eventID, (*It)->channelEvent.startTime, (*It)->channelEvent.startTime - (ANNOUNCETIME + 120)
|
||||
, TIMERD_APIDS_CONF, true);
|
||||
ShowMsg (LOCALE_TIMER_EVENTRECORD_TITLE, g_Locale->getText (LOCALE_TIMER_EVENTRECORD_MSG)
|
||||
, CMessageBox::mbrBack, CMessageBox::mbBack, NEUTRINO_ICON_INFO); // UTF-8
|
||||
|
@@ -566,22 +566,22 @@ int CNeutrinoEventList::exec(const t_channel_id channel_id, const std::string& c
|
||||
unsigned int tmp_channel = 0;
|
||||
for(unsigned int channel = 0; channel < channel_nr; channel++)
|
||||
{
|
||||
channel_id_tmp = bouquetList->Bouquets[current_bouquet_id]->channelList->getChannelFromIndex(channel)->channel_id;
|
||||
channel_id_tmp = bouquetList->Bouquets[current_bouquet_id]->channelList->getChannelFromIndex(channel)->getChannelID();
|
||||
if(channel_id_tmp == channel_id){
|
||||
if ( msg==CRCInput::RC_right || msg==CRCInput::RC_forward ) {
|
||||
channel = (channel+1) %channel_nr;
|
||||
}else { //RC_rewind
|
||||
channel = (channel == 0) ? channel_nr -1 : channel - 1;
|
||||
}
|
||||
_channel_id = bouquetList->Bouquets[current_bouquet_id]->channelList->getChannelFromIndex(channel)->channel_id;
|
||||
_channel_id = bouquetList->Bouquets[current_bouquet_id]->channelList->getChannelFromIndex(channel)->getChannelID();
|
||||
current_channel_name = CServiceManager::getInstance()->GetServiceName(_channel_id);
|
||||
|
||||
tmp_channel = (channel == 0) ? channel_nr - 1 : channel - 1;
|
||||
channel_id_tmp = bouquetList->Bouquets[current_bouquet_id]->channelList->getChannelFromIndex(tmp_channel)->channel_id;
|
||||
channel_id_tmp = bouquetList->Bouquets[current_bouquet_id]->channelList->getChannelFromIndex(tmp_channel)->getChannelID();
|
||||
prev_channel_name = CServiceManager::getInstance()->GetServiceName(channel_id_tmp);
|
||||
|
||||
tmp_channel = (channel+1) %channel_nr;
|
||||
channel_id_tmp = bouquetList->Bouquets[current_bouquet_id]->channelList->getChannelFromIndex(tmp_channel)->channel_id;
|
||||
channel_id_tmp = bouquetList->Bouquets[current_bouquet_id]->channelList->getChannelFromIndex(tmp_channel)->getChannelID();
|
||||
next_channel_name = CServiceManager::getInstance()->GetServiceName(channel_id_tmp);
|
||||
break;
|
||||
}
|
||||
@@ -1077,7 +1077,7 @@ bool CNeutrinoEventList::findEvents(void)
|
||||
int channel_nr = bouquetList->Bouquets[m_search_bouquet_id]->channelList->getSize();
|
||||
for(int channel = 0; channel < channel_nr; channel++)
|
||||
{
|
||||
channel_id = bouquetList->Bouquets[m_search_bouquet_id]->channelList->getChannelFromIndex(channel)->channel_id;
|
||||
channel_id = bouquetList->Bouquets[m_search_bouquet_id]->channelList->getChannelFromIndex(channel)->getChannelID();
|
||||
CEitManager::getInstance()->getEventsServiceKey(channel_id, evtlist, m_search_epg_item,m_search_keyword);
|
||||
}
|
||||
}
|
||||
@@ -1089,7 +1089,7 @@ bool CNeutrinoEventList::findEvents(void)
|
||||
std::vector<t_channel_id> v;
|
||||
int channel_nr = CNeutrinoApp::getInstance ()->channelList->getSize();//unique channelList TV or Radio
|
||||
for(int channel = 0; channel < channel_nr; channel++){
|
||||
channel_id = CNeutrinoApp::getInstance ()->channelList->getChannelFromIndex(channel)->channel_id;
|
||||
channel_id = CNeutrinoApp::getInstance ()->channelList->getChannelFromIndex(channel)->getChannelID();
|
||||
v.push_back(channel_id);
|
||||
}
|
||||
|
||||
|
@@ -1194,7 +1194,7 @@ int CTimerList::newTimer()
|
||||
g_bouquetManager->Bouquets[i]->getTvChannels(channels);
|
||||
for (int j = 0; j < (int) channels.size(); j++) {
|
||||
char cChannelId[3+16+1+1];
|
||||
sprintf(cChannelId, "SC:" PRINTF_CHANNEL_ID_TYPE_NO_LEADING_ZEROS ",", channels[j]->channel_id);
|
||||
sprintf(cChannelId, "SC:" PRINTF_CHANNEL_ID_TYPE_NO_LEADING_ZEROS ",", channels[j]->getChannelID());
|
||||
mwtv->addItem(new CMenuForwarder(channels[j]->getName(), true, NULL, this, (std::string(cChannelId) + channels[j]->getName()).c_str(), CRCInput::RC_nokey, NULL, channels[j]->scrambled ? NEUTRINO_ICON_SCRAMBLED : (channels[j]->getUrl().empty() ? NULL : NEUTRINO_ICON_STREAMING)));
|
||||
|
||||
}
|
||||
@@ -1205,7 +1205,7 @@ int CTimerList::newTimer()
|
||||
g_bouquetManager->Bouquets[i]->getRadioChannels(channels);
|
||||
for (int j = 0; j < (int) channels.size(); j++) {
|
||||
char cChannelId[3+16+1+1];
|
||||
sprintf(cChannelId, "SC:" PRINTF_CHANNEL_ID_TYPE_NO_LEADING_ZEROS ",", channels[j]->channel_id);
|
||||
sprintf(cChannelId, "SC:" PRINTF_CHANNEL_ID_TYPE_NO_LEADING_ZEROS ",", channels[j]->getChannelID());
|
||||
mwradio->addItem(new CMenuForwarder(channels[j]->getName(), true, NULL, this, (std::string(cChannelId) + channels[j]->getName()).c_str(), CRCInput::RC_nokey, NULL, channels[j]->scrambled ? NEUTRINO_ICON_SCRAMBLED : (channels[j]->getUrl().empty() ? NULL : NEUTRINO_ICON_STREAMING)));
|
||||
}
|
||||
if (!channels.empty())
|
||||
|
@@ -176,7 +176,7 @@ int CSelectChannelWidget::InitZapitChannelHelper(CZapitClient::channelsMode mode
|
||||
for(int j = 0; j < (int) channels.size(); j++) {
|
||||
CZapitChannel * channel = channels[j];
|
||||
char cChannelId[60] = {0};
|
||||
snprintf(cChannelId, sizeof(cChannelId), "ZC%c:%d|%" PRIx64 "#", (mode==CZapitClient::MODE_TV)?'T':'R', channel->number, channel->channel_id);
|
||||
snprintf(cChannelId, sizeof(cChannelId), "ZC%c:%d|%" PRIx64 "#", (mode==CZapitClient::MODE_TV)?'T':'R', channel->number, channel->getChannelID());
|
||||
|
||||
CMenuForwarder * chan_item = new CMenuForwarder(channel->getName(), true, NULL, this,
|
||||
(std::string(cChannelId) + channel->getName()).c_str(), CRCInput::RC_nokey, NULL,
|
||||
|
Reference in New Issue
Block a user