mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-16 15:41:13 +02:00
2022-10-31 Fred Gleason <fredg@paravelsystems.com>
* Removed vestigal support for the 'Reload Deck List' catch protocol command. * Removed vestigal support for the 'Reload Event List' catch protocol command. * Removed vestigal support for the 'Reload Event List' catch protocol command. * Removed vestigal support for the 'Reload Time Offset' catch protocol command. Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
@@ -43,16 +43,6 @@ RDCatchConnect::RDCatchConnect(int serial,QObject *parent)
|
||||
cc_socket=new QTcpSocket(this);
|
||||
connect(cc_socket,SIGNAL(connected()),this,SLOT(connectedData()));
|
||||
connect(cc_socket,SIGNAL(readyRead()),this,SLOT(readyData()));
|
||||
|
||||
//
|
||||
// Start the heartbeat timer
|
||||
//
|
||||
cc_heartbeat_timer=new QTimer(this);
|
||||
cc_heartbeat_timer->setSingleShot(true);
|
||||
connect(cc_heartbeat_timer,SIGNAL(timeout()),
|
||||
this,SLOT(heartbeatTimeoutData()));
|
||||
cc_heartbeat_timer->start(CC_HEARTBEAT_INTERVAL);
|
||||
cc_heartbeat_valid=true;
|
||||
}
|
||||
|
||||
|
||||
@@ -189,15 +179,6 @@ void RDCatchConnect::readyData()
|
||||
}
|
||||
|
||||
|
||||
void RDCatchConnect::heartbeatTimeoutData()
|
||||
{
|
||||
if(cc_heartbeat_valid) {
|
||||
emit heartbeatFailed(cc_serial);
|
||||
cc_heartbeat_valid=false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void RDCatchConnect::SendCommand(QString cmd)
|
||||
{
|
||||
// printf("SendCommand(%s)\n",(const char *)cmd);
|
||||
@@ -302,11 +283,12 @@ void RDCatchConnect::DispatchCommand()
|
||||
emit eventPurged(id);
|
||||
}
|
||||
*/
|
||||
/*
|
||||
if(!strcmp(args[0],"HB")) { // Heartbeat
|
||||
cc_heartbeat_timer->stop();
|
||||
cc_heartbeat_timer->start(CC_HEARTBEAT_INTERVAL);
|
||||
}
|
||||
|
||||
*/
|
||||
if(!strcmp(args[0],"MN")) { // Monitor State
|
||||
if(sscanf(args[1],"%d",&deck)!=1) {
|
||||
return;
|
||||
|
@@ -63,13 +63,10 @@ class RDCatchConnect : public QObject
|
||||
void meterLevel(int serial,int deck,int chan,int level);
|
||||
void eventUpdated(int id);
|
||||
void eventPurged(int id);
|
||||
// void deckEventSent(int serial,int chan,int number);
|
||||
void heartbeatFailed(int id);
|
||||
|
||||
private slots:
|
||||
void connectedData();
|
||||
void readyData();
|
||||
void heartbeatTimeoutData();
|
||||
|
||||
private:
|
||||
void SendCommand(QString cmd);
|
||||
@@ -86,7 +83,6 @@ class RDCatchConnect : public QObject
|
||||
int cc_record_id[MAX_DECKS];
|
||||
int cc_play_id[MAX_DECKS];
|
||||
int cc_serial;
|
||||
QTimer *cc_heartbeat_timer;
|
||||
bool cc_heartbeat_valid;
|
||||
bool cc_monitor_state[MAX_DECKS];
|
||||
};
|
||||
|
Reference in New Issue
Block a user