mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-29 16:31:05 +02:00
/control/timer?formalt=xml add some more repeat information
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-experimental@532 e54a6e83-5905-42d5-8d5c-058d10e6a962
Origin commit data
------------------
Branch: ni/coolstream
Commit: 777605caa1
Author: yjogol <yjogol2@online.de>
Date: 2010-03-31 (Wed, 31 Mar 2010)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -1479,14 +1479,15 @@ void CControlAPI::SendTimersXML(CyhookHandler *hh)
|
|||||||
std::string zRep = NeutrinoAPI->timerEventRepeat2Str(timer->eventRepeat);
|
std::string zRep = NeutrinoAPI->timerEventRepeat2Str(timer->eventRepeat);
|
||||||
std::string zRepCount;
|
std::string zRepCount;
|
||||||
if (timer->eventRepeat == CTimerd::TIMERREPEAT_ONCE)
|
if (timer->eventRepeat == CTimerd::TIMERREPEAT_ONCE)
|
||||||
zRepCount = "no";
|
zRepCount = "-";
|
||||||
else
|
else
|
||||||
zRepCount = (timer->repeatCount == 0) ? "∞" : string_printf("%dx",timer->repeatCount);
|
zRepCount = (timer->repeatCount == 0) ? "∞" : string_printf("%dx",timer->repeatCount);
|
||||||
hh->printf("\t\t\t<repeat_count>%s</repeat_count>\n",zRepCount.c_str());
|
hh->printf("\t\t\t<repeat_count>%s</repeat_count>\n",zRepCount.c_str());
|
||||||
hh->printf("\t\t\t<repeat>%d</repeat>\n",(int)timer->eventRepeat);
|
hh->printf("\t\t\t<repeat_number>%d</repeat_number>\n",(int)timer->eventRepeat);
|
||||||
|
hh->printf("\t\t\t<repeat>%s</repeat>\n",zRep.c_str());
|
||||||
char weekdays[8]={0};
|
char weekdays[8]={0};
|
||||||
NeutrinoAPI->Timerd->setWeekdaysToStr(timer->eventRepeat, weekdays);
|
NeutrinoAPI->Timerd->setWeekdaysToStr(timer->eventRepeat, weekdays);
|
||||||
hh->printf("\t\t\t<repeat_text>%s</repeat_text>\n",weekdays);
|
hh->printf("\t\t\t<repeat_weekdays>%s</repeat_weekdays>\n",weekdays);
|
||||||
|
|
||||||
// channel infos
|
// channel infos
|
||||||
std::string channel_name = NeutrinoAPI->GetServiceName(timer->channel_id);
|
std::string channel_name = NeutrinoAPI->GetServiceName(timer->channel_id);
|
||||||
|
Reference in New Issue
Block a user