1 #ifndef RADIODDITYEXTENSIONS_HH
2 #define RADIODDITYEXTENSIONS_HH
4 #include "configobject.hh"
32 None, ToggleAllAlertTones, EmergencyOn, EmergencyOff, ToggleMonitor, OneTouch1,
33 OneTouch2, OneTouch3, OneTouch4, OneTouch5, OneTouch6, ToggleTalkaround, ToggleScan,
34 ToggleEncryption, ToggleVox, ZoneSelect, BatteryIndicator, ToggleLoneWorker, PhoneExit,
35 ToggleFlashLight, ToggleFMRadio, RadioEnable, RadioCheck, RadioDisable, PowerLevel, TBST,
332 Q_CLASSINFO(
"powerSaveModeDescription",
"Puts the radio into sleep-mode when idle.")
333 Q_CLASSINFO(
"powerSaveModeLongDescription",
334 "When enabled, the radio enters a sleep mode when idle. That is, when on receive and "
335 "there is no activity on the current channel. However, the radio may need some time "
336 "to wake up from this mode. Hence, the 'wakeupPreamble' need to be enabled by all "
337 "radios in the network to provide this wake-up delay.")
342 Q_CLASSINFO(
"wakeupPreambleDescription",
"If enabled, the radio will transmit a short wake-up "
343 "preamble before each call.")
Base class of all device/vendor specific confiuration extensions.
Definition: configobject.hh:246
Base class for all configuration objects (channels, zones, contacts, etc).
Definition: configobject.hh:40
Represents a time interval.
Definition: interval.hh:11
Represents the boot settings for Radioddity devices.
Definition: radioddity_extensions.hh:262
QString _bootPasswd
Holds the boot password, disabled if empty.
Definition: radioddity_extensions.hh:304
void setBootPassword(const QString &pwd)
Sets the boot password.
Definition: radioddity_extensions.cc:363
DisplayMode display
The boot display mode.
Definition: radioddity_extensions.hh:266
DisplayMode _displayMode
The boot display mode.
Definition: radioddity_extensions.hh:302
QString progPassword
The programming password, disabled if empty.
Definition: radioddity_extensions.hh:270
QString bootPassword
The programming password, disabled if empty.
Definition: radioddity_extensions.hh:268
void setProgPassword(const QString &pwd)
Sets the programming password.
Definition: radioddity_extensions.cc:375
DisplayMode
Possible boot display modes.
Definition: radioddity_extensions.hh:274
RadioddityBootSettingsExtension(QObject *parent=nullptr)
Default constructor.
Definition: radioddity_extensions.cc:329
ConfigItem * clone() const
Clones this item.
Definition: radioddity_extensions.cc:336
void setDisplay(DisplayMode mode)
Sets the boot display mode.
Definition: radioddity_extensions.cc:350
QString _progPasswd
Holds the programming password, disabled if empty.
Definition: radioddity_extensions.hh:306
Represents the general settings extension for Radioddity devices.
Definition: radioddity_extensions.hh:313
Interval _preambleDuration
Holds the preamble duration in ms.
Definition: radioddity_extensions.hh:513
Interval _repeaterSTE
Holds the repeater STE in seconds.
Definition: radioddity_extensions.hh:527
bool _txInterrupt
If true, TX interrupt is enabled.
Definition: radioddity_extensions.hh:529
RadioddityToneSettingsExtension * tone
The tone settings.
Definition: radioddity_extensions.hh:366
Interval repeaterSTE
The repeater STE in seconds.
Definition: radioddity_extensions.hh:357
void setPrivateCallHangTime(Interval ms)
Sets the private call hang time in ms.
Definition: radioddity_extensions.cc:467
Interval privateCallHangTime
The private-call hang-time in ms.
Definition: radioddity_extensions.hh:325
void setGroupCallHangTime(Interval ms)
Sets the group call hang time in ms.
Definition: radioddity_extensions.cc:455
bool txOnActiveChannel
If true, the radio will transmit on the active channel when double-wait is enabled.
Definition: radioddity_extensions.hh:351
bool allLEDsDisabled
If true, all LEDs are disabled.
Definition: radioddity_extensions.hh:347
Interval _loneWorkerResponseTime
Holds the lone-worker response time in minutes.
Definition: radioddity_extensions.hh:497
Interval repeaterEndDelay
The repeater end delay in seconds.
Definition: radioddity_extensions.hh:355
Interval _groupCallHangTime
The group-call hang-time in ms.
Definition: radioddity_extensions.hh:501
callInterval powerSaveDelay
The delay, before the idle radio enters power save mode (if enabled).
Definition: radioddity_extensions.hh:345
ScanMode scanMode
The scan mode.
Definition: radioddity_extensions.hh:353
void setLanguage(Language lang)
Sets the language.
Definition: radioddity_extensions.cc:635
void setScanMode(ScanMode mode)
Sets the scan mode.
Definition: radioddity_extensions.cc:587
Interval _repeaterEndDelay
Holds the repeater end delay in seconds.
Definition: radioddity_extensions.hh:525
bool _txOnActiveChannel
If true, the radio will transmit on the active channel when double-wait is enabled.
Definition: radioddity_extensions.hh:521
void enablePowerSaveMode(bool enable)
Enables the power save mode.
Definition: radioddity_extensions.cc:503
void enableTXInterrupt(bool enable)
Enables TX iterrupt.
Definition: radioddity_extensions.cc:623
Language _language
UI language.
Definition: radioddity_extensions.hh:531
void enableWakeupPreamble(bool enable)
Enables transmission of wakeup preamble.
Definition: radioddity_extensions.cc:515
ScanMode _scanMode
Holds the scan mode.
Definition: radioddity_extensions.hh:523
bool wakeupPreamble() const
Returns true if the wake-up preamble is sent.
Definition: radioddity_extensions.cc:511
void setLoneWorkerResponseTime(Interval min)
Sets the lone-worker response time in minutes.
Definition: radioddity_extensions.cc:431
RadioddityButtonSettingsExtension * buttons
The button settings.
Definition: radioddity_extensions.hh:364
bool powerSaveMode
If true, the power save mode is enabled.
Definition: radioddity_extensions.hh:331
Interval groupCallHangTime
The group-call hang-time in ms.
Definition: radioddity_extensions.hh:323
void enableUpChannelModeVFO(bool enable)
Enables/disables up-channel mode is VFO.
Definition: radioddity_extensions.cc:491
Language language
UI language.
Definition: radioddity_extensions.hh:361
bool _wakeupPreamble
If true, the wake-up preamble is sent.
Definition: radioddity_extensions.hh:511
void inhibitQuickKeyOverride(bool inhibit)
Inhibits quick-key override.
Definition: radioddity_extensions.cc:563
MonitorType monitorType
The monitor type.
Definition: radioddity_extensions.hh:317
Interval _loneWorkerReminderPeriod
Holds the lone-worker reminder period in seconds.
Definition: radioddity_extensions.hh:499
bool _downChannelModeVFO
If true down-channel mode is VFO.
Definition: radioddity_extensions.hh:505
MonitorType
Possible monitor types.
Definition: radioddity_extensions.hh:372
Interval _powerSaveDelay
Delay before an idle radio enters the power save mode.
Definition: radioddity_extensions.hh:515
void enableDownChannelModeVFO(bool enable)
Enables/disables down-channel mode is VFO.
Definition: radioddity_extensions.cc:479
void enableTXOnActiveChannel(bool enable)
Enables/disables transmission on active channel on double monitor.
Definition: radioddity_extensions.cc:575
bool downChannelModeVFO
If true the down-channel mode is VFO.
Definition: radioddity_extensions.hh:327
Interval _privateCallHangTime
The private-call hang-time in ms.
Definition: radioddity_extensions.hh:503
ConfigItem * clone() const
Clones this item.
Definition: radioddity_extensions.cc:405
void setPreambleDuration(Interval ms)
Sets the preamble duration in ms.
Definition: radioddity_extensions.cc:527
bool _upChannelModeVFO
If true the up-channel mode is VFO.
Definition: radioddity_extensions.hh:507
bool _powerSaveMode
If true, the power save mode is enabled.
Definition: radioddity_extensions.hh:509
void setLoneWorkerReminderPeriod(Interval sec)
Sets the lone-worker reminder period in seconds.
Definition: radioddity_extensions.cc:443
Interval loneWorkerReminderPeriod
The lonw-worker reminder period in seconds.
Definition: radioddity_extensions.hh:321
void disableAllLEDs(bool disable)
Disables/enables all LEDs.
Definition: radioddity_extensions.cc:551
RadioddityBootSettingsExtension * _bootSettings
Boot settings.
Definition: radioddity_extensions.hh:537
bool quickKeyOverrideInhibited
If true, the quick-key override is inhibited.
Definition: radioddity_extensions.hh:349
RadioddityToneSettingsExtension * _toneSettings
Tone settings.
Definition: radioddity_extensions.hh:535
Q_INVOKABLE RadiodditySettingsExtension(QObject *parent=nullptr)
Default constructor.
Definition: radioddity_extensions.cc:386
void setRepeaterEndDelay(Interval delay)
Sets the repeater end delay in seconds.
Definition: radioddity_extensions.cc:599
Interval loneWorkerResponseTime
The lone-worker response time in minutes.
Definition: radioddity_extensions.hh:319
Interval preambleDuration() const
Returns the preamble duration in ms.
Definition: radioddity_extensions.cc:523
bool txInterrupt
Returns true, if the TX interrupt is enabled.
Definition: radioddity_extensions.hh:359
MonitorType _monitorType
Holds the monitor type.
Definition: radioddity_extensions.hh:495
Language
Possible UI languages.
Definition: radioddity_extensions.hh:387
void setRepeaterSTE(Interval ste)
Sets the repeater STE in seconds.
Definition: radioddity_extensions.cc:611
RadioddityBootSettingsExtension * boot
The boot settings.
Definition: radioddity_extensions.hh:368
void setPowerSaveDelay(Interval interv)
Sets the delay before an idle radio enters power save mode.
Definition: radioddity_extensions.cc:539
RadioddityButtonSettingsExtension * _buttonSettings
Button settings.
Definition: radioddity_extensions.hh:533
ScanMode
Possible scan modes.
Definition: radioddity_extensions.hh:379
bool upChannelModeVFO
If true the up-channel mode is VFO.
Definition: radioddity_extensions.hh:329
void setMonitorType(MonitorType type)
Sets the monitor type.
Definition: radioddity_extensions.cc:419
bool _disableAllLEDs
If true, all LEDs are disabled.
Definition: radioddity_extensions.hh:517
bool _quickKeyOverrideInhibited
If true, the quick-key override is inhibited.
Definition: radioddity_extensions.hh:519
Tone settings for Radioddity devices.
Definition: radioddity_extensions.hh:97
void setLowBatteryWarnVolume(unsigned int)
Sets the volume of the low-battery warning tone [1,10].
Definition: radioddity_extensions.cc:159
bool resetTone
If true the reset tone is enabled.
Definition: radioddity_extensions.hh:113
bool _unknownNumberTone
If true, the unknown number tone is enabled.
Definition: radioddity_extensions.hh:236
Interval lowBatteryWarnInterval
The low-battery warn interval in seconds.
Definition: radioddity_extensions.hh:103
Interval callAlertDuration
The call-alert duration in seconds.
Definition: radioddity_extensions.hh:111
void enableSelftestTone(bool enable)
Enables/disables self-test tone.
Definition: radioddity_extensions.cc:244
void setFMMicGain(unsigned int gain)
Sets the FM mic gain [1,10].
Definition: radioddity_extensions.cc:317
bool allTonesDisabled
If true, all tones are disabled.
Definition: radioddity_extensions.hh:127
bool lowBatteryWarn
If true, the low battery warning is enabled.
Definition: radioddity_extensions.hh:101
void disableAllTones(bool disable)
Disables/enables all tones.
Definition: radioddity_extensions.cc:268
ARTSTone _artsToneMode
Holds the ARTS tone mode.
Definition: radioddity_extensions.hh:238
void setKeyToneVolume(unsigned int volume)
Sets the key-tone volume.
Definition: radioddity_extensions.cc:304
void setARTSToneMode(ARTSTone mode)
Sets the ARTS tone mode.
Definition: radioddity_extensions.cc:208
ConfigItem * clone() const
Clones this item.
Definition: radioddity_extensions.cc:121
void enableDigitalTalkPermitTone(bool enable)
Enables/disables digital channel talk permit tone.
Definition: radioddity_extensions.cc:220
bool _resetTone
If true the reset tone is enabled.
Definition: radioddity_extensions.hh:234
bool _digitalTalkPermitTone
If true, the talk permit tone is enabled for digital channels.
Definition: radioddity_extensions.hh:240
bool _lowBatteryWarn
If true, a low-battery charge is indicated by a warning.
Definition: radioddity_extensions.hh:226
Interval _callAlertDuration
Holds the call alert duration in seconds.
Definition: radioddity_extensions.hh:232
void enableUnknownNumberTone(bool enable)
Enables/disables reset tone.
Definition: radioddity_extensions.cc:196
void setLowBatteryWarnInterval(Interval sec)
Sets the low-battery warn interval in seconds.
Definition: radioddity_extensions.cc:147
bool keyTone
If true, the key tones are enabled.
Definition: radioddity_extensions.hh:107
bool selftestTone
If true, the self-test tone is enabled.
Definition: radioddity_extensions.hh:123
bool _disableAllTones
If true, all tones are disabled.
Definition: radioddity_extensions.hh:248
bool _txExitTone
If true, the TX exit tone is enabled.
Definition: radioddity_extensions.hh:250
void enableResetTone(bool enable)
Enables/disables reset tone.
Definition: radioddity_extensions.cc:184
ARTSTone artsToneMode
The ARTS tone mode.
Definition: radioddity_extensions.hh:117
unsigned int _fmMicGain
The FM mic gain.
Definition: radioddity_extensions.hh:256
void enableChannelFreeIndicationTone(bool enable)
Enables/disables the channel free indication tone.
Definition: radioddity_extensions.cc:256
void enableAnalogTalkPermitTone(bool enable)
Enables/disables analog channel talk permit tone.
Definition: radioddity_extensions.cc:232
bool _channelFreeIndicationTone
If true, the channel free indication tone is enabled.
Definition: radioddity_extensions.hh:246
bool channelFreeIndicationTone
If true, the frequency indication tone is enabled.
Definition: radioddity_extensions.hh:125
bool _selftestTone
If true, the self-test tone is enabled.
Definition: radioddity_extensions.hh:244
bool analogTalkPermitTone
If true, the talk permit tone is enabled for analog channels.
Definition: radioddity_extensions.hh:121
ARTSTone
Possible ARTS tone settings.
Definition: radioddity_extensions.hh:135
@ Always
ARTS tone always.
@ Disabled
ARTS tone is disabled.
bool _analogTalkPermitTone
If true, the talk permit tone is enabled for analog channels.
Definition: radioddity_extensions.hh:242
bool digitalTalkPermitTone
If true, the talk permit tone is enabled for digital channels.
Definition: radioddity_extensions.hh:119
unsigned int _lowBatteryWarnVolume
Holds the volume of the low-battery warning tone.
Definition: radioddity_extensions.hh:230
void enableKeyTone(bool enable)
Enables/disables key tones.
Definition: radioddity_extensions.cc:292
Interval _lowBatteryWarnInterval
Holds the low-battery warn interval in seconds.
Definition: radioddity_extensions.hh:228
bool txExitTone
If true, the TX exit tone is enabled.
Definition: radioddity_extensions.hh:129
void enableTXExitTone(bool enable)
Enables/disables TX exit tone.
Definition: radioddity_extensions.cc:280
void enableLowBatteryWarn(bool enable)
Enables/disables low-battery warning.
Definition: radioddity_extensions.cc:135
void setCallAlertDuration(Interval sec)
Sets the call-allert duration in seconds.
Definition: radioddity_extensions.cc:172
bool keyToneVolume
Returns the key-tone volume.
Definition: radioddity_extensions.hh:109
bool lowBatteryWarnVolume
Returns the low-battery warning volume [1,10].
Definition: radioddity_extensions.hh:105
unsigned int _keyToneVolume
Holds the key-tone volume [1,10].
Definition: radioddity_extensions.hh:254
bool unknownNumberTone
true, the unknown number tone is enabled.
Definition: radioddity_extensions.hh:115
bool _keyTone
If true, the key-tones are enabled.
Definition: radioddity_extensions.hh:252
unsigned int fmMicGain
Sets the FM mic gain (GD-73 only).
Definition: radioddity_extensions.hh:131
RadioddityToneSettingsExtension(QObject *parent=nullptr)
Default constructor.
Definition: radioddity_extensions.cc:110