libdrmconf  0.12.0
A library to program DMR radios.
radioddity_extensions.hh
1 #ifndef RADIODDITYEXTENSIONS_HH
2 #define RADIODDITYEXTENSIONS_HH
3 
4 #include "configobject.hh"
5 #include "interval.hh"
6 
7 
11 {
12  Q_OBJECT
13 
19  Q_PROPERTY(Function funcKey1Long READ funcKey1Long WRITE setFuncKey1Long)
23  Q_PROPERTY(Function funcKey2Long READ funcKey2Long WRITE setFuncKey2Long)
27  Q_PROPERTY(Function funcKey3Long READ funcKey3Long WRITE setFuncKey3Long)
28 
29 public:
31  enum class Function {
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,
36  CallSwell
37  };
38  Q_ENUM(Function)
39 
40 public:
41  explicit RadioddityButtonSettingsExtension(QObject *parent=nullptr);
42 
43  ConfigItem *clone() const;
44 
48  void setLongPressDuration(Interval interval);
49 
51  Function funcKey1Short() const;
53  void setFuncKey1Short(Function func);
55  Function funcKey1Long() const;
57  void setFuncKey1Long(Function func);
58 
60  Function funcKey2Short() const;
62  void setFuncKey2Short(Function func);
64  Function funcKey2Long() const;
66  void setFuncKey2Long(Function func);
67 
69  Function funcKey3Short() const;
71  void setFuncKey3Short(Function func);
73  Function funcKey3Long() const;
75  void setFuncKey3Long(Function func);
76 
77 protected:
92 };
93 
94 
97 {
98  Q_OBJECT
99 
101  Q_PROPERTY(bool lowBatteryWarn READ lowBatteryWarn WRITE enableLowBatteryWarn)
107  Q_PROPERTY(bool keyTone READ keyTone WRITE enableKeyTone)
109  Q_PROPERTY(bool keyToneVolume READ keyToneVolume WRITE setKeyToneVolume)
113  Q_PROPERTY(bool resetTone READ resetTone WRITE enableResetTone)
117  Q_PROPERTY(ARTSTone artsToneMode READ artsToneMode WRITE setARTSToneMode)
123  Q_PROPERTY(bool selftestTone READ selftestTone WRITE enableSelftestTone)
127  Q_PROPERTY(bool allTonesDisabled READ allTonesDisabled WRITE disableAllTones)
129  Q_PROPERTY(bool txExitTone READ txExitTone WRITE enableTXExitTone)
131  Q_PROPERTY(unsigned int fmMicGain READ fmMicGain WRITE setFMMicGain);
132 
133 public:
135  enum class ARTSTone {
136  Disabled = 0,
137  Once = 4,
138  Always = 8
139  };
140  Q_ENUM(ARTSTone)
141 
142 public:
144  explicit RadioddityToneSettingsExtension(QObject *parent=nullptr);
145 
146  ConfigItem *clone() const;
147 
149  bool lowBatteryWarn() const;
151  void enableLowBatteryWarn(bool enable);
157  unsigned int lowBatteryWarnVolume() const;
159  void setLowBatteryWarnVolume(unsigned int);
160 
162  bool keyTone() const;
164  void enableKeyTone(bool enable);
166  unsigned int keyToneVolume() const;
168  void setKeyToneVolume(unsigned int volume);
169 
171  Interval callAlertDuration() const;
173  void setCallAlertDuration(Interval sec);
174 
176  bool resetTone() const;
178  void enableResetTone(bool enable);
179 
181  bool unknownNumberTone() const;
183  void enableUnknownNumberTone(bool enable);
184 
186  ARTSTone artsToneMode() const;
188  void setARTSToneMode(ARTSTone mode);
189 
191  bool digitalTalkPermitTone() const;
193  void enableDigitalTalkPermitTone(bool enable);
195  bool analogTalkPermitTone() const;
197  void enableAnalogTalkPermitTone(bool enable);
198 
200  bool selftestTone() const;
202  void enableSelftestTone(bool enable);
203 
205  bool channelFreeIndicationTone() const;
207  void enableChannelFreeIndicationTone(bool enable);
208 
210  bool allTonesDisabled() const;
212  void disableAllTones(bool disable);
213 
215  bool txExitTone() const;
217  void enableTXExitTone(bool enable);
218 
220  unsigned int fmMicGain() const;
222  void setFMMicGain(unsigned int gain);
223 
224 protected:
230  unsigned int _lowBatteryWarnVolume;
252  bool _keyTone;
254  unsigned int _keyToneVolume;
256  unsigned int _fmMicGain;
257 };
258 
262 {
263  Q_OBJECT
264 
266  Q_PROPERTY(DisplayMode display READ display WRITE setDisplay)
268  Q_PROPERTY(QString bootPassword READ bootPassword WRITE setBootPassword)
270  Q_PROPERTY(QString progPassword READ progPassword WRITE setProgPassword)
271 
272 public:
274  enum class DisplayMode {
275  None, Text, Image
276  };
277  Q_ENUM(DisplayMode)
278 
279 public:
281  explicit RadioddityBootSettingsExtension(QObject *parent=nullptr);
282 
283  ConfigItem *clone() const;
284 
286  DisplayMode display() const;
288  void setDisplay(DisplayMode mode);
289 
291  const QString &bootPassword() const;
293  void setBootPassword(const QString &pwd);
294 
296  const QString &progPassword() const;
298  void setProgPassword(const QString &pwd);
299 
300 protected:
304  QString _bootPasswd;
306  QString _progPasswd;
307 };
308 
309 
313 {
314  Q_OBJECT
315 
317  Q_PROPERTY(MonitorType monitorType READ monitorType WRITE setMonitorType)
329  Q_PROPERTY(bool upChannelModeVFO READ upChannelModeVFO WRITE enableUpChannelModeVFO)
331  Q_PROPERTY(bool powerSaveMode READ powerSaveMode WRITE enablePowerSaveMode)
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.")
339  Q_PROPERTY(bool wakeupPreamble READ wakeupPreamble WRITE enableWakeupPreamble)
342  Q_CLASSINFO("wakeupPreambleDescription", "If enabled, the radio will transmit a short wake-up "
343  "preamble before each call.")
347  Q_PROPERTY(bool allLEDsDisabled READ allLEDsDisabled WRITE disableAllLEDs)
353  Q_PROPERTY(ScanMode scanMode READ scanMode WRITE setScanMode)
357  Q_PROPERTY(Interval repeaterSTE READ repeaterSTE WRITE setRepeaterSTE)
359  Q_PROPERTY(bool txInterrupt READ txInterrupt WRITE enableTXInterrupt)
361  Q_PROPERTY(Language language READ language WRITE setLanguage)
362 
366  Q_PROPERTY(RadioddityToneSettingsExtension *tone READ tone)
368  Q_PROPERTY(RadioddityBootSettingsExtension *boot READ boot)
369 
370 public:
372  enum class MonitorType {
373  Open = 0,
374  Silent = 1
375  };
376  Q_ENUM(MonitorType)
377 
378 
379  enum class ScanMode {
380  Time = 0,
381  Carrier = 1,
382  Search = 2
383  };
384  Q_ENUM(ScanMode)
385 
386 
387  enum class Language {
388  Chinese, English
389  };
390  Q_ENUM(Language)
391 
392 public:
394  Q_INVOKABLE explicit RadiodditySettingsExtension(QObject *parent=nullptr);
395 
396  ConfigItem *clone() const;
397 
399  MonitorType monitorType() const;
401  void setMonitorType(MonitorType type);
402 
411 
413  Interval groupCallHangTime() const;
420 
422  bool downChannelModeVFO() const;
424  void enableDownChannelModeVFO(bool enable);
426  bool upChannelModeVFO() const;
428  void enableUpChannelModeVFO(bool enable);
429 
431  bool powerSaveMode() const;
433  void enablePowerSaveMode(bool enable);
435  bool wakeupPreamble() const;
437  void enableWakeupPreamble(bool enable);
439  Interval preambleDuration() const;
441  void setPreambleDuration(Interval ms);
443  Interval powerSaveDelay() const;
445  void setPowerSaveDelay(Interval interv);
446 
448  bool allLEDsDisabled() const;
450  void disableAllLEDs(bool disable);
451 
453  bool quickKeyOverrideInhibited() const;
455  void inhibitQuickKeyOverride(bool inhibit);
456 
458  bool txOnActiveChannel() const;
460  void enableTXOnActiveChannel(bool enable);
461 
463  ScanMode scanMode() const;
465  void setScanMode(ScanMode mode);
466 
468  Interval repeaterEndDelay() const;
470  void setRepeaterEndDelay(Interval delay);
472  Interval repeaterSTE() const;
474  void setRepeaterSTE(Interval ste);
475 
477  bool txInterrupt() const;
479  void enableTXInterrupt(bool enable);
480 
482  Language language() const;
484  void setLanguage(Language lang);
485 
492 
493 protected:
538 };
539 
540 #endif // RADIODDITYEXTENSIONS_HH
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 button settings extension for all radioddity devices.
Definition: radioddity_extensions.hh:11
Function
Possible function key actions.
Definition: radioddity_extensions.hh:31
Function _funcKey2Long
The long-press action for the programmable function key 2 (SK2, P2).
Definition: radioddity_extensions.hh:87
Function _funcKey1Long
The long-press action for the programmable function key 1 (SK1, P1).
Definition: radioddity_extensions.hh:83
Function funcKey2Short
The short-press action for the programmable function key 2 (SK2, P2).
Definition: radioddity_extensions.hh:21
void setFuncKey3Long(Function func)
Sets the long-press function of the progammable function key 3 (TK).
Definition: radioddity_extensions.cc:99
void setFuncKey3Short(Function func)
Sets the short-press function of the progammable function key 3 (TK).
Definition: radioddity_extensions.cc:88
Function funcKey3Long
The long-press action for the programmable function key 3 (TK).
Definition: radioddity_extensions.hh:27
Function _funcKey3Short
The short-press action for the programmable function key 3 (TK).
Definition: radioddity_extensions.hh:89
Function _funcKey2Short
The short-press action for the programmable function key 2 (SK2, P2).
Definition: radioddity_extensions.hh:85
Function _funcKey1Short
The short-press action for the programmable function key 1 (SK1, P1).
Definition: radioddity_extensions.hh:81
Function funcKey1Short
The short-press action for the programmable function key 1 (SK1, P1).
Definition: radioddity_extensions.hh:17
Function funcKey1Long
The long-press action for the programmable function key 1 (SK1, P1).
Definition: radioddity_extensions.hh:19
Function _funcKey3Long
The long-press action for the programmable function key 3 (TK).
Definition: radioddity_extensions.hh:91
Function funcKey2Long
The long-press action for the programmable function key 2 (SK2, P2).
Definition: radioddity_extensions.hh:23
ConfigItem * clone() const
Clones this item.
Definition: radioddity_extensions.cc:16
Interval _longPressDuration
The long-press duration.
Definition: radioddity_extensions.hh:79
void setFuncKey2Long(Function func)
Sets the long-press function of the progammable function key 2 (SK2, P2).
Definition: radioddity_extensions.cc:76
void setFuncKey2Short(Function func)
Sets the short-press function of the progammable function key 2 (SK2, P2).
Definition: radioddity_extensions.cc:65
Function funcKey3Short
The short-press action for the programmable function key 3 (TK).
Definition: radioddity_extensions.hh:25
Interval longPressDuration
The long-press duration.
Definition: radioddity_extensions.hh:15
void setFuncKey1Long(Function func)
Sets the long-press function of the progammable function key 1 (SK1, P1).
Definition: radioddity_extensions.cc:53
void setLongPressDuration(Interval interval)
Sets the long-press duration, usually specified in ms.
Definition: radioddity_extensions.cc:30
void setFuncKey1Short(Function func)
Sets the short-press function of the progammable function key 1 (SK1, P1).
Definition: radioddity_extensions.cc:42
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
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