mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-17 08:01:13 +02:00
2022-10-30 Fred Gleason <fredg@paravelsystems.com>
* Fixed a regression in rdcatch(1) that caused status indication to break for record events. Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
@@ -23574,3 +23574,6 @@
|
||||
'RDCatchEvent'.
|
||||
2022-10-30 Fred Gleason <fredg@paravelsystems.com>
|
||||
* Reimplemented the 'PurgeEvent' command using 'RDCatchEvent'.
|
||||
2022-10-30 Fred Gleason <fredg@paravelsystems.com>
|
||||
* Fixed a regression in rdcatch(1) that caused status indication
|
||||
to break for record events.
|
||||
|
@@ -205,9 +205,11 @@ MainWidget::MainWidget(RDConfig *c,QWidget *parent)
|
||||
connect(catch_connect.back()->connector(),
|
||||
SIGNAL(meterLevel(int,int,int,int)),
|
||||
this,SLOT(meterLevelData(int,int,int,int)));
|
||||
/*
|
||||
connect(catch_connect.back()->connector(),
|
||||
SIGNAL(eventUpdated(int)),
|
||||
this,SLOT(eventUpdatedData(int)));
|
||||
*/
|
||||
/*
|
||||
connect(catch_connect.back()->connector(),
|
||||
SIGNAL(eventPurged(int)),
|
||||
@@ -799,18 +801,25 @@ void MainWidget::deckEventSentData(int serial,int chan,int number)
|
||||
|
||||
void MainWidget::catchEventReceivedData(RDCatchEvent *evt)
|
||||
{
|
||||
printf("catchEventReceivedData()\n");
|
||||
printf("%s\n",evt->dump().toUtf8().constData());
|
||||
// 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::DeckStatusResponseOp:
|
||||
if(evt->eventId()>0) {
|
||||
if(!catch_recordings_model->refresh(evt->eventId())) {
|
||||
catch_recordings_model->addRecord(evt->eventId());
|
||||
}
|
||||
catch_recordings_model->setRecordStatus(evt->eventId(),evt->deckStatus());
|
||||
}
|
||||
break;
|
||||
|
||||
case RDCatchEvent::DeckEventProcessedOp:
|
||||
case RDCatchEvent::DeckStatusQueryOp:
|
||||
case RDCatchEvent::DeckStatusResponseOp:
|
||||
case RDCatchEvent::NullOp:
|
||||
case RDCatchEvent::LastOp:
|
||||
break;
|
||||
|
@@ -470,8 +470,17 @@ void MainObject::catchEventReceivedData(RDCatchEvent *evt)
|
||||
rda->syslog(LOG_NOTICE,"catchEventReceivedData(): %s",
|
||||
evt->dump().toUtf8().constData());
|
||||
|
||||
if(evt->operation()==RDCatchEvent::DeckStatusQueryOp) {
|
||||
switch(evt->operation()) {
|
||||
case RDCatchEvent::DeckStatusQueryOp:
|
||||
SendFullEventResponse(rda->station()->address());
|
||||
break;
|
||||
|
||||
case RDCatchEvent::DeckEventProcessedOp:
|
||||
case RDCatchEvent::DeckStatusResponseOp:
|
||||
case RDCatchEvent::PurgeEventOp:
|
||||
case RDCatchEvent::NullOp:
|
||||
case RDCatchEvent::LastOp:
|
||||
break;
|
||||
}
|
||||
/*
|
||||
chan=cmds.at(1).toInt(&ok);
|
||||
|
Reference in New Issue
Block a user