mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-16 15:41:13 +02:00
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:
@@ -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()
|
||||
{
|
||||
|
@@ -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);
|
||||
|
@@ -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) {
|
||||
|
Reference in New Issue
Block a user