mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-12-01 14:20:11 +01: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:
@@ -477,7 +477,6 @@ void MainObject::catchEventReceivedData(RDCatchEvent *evt)
|
||||
|
||||
case RDCatchEvent::DeckEventProcessedOp:
|
||||
case RDCatchEvent::DeckStatusResponseOp:
|
||||
case RDCatchEvent::PurgeEventOp:
|
||||
case RDCatchEvent::NullOp:
|
||||
case RDCatchEvent::LastOp:
|
||||
break;
|
||||
@@ -2447,11 +2446,11 @@ void MainObject::PurgeEvent(int event)
|
||||
catch_events[event].id());
|
||||
RDSqlQuery::apply(sql);
|
||||
|
||||
RDCatchEvent *evt=new RDCatchEvent();
|
||||
evt->setOperation(RDCatchEvent::PurgeEventOp);
|
||||
evt->setEventId(catch_events[event].id());
|
||||
rda->ripc()->sendCatchEvent(evt);
|
||||
delete evt;
|
||||
RDNotification *notify=new RDNotification(RDNotification::CatchEventType,
|
||||
RDNotification::DeleteAction,
|
||||
catch_events[event].id());
|
||||
rda->ripc()->sendNotification(*notify);
|
||||
delete notify;
|
||||
|
||||
switch(catch_events[event].type()) {
|
||||
case RDRecording::Recording:
|
||||
|
||||
Reference in New Issue
Block a user