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:
Fred Gleason
2022-10-31 09:41:46 -04:00
parent e34bf232d2
commit 05ec302fc4
6 changed files with 6 additions and 269 deletions

View File

@@ -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;

View File

@@ -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];
};