2016-05-18 Fred Gleason <fredg@paravelsystems.com>

* Added support for the RDCatchd 'DE' command in
	'rdcatchd/rdcatchd.cpp', 'rdcatchd/rdcatchd.h',
	'rdcatchd/event_player.cpp', 'rdcatchd/event_player.h' and
	'rdcatchd/local_macros.cpp'.
	* Added a deck event indicator to RDCatch's deck monitor in
	'rdcatch/deckmon.cpp' and 'rdcatch/deckmon.h'.
This commit is contained in:
Fred Gleason
2016-05-18 17:03:25 -04:00
parent 5190a8282b
commit d9023b1430
13 changed files with 152 additions and 69 deletions

View File

@@ -263,6 +263,7 @@ void RDCatchConnect::DispatchCommand()
unsigned chan;
int status;
int id;
int number;
if(!strcmp(args[0],"PW")) { // Password Response
if(args[1][0]=='+') {
@@ -274,6 +275,16 @@ void RDCatchConnect::DispatchCommand()
}
}
if(!strcmp(args[0],"DE")) { // Deck Event
if(sscanf(args[1],"%d",&deck)!=1) {
return;
}
if(sscanf(args[2],"%d",&number)!=1) {
return;
}
emit deckEventSent(cc_serial,deck,number);
}
if(!strcmp(args[0],"RE")) { // Channel Status
if(sscanf(args[1],"%u",&chan)!=1){
return;

View File

@@ -72,6 +72,7 @@ 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: