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

* Refactored rdcatch(1) to use the notification mechanism instead of
	the 'Input Monitor State' catch command.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason
2022-11-01 12:26:05 -04:00
parent eb060e37c9
commit 8e7df3585d
12 changed files with 315 additions and 154 deletions

View File

@@ -31,7 +31,8 @@ class RDCatchEvent
public:
enum Operation {NullOp=0,DeckEventProcessedOp=1,
DeckStatusQueryOp=2,DeckStatusResponseOp=3,
StopDeckOp=5,LastOp=6};
StopDeckOp=4,SetInputMonitorOp=5,SetInputMonitorResponseOp=6,
LastOp=7};
RDCatchEvent(RDDeck::Status status);
RDCatchEvent();
Operation operation() const;
@@ -52,7 +53,8 @@ class RDCatchEvent
void setEventNumber(int num);
RDDeck::Status deckStatus() const;
void setDeckStatus(RDDeck::Status status);
bool isValid() const;
bool inputMonitorActive() const;
void setInputMonitorActive(bool state);
bool read(const QString &str);
QString write() const;
QString dump() const;
@@ -67,6 +69,7 @@ class RDCatchEvent
int d_cut_number;
unsigned d_deck_channel;
int d_event_number;
bool d_input_monitor_active;
RDDeck::Status d_deck_status;
};