mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-11 17:13:47 +02:00
2015-07-14 Fred Gleason <fredg@paravelsystems.com>
* Instrumented 'HourSelect::updateTimeData()' in 'rdairplay/hourselector.cpp'. * Instrumented 'LogPlay::transTimerData()' in 'rdairplay/log_play.cpp'. * Instrumented 'LogPlay::graceTimerData()' in 'rdairplay/log_play.cpp'. * Instrumented 'RLMHost::timerData()' in 'rdairplay/rlmhost.cpp'.
This commit is contained in:
@@ -14806,3 +14806,11 @@
|
||||
in 'rdairplay/log_play.cpp'.
|
||||
* Instrumented the 'LogPlay::refresh()' method in
|
||||
'rdairplay/log_play.cpp'.
|
||||
2015-07-14 Fred Gleason <fredg@paravelsystems.com>
|
||||
* Instrumented 'HourSelect::updateTimeData()' in
|
||||
'rdairplay/hourselector.cpp'.
|
||||
* Instrumented 'LogPlay::transTimerData()' in
|
||||
'rdairplay/log_play.cpp'.
|
||||
* Instrumented 'LogPlay::graceTimerData()' in
|
||||
'rdairplay/log_play.cpp'.
|
||||
* Instrumented 'RLMHost::timerData()' in 'rdairplay/rlmhost.cpp'.
|
||||
|
@@ -134,10 +134,13 @@ void HourSelector::hourClicked(int hour)
|
||||
|
||||
void HourSelector::updateTimeData()
|
||||
{
|
||||
syslog(LOG_NOTICE,"HourSelector::pdateTimeData() starts...");
|
||||
|
||||
QTime now=QTime::currentTime();
|
||||
for(unsigned i=0;i<24;i++) {
|
||||
hour_button[i]->setPalette(palette());
|
||||
}
|
||||
hour_button[now.hour()]->setPalette(hour_active_palette);
|
||||
hour_update_timer->start(now.msecsTo(QTime(now.hour()+1,0,1)),true);
|
||||
syslog(LOG_NOTICE,"HourSelector::pdateTimeData() ends.");
|
||||
}
|
||||
|
@@ -1382,6 +1382,8 @@ void LogPlay::resync()
|
||||
|
||||
void LogPlay::transTimerData()
|
||||
{
|
||||
syslog(LOG_NOTICE,"LogPlay::transTimerData() starts...");
|
||||
|
||||
int lines[TRANSPORT_QUANTITY];
|
||||
RDLogLine *logline=NULL;
|
||||
int grace=0;
|
||||
@@ -1394,6 +1396,7 @@ void LogPlay::transTimerData()
|
||||
if(play_op_mode==RDAirPlayConf::Auto) {
|
||||
if(!GetNextPlayable(&play_trans_line,false)) {
|
||||
SetTransTimer();
|
||||
syslog(LOG_NOTICE,"LogPlay::transTimerData() ends [1].");
|
||||
return;
|
||||
}
|
||||
if((logline=logLine(play_trans_line))!=NULL) {
|
||||
@@ -1409,6 +1412,7 @@ void LogPlay::transTimerData()
|
||||
if(logline==NULL) {
|
||||
LogLine(RDConfig::LogNotice," invalid logline");
|
||||
SetTransTimer();
|
||||
syslog(LOG_NOTICE,"LogPlay::transTimerData() ends [2].");
|
||||
return;
|
||||
}
|
||||
switch(logline->graceTime()) {
|
||||
@@ -1441,20 +1445,24 @@ void LogPlay::transTimerData()
|
||||
}
|
||||
}
|
||||
SetTransTimer();
|
||||
syslog(LOG_NOTICE,"LogPlay::transTimerData() ends [3].");
|
||||
}
|
||||
|
||||
|
||||
void LogPlay::graceTimerData()
|
||||
{
|
||||
syslog(LOG_NOTICE,"LogPlay::graceTimerData() starts...");
|
||||
int lines[TRANSPORT_QUANTITY];
|
||||
int line=play_grace_line;
|
||||
|
||||
if(play_op_mode==RDAirPlayConf::Auto) {
|
||||
if(!GetNextPlayable(&line,false)) {
|
||||
SetTransTimer();
|
||||
syslog(LOG_NOTICE,"LogPlay::graceTimerData() ends [1].");
|
||||
return;
|
||||
}
|
||||
if(line!=play_grace_line) {
|
||||
syslog(LOG_NOTICE,"LogPlay::graceTimerData() ends [2].");
|
||||
return;
|
||||
}
|
||||
if((runningEvents(lines)==0)) {
|
||||
@@ -1472,6 +1480,7 @@ void LogPlay::graceTimerData()
|
||||
}
|
||||
}
|
||||
}
|
||||
syslog(LOG_NOTICE,"LogPlay::graceTimerData() ends [3].");
|
||||
}
|
||||
|
||||
|
||||
|
@@ -327,9 +327,11 @@ void RLMHost::saveMetadata(const struct rlm_pad *pad,RDLogLine *logline)
|
||||
|
||||
void RLMHost::timerData(int timernum)
|
||||
{
|
||||
syslog(LOG_NOTICE,"RLMHost::timerData(%d) starts...",timernum);
|
||||
if(plugin_timer_expired_sym!=NULL) {
|
||||
plugin_timer_expired_sym(this,timernum);
|
||||
}
|
||||
syslog(LOG_NOTICE,"RLMHost::timerData() ends.");
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user