mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-16 15:41:13 +02:00
2022-11-01 Fred Gleason <fredg@paravelsystems.com>
* Added a 'Reload Decks' operation to 'RDCatchEvent'. Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
@@ -292,6 +292,19 @@ bool RDCatchEvent::read(const QString &str)
|
||||
}
|
||||
break;
|
||||
|
||||
case RDCatchEvent::ReloadDecksOp:
|
||||
if(f0.size()!=4) {
|
||||
return false;
|
||||
}
|
||||
chan=f0.at(4).toInt(&ok);
|
||||
if(ok&&(chan<255)) {
|
||||
d_operation=op;
|
||||
d_host_name=f0.at(1);
|
||||
d_target_host_name=f0.at(3);
|
||||
return true;
|
||||
}
|
||||
break;
|
||||
|
||||
case RDCatchEvent::NullOp:
|
||||
case RDCatchEvent::LastOp:
|
||||
break;
|
||||
@@ -349,6 +362,10 @@ QString RDCatchEvent::write() const
|
||||
ret+=" "+d_target_host_name;
|
||||
ret+=QString::asprintf(" %u",d_deck_channel);
|
||||
break;
|
||||
|
||||
case RDCatchEvent::ReloadDecksOp:
|
||||
ret+=" "+d_target_host_name;
|
||||
break;
|
||||
}
|
||||
|
||||
return ret;
|
||||
@@ -387,21 +404,26 @@ QString RDCatchEvent::dump() const
|
||||
ret+=QString::asprintf("cut number: %d\n",d_cut_number);
|
||||
break;
|
||||
|
||||
case RDCatchEvent::ReloadDecksOp:
|
||||
ret+="operation: RDCatchEvent::ReloadDecksOp\n";
|
||||
ret+="target hostname: "+d_target_host_name+"\n";
|
||||
break;
|
||||
|
||||
case RDCatchEvent::StopDeckOp:
|
||||
ret+="operation: RDCatchEvent::DeckEventProcessedOp\n";
|
||||
ret+="operation: RDCatchEvent::StopDeckOp\n";
|
||||
ret+="target hostname: "+d_target_host_name+"\n";
|
||||
ret+=QString::asprintf("deck channel: %u\n",d_deck_channel);
|
||||
break;
|
||||
|
||||
case RDCatchEvent::SetInputMonitorOp:
|
||||
ret+="operation: RDCatchEvent::DeckEventProcessedOp\n";
|
||||
ret+="operation: RDCatchEvent::SetInputMonitorOp\n";
|
||||
ret+="target hostname: "+d_target_host_name+"\n";
|
||||
ret+=QString::asprintf("deck channel: %u\n",d_deck_channel);
|
||||
ret+=QString::asprintf("input monitor active: %u\n",d_input_monitor_active);
|
||||
break;
|
||||
|
||||
case RDCatchEvent::SetInputMonitorResponseOp:
|
||||
ret+="operation: RDCatchEvent::DeckEventProcessedOp\n";
|
||||
ret+="operation: RDCatchEvent::SetInputMonitorResponseOp\n";
|
||||
ret+=QString::asprintf("deck channel: %u\n",d_deck_channel);
|
||||
ret+=QString::asprintf("input monitor active: %u\n",d_input_monitor_active);
|
||||
break;
|
||||
|
@@ -32,7 +32,7 @@ class RDCatchEvent
|
||||
enum Operation {NullOp=0,DeckEventProcessedOp=1,
|
||||
DeckStatusQueryOp=2,DeckStatusResponseOp=3,
|
||||
StopDeckOp=4,SetInputMonitorOp=5,SetInputMonitorResponseOp=6,
|
||||
LastOp=7};
|
||||
ReloadDecksOp=7,LastOp=8};
|
||||
RDCatchEvent(RDDeck::Status status);
|
||||
RDCatchEvent();
|
||||
Operation operation() const;
|
||||
|
Reference in New Issue
Block a user