PDA

View Full Version : Zapit Config Menu



nitr8
03-03-2008, 12:16 AM
All,

please find attached a copy of zapit config menu please test it out as i would like to check it into cvs.

dbox2 / linux • Thema anzeigen - Zapit Config Menu (http://tuxbox-forum.dreambox-fan.de/forum/viewtopic.php?f=2&t=47587&p=353006#p353006)

Set Start Channels + Set Save Auido Pids

--me

nj2006
03-03-2008, 12:31 AM
will test the build on this for you tommorrow m8. looks good.
its about time we had a zapit menu.....

nitr8
03-03-2008, 05:37 PM
all,

so mohousch @ tuxbox board suggested that it would be better to use the config file so we can reject the string function zapitconf_write() which i agree, so i here is an updated version.

zapit_config_menu-03-03-2008_16h30.diff (http://tuxbox-upload.wittnet.de/index.php?action=downloadfile&filename=zapit_config_menu-03-03-2008_16h30.diff&directory=Diffs)

--me

nitr8
06-03-2008, 10:46 AM
man, everyone was bitching about this and no one is even testing it?

--me

bobsylas
06-03-2008, 10:55 AM
man, everyone was bitching about this and no one is even testing it?
--me
Tried a couple of compiles with this but every time I make it visible in the personalise menu it defaults back to not visible so I thought must be doing something wrong & gave up :(

renwich
07-03-2008, 09:57 AM
Yep I'm having the same issue , will look at it later on today

pt-1
07-03-2008, 11:23 AM
Seife is not to happy with the present code anyway and Flasher posted some suggestions to make it "better" ONLY SNIPPETS !!


CMD_SAVE_STARTCHANNEL_TV = 82,
CMD_SAVE_STARTCHANNEL_RADIO = 83,
CMD_GET_STARTCHANNEL_TV = 84,
CMD_GET_STARTCHANNEL_RADIO = 85,

void setStartChannelTV(uint32_t TV);
int getStartChannelTV();
void setStartChannelRadio(uint32_t RADIO);
int getStartChannelRadio();

int CZapitClient::getStartChannelRadio()
{
send(CZapitMessages::CMD_GET_STARTCHANNEL_RADIO);

CZapitMessages::responseGeneralInteger response;
CBasicClient::receive_data((char* )&response, sizeof(response));

close_connection();
return response.number;
}

void CZapitClient::setStartChannelTV(uint32_t TV)
{
CZapitMessages::commandSaveTV msg;
msg.channel = TV ;
send(CZapitMessages::CMD_SAVE_STARTCHANNEL_TV, (char*)&msg, sizeof(msg));
close_connection();
}

case CZapitMessages::CMD_SAVE_STARTCHANNEL_TV:
{
CZapitMessages::commandSaveTV msgTV;
CBasicServer::receive_data(connfd, &msgTV, sizeof(msgTV));
saveStartChannelTV(msgTV.channel);
break;
}

nitr8
07-03-2008, 05:47 PM
Seife is not to happy with the present code anyway

that's juts because he does not like neutrino doing **** to the files, which is bollox in my opinion. he does it himslef too with other **** and its better than naught.

until seife or someone more clever can change zapit itself then this is FINE 100% safe, there is jack **** wrong with changing zapit.conf the way this does!

--me