mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-16 15:41:13 +02:00
2022-10-30 Fred Gleason <fredg@paravelsystems.com>
* Reimplemented the 'PurgeEvent' command using 'RDCatchEvent'. Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
@@ -208,9 +208,11 @@ MainWidget::MainWidget(RDConfig *c,QWidget *parent)
|
||||
connect(catch_connect.back()->connector(),
|
||||
SIGNAL(eventUpdated(int)),
|
||||
this,SLOT(eventUpdatedData(int)));
|
||||
/*
|
||||
connect(catch_connect.back()->connector(),
|
||||
SIGNAL(eventPurged(int)),
|
||||
this,SLOT(eventPurgedData(int)));
|
||||
*/
|
||||
/*
|
||||
connect(catch_connect.back()->connector(),
|
||||
SIGNAL(deckEventSent(int,int,int)),
|
||||
@@ -799,6 +801,20 @@ void MainWidget::catchEventReceivedData(RDCatchEvent *evt)
|
||||
{
|
||||
printf("catchEventReceivedData()\n");
|
||||
printf("%s\n",evt->dump().toUtf8().constData());
|
||||
|
||||
switch(evt->operation()) {
|
||||
case RDCatchEvent::PurgeEventOp:
|
||||
catch_recordings_model->removeRecord(evt->eventId());
|
||||
printf("removed event %u\n",evt->eventId());
|
||||
break;
|
||||
|
||||
case RDCatchEvent::DeckEventProcessedOp:
|
||||
case RDCatchEvent::DeckStatusQueryOp:
|
||||
case RDCatchEvent::DeckStatusResponseOp:
|
||||
case RDCatchEvent::NullOp:
|
||||
case RDCatchEvent::LastOp:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1012,12 +1028,12 @@ void MainWidget::eventUpdatedData(int id)
|
||||
nextEventData();
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
void MainWidget::eventPurgedData(int id)
|
||||
{
|
||||
catch_recordings_model->removeRecord(id);
|
||||
}
|
||||
|
||||
*/
|
||||
|
||||
void MainWidget::heartbeatFailedData(int id)
|
||||
{
|
||||
|
@@ -103,7 +103,7 @@ class MainWidget : public RDMainWindow
|
||||
void clockData();
|
||||
void midnightData();
|
||||
void eventUpdatedData(int id);
|
||||
void eventPurgedData(int id);
|
||||
// void eventPurgedData(int id);
|
||||
void heartbeatFailedData(int id);
|
||||
void quitMainWidget();
|
||||
|
||||
|
Reference in New Issue
Block a user