mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 15:32:59 +02:00
Merge remote-tracking branch 'check/next-cc'
compiles, nothing else. Conflicts: configure.ac src/Makefile.am src/gui/Makefile.am src/gui/luainstance.cpp src/gui/luainstance.h src/gui/plugins.cpp src/gui/plugins.h src/gui/scan_setup.cpp src/gui/start_wizard.cpp src/gui/test_menu.cpp src/gui/user_menue.cpp src/gui/widget/hintboxext.cpp src/gui/widget/menue.cpp src/gui/widget/messagebox.cpp src/gui/widget/stringinput.cpp
This commit is contained in:
@@ -449,8 +449,10 @@ void CTimerdClient::getRecordingSafety(int &pre, int &post)
|
||||
|
||||
//-------------------------------------------------------------------------
|
||||
//void CTimerdClient::getWeekdaysFromStr(int *rep, const char* str)
|
||||
void CTimerdClient::getWeekdaysFromStr(CTimerd::CTimerEventRepeat *eventRepeat, const char* str)
|
||||
void CTimerdClient::getWeekdaysFromStr(CTimerd::CTimerEventRepeat *eventRepeat, std::string &str)
|
||||
{
|
||||
if (str.length() < 7)
|
||||
str.append(7 - str.length(), '-');
|
||||
int rep = (int) *eventRepeat;
|
||||
if(rep >= (int)CTimerd::TIMERREPEAT_WEEKDAYS)
|
||||
{
|
||||
@@ -469,21 +471,22 @@ void CTimerdClient::getWeekdaysFromStr(CTimerd::CTimerEventRepeat *eventRepeat,
|
||||
*eventRepeat = (CTimerd::CTimerEventRepeat) rep;
|
||||
}
|
||||
//-------------------------------------------------------------------------
|
||||
void CTimerdClient::setWeekdaysToStr(CTimerd::CTimerEventRepeat rep, char* str)
|
||||
void CTimerdClient::setWeekdaysToStr(CTimerd::CTimerEventRepeat rep, std::string &str)
|
||||
{
|
||||
if (str.length() < 7)
|
||||
str.append(7 - str.length(), '-');
|
||||
if(rep >= CTimerd::TIMERREPEAT_WEEKDAYS)
|
||||
{
|
||||
for(int n=0;n<7;n++)
|
||||
{
|
||||
if(rep & (1 << (n+9)))
|
||||
str[n]='X';
|
||||
str.at(n)='X';
|
||||
else
|
||||
str[n]='-';
|
||||
str.at(n)='-';
|
||||
}
|
||||
str[7]=0;
|
||||
}
|
||||
else
|
||||
strcpy(str,"-------");
|
||||
str = "-------";
|
||||
}
|
||||
//-------------------------------------------------------------------------
|
||||
void CTimerdClient::stopTimerEvent( int evId)
|
||||
|
Reference in New Issue
Block a user