4#include "configobject.hh"
18 Q_CLASSINFO(
"description",
"Settings for MD-390, RT8, MD-UV390, RT3S, MD-2017, RT82, DM-1701, RT84.")
19 Q_CLASSINFO(
"longDescription",
"Device specific channel settings for TyT and Retevis devices."
20 "Including TyT MD-390, MD-UV390, MD-2017, Retevis RT8, RT3S and RT82"
21 " as well as Baofeng DM-1701.")
49 Q_CLASSINFO(
"dmrSquelchDescription",
"Sets the squelch level for DMR channels. "
50 "Only applicable for MD-UV390 and MD-2017")
55 Low=0, Medium=1, High=2
61 Tone259_2Hz=0, Tone55_2Hz=1, Off=3
67 Always = 0, AdmitCriterion=1, TXInterrupt=2
278 ButtonAction sideButton1Short()
const;
280 void setSideButton1Short(ButtonAction action);
282 ButtonAction sideButton1Long()
const;
284 void setSideButton1Long(ButtonAction action);
287 ButtonAction sideButton2Short()
const;
289 void setSideButton2Short(ButtonAction action);
291 ButtonAction sideButton2Long()
const;
293 void setSideButton2Long(ButtonAction action);
296 ButtonAction sideButton3Short()
const;
298 void setSideButton3Short(ButtonAction action);
300 ButtonAction sideButton3Long()
const;
302 void setSideButton3Long(ButtonAction action);
305 ButtonAction progButton1Short()
const;
307 void setProgButton1Short(ButtonAction action);
309 ButtonAction progButton1Long()
const;
311 void setProgButton1Long(ButtonAction action);
314 ButtonAction progButton2Short()
const;
316 void setProgButton2Short(ButtonAction action);
318 ButtonAction progButton2Long()
const;
320 void setProgButton2Long(ButtonAction action);
323 unsigned longPressDuration()
const;
325 void setLongPressDuration(
unsigned dur);
641 Q_CLASSINFO(
"powerSaveModeDescription",
"Puts the radio into sleep-mode when idle.")
642 Q_CLASSINFO(
"powerSaveModeLongDescription",
643 "When enabled, the radio enters a sleep mode when idle. That is, when on receive and "
644 "there is no activity on the current channel. However, the radio may need some time "
645 "to wake up from this mode. Hence, the 'wakeupPreamble' need to be enabled by all "
646 "radios in the network to provide this wake-up delay.")
649 Q_CLASSINFO(
"wakeupPreambleDescription",
"If enabled, the radio will transmit a short wake-up "
650 "preamble before each call.")
688 Q_CLASSINFO(
"description",
"Settings for MD-390, RT8, MD-UV390, RT3S, MD-2017, RT82.")
689 Q_CLASSINFO(
"longDescription",
"Device specific radio settings for TyT and Retevis devices."
690 "Including TyT MD-390, MD-UV390, MD-2017 as well as Retevis RT8, "
695 enum class MonitorType {
707 MonitorType monitorType()
const;
709 void setMonitorType(MonitorType type);
712 bool allLEDsDisabled()
const;
714 void disableAllLEDs(
bool disable);
717 bool passwordAndLock()
const;
719 void enablePasswordAndLock(
bool enable);
722 bool powerSaveMode()
const;
724 void enablePowerSaveMode(
bool enable);
727 bool wakeupPreamble()
const;
729 void enableWakeupPreamble(
bool enable);
732 bool channelMode()
const;
734 void enableChannelMode(
bool enable);
736 bool channelModeA()
const;
738 void enableChannelModeA(
bool enable);
740 bool channelModeB()
const;
742 void enableChannelModeB(
bool enable);
745 unsigned lowBatteryWarnInterval()
const;
747 void setLowBatteryWarnInterval(
unsigned sec);
750 bool callAlertToneContinuous()
const;
752 void enableCallAlertToneContinuous(
bool enable);
754 unsigned callAlertToneDuration()
const;
756 void setCallAlertToneDuration(
unsigned sec);
759 unsigned loneWorkerResponseTime()
const;
761 void setLoneWorkerResponseTime(
unsigned min);
764 unsigned loneWorkerReminderTime()
const;
766 void setLoneWorkerReminderTime(
unsigned sec);
769 unsigned digitalScanHangTime()
const;
771 void setDigitalScanHangTime(
unsigned ms);
774 unsigned analogScanHangTime()
const;
776 void setAnalogScanHangTime(
unsigned ms);
779 bool backlightAlwaysOn()
const;
781 void enableBacklightAlwaysOn(
bool enable);
783 unsigned backlightDuration()
const;
785 void setBacklightDuration(
unsigned sec);
788 bool keypadLockManual()
const;
790 void enableKeypadLockManual(
bool enable);
792 unsigned keypadLockTime()
const;
794 void setKeypadLockTime(
unsigned sec);
797 bool radioProgPasswordEnabled()
const;
799 void enableRadioProgPassword(
bool enable);
801 unsigned radioProgPassword()
const;
803 void setRadioProgPassword(
unsigned passwd);
806 const QString &pcProgPassword()
const;
808 void setPCProgPassword(
const QString &passwd);
811 unsigned channelHangTime()
const;
813 void setChannelHangTime(
unsigned ms);
ConfigExtension(QObject *parent=nullptr)
Hidden constructor.
Definition configobject.cc:1234
Base class for all configuration objects (channels, zones, contacts, etc).
Definition configobject.hh:35
ConfigItem(QObject *parent=nullptr)
Hidden constructor.
Definition configobject.cc:158
Some simple class implementing a [1-10] level setting.
Definition level.hh:15
void setRXRefFrequency(RefFrequency ref)
Sets the reference frequency setting for RX.
Definition tyt_extensions.cc:76
RefFrequency txRefFrequency() const
Returns the reference frequency setting for TX.
Definition tyt_extensions.cc:85
void enableDCDMLeader(bool enable)
Enables/disables this radio to be the leader on a DCDM simplex channel.
Definition tyt_extensions.cc:188
Level _dmrSquelch
The squelch level [0-10] for DMR channels.
Definition tyt_extensions.hh:161
bool dcdmLeader() const
Returns true if this radio is the leader for a DCDM simplex channel.
Definition tyt_extensions.cc:183
void enableEmergencyAlarmConfirmed(bool enable)
Enables/disables emergency-call confirmation.
Definition tyt_extensions.cc:48
bool _autoScan
Holds the auto-scan flag.
Definition tyt_extensions.hh:135
void setKillTone(KillTone tone)
Sets the kill-tone frequency.
Definition tyt_extensions.cc:146
KillTone killTone() const
Returns the kill tone frequency.
Definition tyt_extensions.cc:141
bool _displayPTTId
Holds the display PTT ID flag.
Definition tyt_extensions.hh:139
bool _tightSquelch
Holds the tightSquelch flag.
Definition tyt_extensions.hh:147
void enableDisplayPTTId(bool enable)
Enables/disables analog PTT ID display.
Definition tyt_extensions.cc:62
void setInCallCriterion(InCallCriterion crit)
Sets the in-call criterion.
Definition tyt_extensions.cc:160
bool emergencyAlarmConfirmed() const
Returns true if emergency calls are confirmed.
Definition tyt_extensions.cc:43
Q_INVOKABLE TyTChannelExtension(QObject *parent=nullptr)
Default constructor.
Definition tyt_extensions.cc:7
bool tightSquelch() const
Returns true if the tight squelch is enabled.
Definition tyt_extensions.cc:113
void enableAutoScan(bool enable)
Enables/disables the auto-scan feature.
Definition tyt_extensions.cc:34
RefFrequency
Possible reference frequency settings for RX & TX.
Definition tyt_extensions.hh:54
void enableTightSquelch(bool enable)
Enables/disables the tight squelch.
Definition tyt_extensions.cc:118
bool autoScan() const
Returns true if the auto scan feature is enabled.
Definition tyt_extensions.cc:29
bool _allowInterrupt
Holds the interrupt flag.
Definition tyt_extensions.hh:157
bool _dcdmLeader
Holds the DCDM-leader flag.
Definition tyt_extensions.hh:159
InCallCriterion
Possible in-call criterions.
Definition tyt_extensions.hh:66
ConfigItem * clone() const
Clones this item.
Definition tyt_extensions.cc:18
RefFrequency _rxRefFrequency
Holds the reference frequency setting for RX.
Definition tyt_extensions.hh:141
bool displayPTTId() const
Returns true if analog PTT IDs are shown.
Definition tyt_extensions.cc:57
Level dmrSquelch() const
Squelch level for DMR channels.
Definition tyt_extensions.cc:99
InCallCriterion _inCallCriterion
Holds the in-call criterion.
Definition tyt_extensions.hh:155
void enableAllowInterrupt(bool enable)
Enables/disables interrupt.
Definition tyt_extensions.cc:174
bool compressedUDPHeader() const
Returns true if the compressed UDP header is enabled.
Definition tyt_extensions.cc:127
RefFrequency _txRefFrequency
Holds the reference frequency setting for TX.
Definition tyt_extensions.hh:143
bool _emergencyAlarmConfirmed
Holds the emergency-call confirmation flag.
Definition tyt_extensions.hh:137
void setTXRefFrequency(RefFrequency ref)
Sets the reference frequency setting for TX.
Definition tyt_extensions.cc:90
KillTone _killTone
Holds the kill tone setting.
Definition tyt_extensions.hh:153
bool allowInterrupt() const
Returns true if interrupt is allowed.
Definition tyt_extensions.cc:169
void enableCompressedUDPHeader(bool enable)
Enables/disables the compressed UDP header.
Definition tyt_extensions.cc:132
KillTone
Possible kill-tone settings.
Definition tyt_extensions.hh:60
InCallCriterion inCallCriterion() const
Returns the in-call criterion.
Definition tyt_extensions.cc:155
bool _compressedUDPHeader
Holds the compressed UDP header flag.
Definition tyt_extensions.hh:149
RefFrequency rxRefFrequency() const
Returns the reference frequency setting for RX.
Definition tyt_extensions.cc:71
void setDMRSquelch(Level sq)
Sets the squelch-level for DMR channels.
Definition tyt_extensions.cc:104
TyTButtonSettings * buttonSettings
The button settings for TyT devices.
Definition tyt_extensions.hh:887
Q_INVOKABLE TyTConfigExtension(QObject *parent=nullptr)
Constructor.
Definition tyt_extensions.cc:1095
TyTButtonSettings * _buttonSettings
Owns the button settings extension.
Definition tyt_extensions.hh:909
ConfigItem * clone() const
Clones this item.
Definition tyt_extensions.cc:1103
TyTMenuSettings * menuSettings
The menu settings for TyT devices.
Definition tyt_extensions.hh:889
TyTMenuSettings * _menuSettings
Owns the menu settings extension.
Definition tyt_extensions.hh:911
unsigned _prioritySampleTime
The sample time for priority channels in ms.
Definition tyt_extensions.hh:199
Q_INVOKABLE TyTScanListExtension(QObject *parent=nullptr)
Default constructor.
Definition tyt_extensions.cc:199
ConfigItem * clone() const
Clones this item.
Definition tyt_extensions.cc:206
void setHoldTime(unsigned ms)
Sets the hold time im ms.
Definition tyt_extensions.cc:220
unsigned holdTime
Holds the hold time in ms.
Definition tyt_extensions.hh:172
unsigned _holdTime
The hold time in ms.
Definition tyt_extensions.hh:197
unsigned prioritySampleTime
Holds the sample time in ms for priority channels.
Definition tyt_extensions.hh:174
void setPrioritySampleTime(unsigned ms)
Sets the sample time for priority channels in ms.
Definition tyt_extensions.cc:232
Represents the TyT general settings extension.
Definition tyt_extensions.hh:630
void enableChannelMode(bool enable)
Enables/disables channel mode for the radio.
Definition tyt_extensions.cc:879
bool _privateCallMatch
If true, the private call IDs must match.
Definition tyt_extensions.hh:872
unsigned radioProgPassword
If radioProgPasswordEnabled is true, specifies the radio programming password.
Definition tyt_extensions.hh:682
unsigned analogScanHangTime
The analog channel scan hang time in ms.
Definition tyt_extensions.hh:670
bool _channelMode
If true, the radio is in channel (memory) mode.
Definition tyt_extensions.hh:834
unsigned _lowBatteryWarnInterval
Holds the low-battery warn interval.
Definition tyt_extensions.hh:842
unsigned channelHangTime
Holds the channel hang time in ms.
Definition tyt_extensions.hh:686
unsigned lowBatteryWarnInterval
The low battery warn interval in seconds.
Definition tyt_extensions.hh:658
unsigned _txPreambleDuration
Holds the TX preamble duration.
Definition tyt_extensions.hh:836
void setMonitorType(MonitorType type)
Sets the monitor type.
Definition tyt_extensions.cc:818
unsigned _groupCallHangTime
Holds the group-call hang time.
Definition tyt_extensions.hh:838
bool channelModeA
If true or channelMode is true, the VFO A is in channel mode.
Definition tyt_extensions.hh:654
bool _pcProgPasswordEnabled
If true, the programming password is enabled.
Definition tyt_extensions.hh:864
bool channelModeB
If true or channelMode is true, the VFO B is in channel mode.
Definition tyt_extensions.hh:656
void enableRadioProgPassword(bool enable)
Enables the radio programming password.
Definition tyt_extensions.cc:1042
MonitorType monitorType
The monitor type setting.
Definition tyt_extensions.hh:634
void setLowBatteryWarnInterval(unsigned sec)
Sets the low-battery warn interval in seconds.
Definition tyt_extensions.cc:913
void setRadioProgPassword(unsigned passwd)
Sets the radio programming password.
Definition tyt_extensions.cc:1053
bool _channelModeB
If true or channelMode is true, the VFO B is in channel (memory) mode.
Definition tyt_extensions.hh:832
void setCallAlertToneDuration(unsigned sec)
Sets the call alert-tone duration in seconds.
Definition tyt_extensions.cc:936
unsigned _backlightDuration
Holds the backlight duration.
Definition tyt_extensions.hh:858
void setPCProgPassword(const QString &passwd)
Sets PC programming password.
Definition tyt_extensions.cc:1065
bool allLEDsDisabled
If true, all LEDs are disabled.
Definition tyt_extensions.hh:636
bool radioProgPasswordEnabled
If true the radio programming password is enabled.
Definition tyt_extensions.hh:680
unsigned loneWorkerResponseTime
The lone-worker response time in minutes.
Definition tyt_extensions.hh:664
unsigned callAlertToneDuration
The call alert duration in seconds.
Definition tyt_extensions.hh:662
void enableKeypadLockManual(bool enable)
Sets the keypad lock to manual.
Definition tyt_extensions.cc:1019
bool powerSaveMode
If true, the power save mode is enabled.
Definition tyt_extensions.hh:640
unsigned _digitalScanHangTime
Holds the scan hang-time for digital channels.
Definition tyt_extensions.hh:852
bool backlightAlwaysOn
If true, the backlight is always on.
Definition tyt_extensions.hh:672
bool callAlertToneContinuous
If true, the call alert-tone is continuous.
Definition tyt_extensions.hh:660
QString _pcProgPassword
Holds the programming password.
Definition tyt_extensions.hh:866
unsigned digitalScanHangTime
The digital channel scan hang time in ms.
Definition tyt_extensions.hh:668
void disableAllLEDs(bool disable)
Disables all LEDs.
Definition tyt_extensions.cc:830
void enableWakeupPreamble(bool enable)
Enables transmission of wakeup preamble.
Definition tyt_extensions.cc:866
unsigned backlightDuration
If backlightAlwaysOn is false, specifies the backlight duration in seconds.
Definition tyt_extensions.hh:674
callbool channelMode
If true, the radio is in channel mode.
Definition tyt_extensions.hh:652
void enableChannelModeA(bool enable)
Enables/disables channel mode for the VFO A.
Definition tyt_extensions.cc:890
bool passwordAndLock
If true, the password and lock is enabled.
Definition tyt_extensions.hh:638
void setLoneWorkerReminderTime(unsigned sec)
Sets the lone-worker reminder timer in seconds.
Definition tyt_extensions.cc:960
unsigned _privateCallHangTime
Holds the private-call hang time.
Definition tyt_extensions.hh:840
bool _channelModeA
If true or channelMode is true, the VFO A is in channel (memory) mode.
Definition tyt_extensions.hh:830
unsigned keypadLockTime
If keypadLockManual is false, specifies the keypad lock time.
Definition tyt_extensions.hh:678
unsigned _loneWorkerReminderTime
Holds the lone-worker reminder time.
Definition tyt_extensions.hh:850
Q_INVOKABLE TyTSettingsExtension(QObject *parent=nullptr)
Possible monitor types.
Definition tyt_extensions.cc:784
void setKeypadLockTime(unsigned sec)
Sets the keypad lock time in seconds.
Definition tyt_extensions.cc:1030
bool _wakeupPreamble
If true, the wake-up preamble is sent.
Definition tyt_extensions.hh:828
bool _groupCallMatch
If true, the group call IDs must match.
Definition tyt_extensions.hh:874
void enablePowerSaveMode(bool enable)
Enables the power save mode.
Definition tyt_extensions.cc:854
bool _radioProgPasswordEnabled
If true, the radio programming password is enabled.
Definition tyt_extensions.hh:868
void enableChannelModeB(bool enable)
Enables/disables channel mode for the VFO B.
Definition tyt_extensions.cc:901
bool keypadLockManual
If true, the keypad is locked manually.
Definition tyt_extensions.hh:676
unsigned _analogScanHangTime
Holds the scan hang-time for analog channels.
Definition tyt_extensions.hh:854
unsigned _keypadLockTime
Holds the keypad lock time.
Definition tyt_extensions.hh:862
unsigned loneWorkerReminderTime
The lone-worker reminder time in seconds.
Definition tyt_extensions.hh:666
bool wakeupPreamble() const
Returns true if the wake-up preamble is sent.
Definition tyt_extensions.cc:862
void setChannelHangTime(unsigned ms)
Sets the channel hang time in ms.
Definition tyt_extensions.cc:1077
bool _powerSaveMode
If true, the power save mode is enabled.
Definition tyt_extensions.hh:826
bool _passwdAndLock
If true the password and lock is enabled.
Definition tyt_extensions.hh:824
void enableBacklightAlwaysOn(bool enable)
Enables the backlight continuously.
Definition tyt_extensions.cc:996
bool _keypadLockManual
If true, the keypad lock is manual.
Definition tyt_extensions.hh:860
unsigned _callAlertToneDuration
Holds the call alert-tone duration.
Definition tyt_extensions.hh:846
void setAnalogScanHangTime(unsigned ms)
Sets the scan hang-time for analog channels.
Definition tyt_extensions.cc:984
void setDigitalScanHangTime(unsigned ms)
Sets the scan hang-time for digital channels.
Definition tyt_extensions.cc:972
void enablePasswordAndLock(bool enable)
Enables the password and lock.
Definition tyt_extensions.cc:842
bool _callAlertToneContinuous
If true, the call alert-tone is continuous.
Definition tyt_extensions.hh:844
MonitorType _monitorType
Holds the monitor type.
Definition tyt_extensions.hh:820
void enableCallAlertToneContinuous(bool enable)
Sets the call alert-tone continuous.
Definition tyt_extensions.cc:925
bool _allLEDsDisabled
If true all LEDs are disabled.
Definition tyt_extensions.hh:822
unsigned _channelHangTime
Holds the channel hang time in ms.
Definition tyt_extensions.hh:876
void setBacklightDuration(unsigned sec)
Sets the backlight duration in seconds.
Definition tyt_extensions.cc:1007
bool _backlightAlwaysOn
If true, the backlight is always on.
Definition tyt_extensions.hh:856
unsigned _radioProgPassword
Holds the radio programming password.
Definition tyt_extensions.hh:870
unsigned _loneWorkerResponseTime
Holds the lone-worker response time.
Definition tyt_extensions.hh:848
QString pcProgPassword
Specifies the PC programming password.
Definition tyt_extensions.hh:684
void setLoneWorkerResponseTime(unsigned min)
Sets the lone-worker response time in minutes.
Definition tyt_extensions.cc:948