mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-17 16:11:12 +02:00
2022-10-30 Fred Gleason <fredg@paravelsystems.com>
* Refactored rdcatch(1) to use the notification mechanism instead of the 'PurgeEvent' command. Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
@@ -216,19 +216,6 @@ bool RDCatchEvent::read(const QString &str)
|
||||
}
|
||||
}
|
||||
|
||||
if(ok&&(op==RDCatchEvent::PurgeEventOp)) {
|
||||
if(f0.size()!=4) {
|
||||
return false;
|
||||
}
|
||||
unsigned id=f0.at(3).toUInt(&ok);
|
||||
if(ok) {
|
||||
d_operation=op;
|
||||
d_host_name=f0.at(1);
|
||||
d_event_id=id;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -261,10 +248,6 @@ QString RDCatchEvent::write() const
|
||||
ret+=QString::asprintf(" %d",d_cut_number);
|
||||
break;
|
||||
|
||||
case RDCatchEvent::PurgeEventOp:
|
||||
ret+=QString::asprintf(" %u",d_event_id);
|
||||
break;
|
||||
|
||||
case RDCatchEvent::DeckStatusQueryOp:
|
||||
case RDCatchEvent::NullOp:
|
||||
case RDCatchEvent::LastOp:
|
||||
@@ -307,11 +290,6 @@ QString RDCatchEvent::dump() const
|
||||
ret+=QString::asprintf("cut number: %d\n",d_cut_number);
|
||||
break;
|
||||
|
||||
case RDCatchEvent::PurgeEventOp:
|
||||
ret+="operation: RDCatchEvent::PurgeEventOpOp\n";
|
||||
ret+=QString::asprintf("event id: %u\n",d_event_id);
|
||||
break;
|
||||
|
||||
case RDCatchEvent::NullOp:
|
||||
case RDCatchEvent::LastOp:
|
||||
break;
|
||||
|
Reference in New Issue
Block a user