2022-11-01 Fred Gleason <fredg@paravelsystems.com>

* Refactored rdcatchd(1) to eliminate the need for the 'Set Exit Code'
	catch command.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason
2022-11-01 16:19:33 -04:00
parent 8e7df3585d
commit 47b6105b4b
8 changed files with 102 additions and 410 deletions

View File

@@ -89,31 +89,6 @@ void RDCatchConnect::reloadDropboxes()
SendCommand("RX!");
}
/*
void RDCatchConnect::monitor(int deck,bool state)
{
SendCommand(QString::asprintf("MN %d %d!",deck,state));
}
void RDCatchConnect::toggleMonitor(int deck)
{
if(cc_monitor_state[deck-1]) {
SendCommand(QString::asprintf("MN %d 0!",deck));
}
else {
SendCommand(QString::asprintf("MN %d 1!",deck));
}
}
*/
void RDCatchConnect::setExitCode(int id,RDRecording::ExitCode code,
const QString &msg)
{
SendCommand(QString::asprintf("SC %d %d %s!",id,code,
msg.trimmed().toUtf8().constData()));
}
void RDCatchConnect::connectedData()
{

View File

@@ -48,16 +48,10 @@ class RDCatchConnect : public QObject
void enableMetering(bool state);
void reloadDropboxes();
public slots:
// void monitor(int deck,bool state);
// void toggleMonitor(int deck);
void setExitCode(int id,RDRecording::ExitCode code,const QString &msg);
signals:
void connected(int serial,bool state);
void statusChanged(int serial,unsigned channel,RDDeck::Status status,
int id,const QString &cutname);
// void monitorChanged(int serial,unsigned channel,bool state);
void meterLevel(int serial,int deck,int chan,int level);
void eventUpdated(int id);
void eventPurged(int id);

View File

@@ -186,7 +186,6 @@ bool RDCatchEvent::read(const QString &str)
//
// Operation-specific Fields
//
rda->syslog(LOG_NOTICE,"HERE0 op: %u",op);
switch(op) {
case RDCatchEvent::DeckEventProcessedOp:
if(f0.size()!=5) {