diff options
| author | hibby <d@vehibberd.com> | 2026-10-06 21:24:40 +0100 |
|---|---|---|
| committer | hibby <d@vehibberd.com> | 2026-10-06 21:24:40 +0100 |
| commit | c25cbdf6fb6d946175f4335fab77bfea601b56db (patch) | |
| tree | 6f7a94b7b81f999e434f61b73d47e337dfd26bf2 /DecodeOperatingContext.hpp | |
| parent | 71f5689252c9f13e70e1c24856904475b2307809 (diff) | |
| parent | 0685fcada9f95fe90f70b387cd7d757da8209624 (diff) | |
Merge tag 'debian/3.2.0_rc1+dfsg-2' into debian/trixie-backportsdebian/trixie-backports
tagging wsjtx 3.2.0~rc1+dfsg-2
Diffstat (limited to 'DecodeOperatingContext.hpp')
| -rw-r--r-- | DecodeOperatingContext.hpp | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/DecodeOperatingContext.hpp b/DecodeOperatingContext.hpp new file mode 100644 index 00000000..39530b77 --- /dev/null +++ b/DecodeOperatingContext.hpp @@ -0,0 +1,68 @@ +#ifndef DECODE_OPERATING_CONTEXT_HPP +#define DECODE_OPERATING_CONTEXT_HPP + +#include <QDateTime> +#include <QString> + +#include "Radio.hpp" +#include "SpecialOperatingActivity.hpp" + +struct DecodeOperatingContext +{ + QString mode; + SpecialOperatingActivity specOp {SpecialOperatingActivity::NONE}; + Radio::Frequency periodFrequency {0}; + QString band; + QDateTime sequenceStart; + double trPeriod {0.0}; + int submode {0}; + bool diskData {false}; + bool multithreadFt8 {false}; + int ft8DecoderStart {0}; + int ft8ThreadCount {0}; + int decodeDepth {0}; + int ft8Cycles {0}; + int ft8Sensitivity {0}; + int ft8RxFrequencySensitivity {0}; + int decodeLowFrequency {0}; + int decodeHighFrequency {0}; + bool ft8WideDxCallSearch {false}; + bool hideFt8DuplicateMessages {false}; + bool ft8ApEnabled {false}; + bool superFox {false}; + QString myCall; + + bool hasSameDecodeIdentity (DecodeOperatingContext const& other) const + { + return mode == other.mode + && specOp == other.specOp + && periodFrequency == other.periodFrequency + && band == other.band + && trPeriod == other.trPeriod + && submode == other.submode + && diskData == other.diskData + && multithreadFt8 == other.multithreadFt8 + && ft8DecoderStart == other.ft8DecoderStart + && superFox == other.superFox + && myCall == other.myCall; + } + + bool hasSameFt8PendingIdentity (DecodeOperatingContext const& other) const + { + return "FT8" == mode + && "FT8" == other.mode + && hasSameDecodeIdentity (other) + && ft8ThreadCount == other.ft8ThreadCount + && decodeDepth == other.decodeDepth + && ft8Cycles == other.ft8Cycles + && ft8Sensitivity == other.ft8Sensitivity + && ft8RxFrequencySensitivity == other.ft8RxFrequencySensitivity + && decodeLowFrequency == other.decodeLowFrequency + && decodeHighFrequency == other.decodeHighFrequency + && ft8WideDxCallSearch == other.ft8WideDxCallSearch + && hideFt8DuplicateMessages == other.hideFt8DuplicateMessages + && ft8ApEnabled == other.ft8ApEnabled; + } +}; + +#endif |
