libdrmconf  0.11.3
A library to program DMR radios.
tyt_extensions.hh
1 #ifndef TYTEXTENSION_HH
2 #define TYTEXTENSION_HH
3 
4 #include "configobject.hh"
5 
13 {
14  Q_OBJECT
15 
16  Q_CLASSINFO("description", "Settings for MD-390, RT8, MD-UV390, RT3S, MD-2017, RT82, DM-1701, RT84.")
17  Q_CLASSINFO("longDescription", "Device specific channel settings for TyT and Retevis devices."
18  "Including TyT MD-390, MD-UV390, MD-2017, Retevis RT8, RT3S and RT82"
19  " as well as Baofeng DM-1701.")
20 
21 
22  Q_PROPERTY(bool loneWorker READ loneWorker WRITE enableLoneWorker)
24  Q_PROPERTY(bool autoScan READ autoScan WRITE enableAutoScan)
26  Q_PROPERTY(bool talkaround READ talkaround WRITE enableTalkaround)
34  Q_PROPERTY(bool displayPTTId READ displayPTTId WRITE enableDisplayPTTId)
39 
40 
41  Q_PROPERTY(bool tightSquelch READ tightSquelch WRITE enableTightSquelch)
45  Q_PROPERTY(bool reverseBurst READ reverseBurst WRITE enableReverseBurst)
46 
47 
48  Q_PROPERTY(KillTone killTone READ killTone WRITE setKillTone)
52  Q_PROPERTY(bool allowInterrupt READ allowInterrupt WRITE enableAllowInterrupt)
54  Q_PROPERTY(bool dcdm READ dcdm WRITE enableDCDM)
56  Q_PROPERTY(bool dcdmLeader READ dcdmLeader WRITE enableDCDMLeader)
58  Q_PROPERTY(unsigned int dmrSquelch READ dmrSquelch WRITE setDMRSquelch)
59  Q_CLASSINFO("dmrSquelchDescription", "Sets the squelch level for DMR channels. "
60  "Only applicable for MD-UV390 and MD-2017")
61 
62 public:
64  enum class RefFrequency {
65  Low=0, Medium=1, High=2
66  };
67  Q_ENUM(RefFrequency)
68 
69 
70  enum class KillTone {
71  Tone259_2Hz=0, Tone55_2Hz=1, Off=3
72  };
73  Q_ENUM(KillTone)
74 
75 
76  enum class InCallCriterion {
77  Always = 0, AdmitCriterion=1, TXInterrupt=2
78  };
79  Q_ENUM(InCallCriterion)
80 
81 public:
83  Q_INVOKABLE explicit TyTChannelExtension(QObject *parent=nullptr);
84 
85  ConfigItem *clone() const;
86 
88  bool loneWorker() const;
90  void enableLoneWorker(bool enable);
92  bool autoScan() const;
94  void enableAutoScan(bool enable);
96  bool talkaround() const;
98  void enableTalkaround(bool enable);
100  bool dataCallConfirmed() const;
102  void enableDataCallConfirmed(bool enable);
104  bool privateCallConfirmed() const;
106  void enablePrivateCallConfirmed(bool enable);
108  bool emergencyAlarmConfirmed() const;
110  void enableEmergencyAlarmConfirmed(bool enable);
112  bool displayPTTId() const;
114  void enableDisplayPTTId(bool enable);
123 
125  bool tightSquelch() const;
127  void enableTightSquelch(bool enable);
129  bool compressedUDPHeader() const;
131  void enableCompressedUDPHeader(bool enable);
133  bool reverseBurst() const;
135  void enableReverseBurst(bool enable);
136 
138  KillTone killTone() const;
140  void setKillTone(KillTone tone);
146  bool allowInterrupt() const;
148  void enableAllowInterrupt(bool enable);
150  bool dcdm() const;
152  void enableDCDM(bool enable);
154  bool dcdmLeader() const;
156  void enableDCDMLeader(bool enable);
158  unsigned int dmrSquelch() const;
160  void setDMRSquelch(unsigned int sq);
161 
162 public:
163  /*ConfigItem *allocateChild(QMetaProperty &prop, const YAML::Node &node,
164  const Context &ctx, const ErrorStack &err=ErrorStack());*/
165 
166 protected:
167  // Common properties
171  bool _autoScan;
186 
187  // MD-390 properties
194 
195  // MD-UV390, MD-2017 properties
203  bool _dcdm;
207  unsigned int _dmrSquelch;
208 };
209 
210 
214 {
215  Q_OBJECT
216 
218  Q_PROPERTY(unsigned holdTime READ holdTime WRITE setHoldTime)
220  Q_PROPERTY(unsigned prioritySampleTime READ prioritySampleTime WRITE setPrioritySampleTime)
221 
222 public:
224  Q_INVOKABLE explicit TyTScanListExtension(QObject *parent=nullptr);
225 
226  ConfigItem *clone() const;
227 
229  unsigned holdTime() const;
231  void setHoldTime(unsigned ms);
233  unsigned prioritySampleTime() const;
235  void setPrioritySampleTime(unsigned ms);
236 
237 public:
238  /*ConfigItem *allocateChild(QMetaProperty &prop, const YAML::Node &node,
239  const Context &ctx, const ErrorStack &err=ErrorStack());*/
240 
241 protected:
243  unsigned _holdTime;
246 };
247 
248 
252 {
253  Q_OBJECT
254 
275 
276 
277  Q_PROPERTY(unsigned longPressDuration READ longPressDuration WRITE setLongPressDuration)
278 
279 public:
282  Disabled = 0,
289  OneTouch1 = 7,
290  OneTouch2 = 8,
291  OneTouch3 = 9,
292  OneTouch4 = 10,
293  OneTouch5 = 11,
294  OneTouch6 = 12,
296  ScanToggle = 14,
299  VoxToggle = 23,
307  Tone1750Hz = 38,
309  RightKey = 48,
310  LeftKey = 49,
311  ZoneDecrement = 55
312  };
313  Q_ENUM(ButtonAction)
314 
315 public:
317  Q_INVOKABLE explicit TyTButtonSettings(QObject *parent=nullptr);
318 
319  ConfigItem *clone() const;
320 
324  void setSideButton1Short(ButtonAction action);
328  void setSideButton1Long(ButtonAction action);
329 
333  void setSideButton2Short(ButtonAction action);
337  void setSideButton2Long(ButtonAction action);
338 
342  void setSideButton3Short(ButtonAction action);
346  void setSideButton3Long(ButtonAction action);
347 
351  void setProgButton1Short(ButtonAction action);
355  void setProgButton1Long(ButtonAction action);
356 
360  void setProgButton2Short(ButtonAction action);
364  void setProgButton2Long(ButtonAction action);
365 
367  unsigned longPressDuration() const;
369  void setLongPressDuration(unsigned dur);
370 
371 public:
372  /*ConfigItem *allocateChild(QMetaProperty &prop, const YAML::Node &node,
373  const Context &ctx, const ErrorStack &err=ErrorStack());*/
374 
375 protected:
396 
399 };
400 
401 
405 {
406  Q_OBJECT
407 
409  Q_PROPERTY(bool hangtimeIsInfinite READ hangtimeIsInfinite WRITE setHangtimeInfinite)
411  Q_PROPERTY(unsigned hangTime READ hangTime WRITE setHangTime)
413  Q_PROPERTY(bool textMessage READ textMessage WRITE enableTextMessage)
415  Q_PROPERTY(bool callAlert READ callAlert WRITE enableCallAlert)
417  Q_PROPERTY(bool contactEditing READ contactEditing WRITE enableContactEditing)
419  Q_PROPERTY(bool manualDial READ manualDial WRITE enableManualDial)
421  Q_PROPERTY(bool remoteRadioCheck READ remoteRadioCheck WRITE enableRemoteRadioCheck)
423  Q_PROPERTY(bool remoteMonitor READ remoteMonitor WRITE enableRemoteMonitor)
429  Q_PROPERTY(bool scan READ scan WRITE enableScan)
431  Q_PROPERTY(bool scanListEditing READ scanListEditing WRITE enableScanListEditing)
433  Q_PROPERTY(bool callLogMissed READ callLogMissed WRITE enableCallLogMissed)
435  Q_PROPERTY(bool callLogAnswered READ callLogAnswered WRITE enableCallLogAnswered)
437  Q_PROPERTY(bool callLogOutgoing READ callLogOutgoing WRITE enableCallLogOutgoing)
439  Q_PROPERTY(bool talkaround READ talkaround WRITE enableTalkaround)
441  Q_PROPERTY(bool alertTone READ alertTone WRITE enableAlertTone)
443  Q_PROPERTY(bool power READ power WRITE enablePower)
445  Q_PROPERTY(bool backlight READ backlight WRITE enableBacklight)
447  Q_PROPERTY(bool bootScreen READ bootScreen WRITE enableBootScreen)
449  Q_PROPERTY(bool keypadLock READ keypadLock WRITE enableKeypadLock)
451  Q_PROPERTY(bool ledIndicator READ ledIndicator WRITE enableLEDIndicator)
453  Q_PROPERTY(bool squelch READ squelch WRITE enableSquelch)
455  Q_PROPERTY(bool vox READ vox WRITE enableVOX)
457  Q_PROPERTY(bool password READ password WRITE enablePassword)
459  Q_PROPERTY(bool displayMode READ displayMode WRITE enableDisplayMode)
461  Q_PROPERTY(bool radioProgramming READ radioProgramming WRITE enableRadioProgramming)
463  Q_PROPERTY(bool gpsInformation READ gpsInformation WRITE enableGPSInformation)
464 
465 public:
467  Q_INVOKABLE explicit TyTMenuSettings(QObject *parent=nullptr);
468 
469  ConfigItem *clone() const;
470 
472  bool hangtimeIsInfinite() const;
474  void setHangtimeInfinite(bool infinite);
475 
477  unsigned hangTime() const;
479  void setHangTime(unsigned sec);
480 
482  bool textMessage() const;
484  void enableTextMessage(bool enable);
485 
487  bool callAlert() const;
489  void enableCallAlert(bool enable);
490 
492  bool contactEditing() const;
494  void enableContactEditing(bool enable);
495 
497  bool manualDial() const;
499  void enableManualDial(bool enable);
500 
502  bool remoteRadioCheck() const;
504  void enableRemoteRadioCheck(bool enable);
505 
507  bool remoteMonitor() const;
509  void enableRemoteMonitor(bool enable);
510 
512  bool remoteRadioEnable() const;
514  void enableRemoteRadioEnable(bool enable);
515 
517  bool remoteRadioDisable() const;
519  void enableRemoteRadioDisable(bool enable);
520 
522  bool scan() const;
524  void enableScan(bool enable);
525 
527  bool scanListEditing() const;
529  void enableScanListEditing(bool enable);
530 
532  bool callLogMissed() const;
534  void enableCallLogMissed(bool enable);
535 
537  bool callLogAnswered() const;
539  void enableCallLogAnswered(bool enable);
540 
542  bool callLogOutgoing() const;
544  void enableCallLogOutgoing(bool enable);
545 
547  bool talkaround() const;
549  void enableTalkaround(bool enable);
550 
552  bool alertTone() const;
554  void enableAlertTone(bool enable);
555 
557  bool power() const;
559  void enablePower(bool enable);
560 
562  bool backlight() const;
564  void enableBacklight(bool enable);
565 
567  bool bootScreen() const;
569  void enableBootScreen(bool enable);
570 
572  bool keypadLock() const;
574  void enableKeypadLock(bool enable);
575 
577  bool ledIndicator() const;
579  void enableLEDIndicator(bool enable);
580 
582  bool squelch() const;
584  void enableSquelch(bool enable);
585 
587  bool vox() const;
589  void enableVOX(bool enable);
590 
592  bool password() const;
594  void enablePassword(bool enable);
595 
597  bool displayMode() const;
599  void enableDisplayMode(bool enable);
600 
602  bool radioProgramming() const;
604  void enableRadioProgramming(bool enable);
605 
607  bool gpsInformation() const;
609  void enableGPSInformation(bool enable);
610 
611 public:
612  /*ConfigItem *allocateChild(QMetaProperty &prop, const YAML::Node &node,
613  const Context &ctx, const ErrorStack &err=ErrorStack());*/
614 
615 protected:
619  unsigned _hangTime;
637  bool _scan;
651  bool _power;
661  bool _squelch;
663  bool _vox;
665  bool _password;
672 };
673 
674 
678 {
679  Q_OBJECT
680 
682  Q_PROPERTY(MonitorType monitorType READ monitorType WRITE setMonitorType)
684  Q_PROPERTY(bool allLEDsDisabled READ allLEDsDisabled WRITE disableAllLEDs)
690  Q_PROPERTY(bool passwordAndLock READ passwordAndLock WRITE enablePasswordAndLock)
694  Q_PROPERTY(bool allTonesDisabled READ allTonesDisabled WRITE disableAllTones)
696  Q_PROPERTY(bool powerSaveMode READ powerSaveMode WRITE enablePowerSaveMode)
697  Q_CLASSINFO("powerSaveModeDescription", "Puts the radio into sleep-mode when idle.")
698  Q_CLASSINFO("powerSaveModeLongDescription",
699  "When enabled, the radio enters a sleep mode when idle. That is, when on receive and "
700  "there is no activity on the current channel. However, the radio may need some time "
701  "to wake up from this mode. Hence, the 'wakeupPreamble' need to be enabled by all "
702  "radios in the network to provide this wake-up delay.")
704  Q_PROPERTY(bool wakeupPreamble READ wakeupPreamble WRITE enableWakeupPreamble)
705  Q_CLASSINFO("wakeupPreambleDescription", "If enabled, the radio will transmit a short wake-up "
706  "preamble before each call.")
708  Q_PROPERTY(bool bootPicture READ bootPicture WRITE enableBootPicture)
710  Q_PROPERTY(bool channelMode READ channelMode WRITE enableChannelMode)
712  Q_PROPERTY(bool channelModeA READ channelModeA WRITE enableChannelModeA)
714  Q_PROPERTY(bool channelModeB READ channelModeB WRITE enableChannelModeB)
716  Q_PROPERTY(unsigned txPreambleDuration READ txPreambleDuration WRITE setTXPreambleDuration)
718  Q_PROPERTY(unsigned groupCallHangTime READ groupCallHangTime WRITE setGroupCallHangTime)
720  Q_PROPERTY(unsigned privateCallHangTime READ privateCallHangTime WRITE setPrivateCallHangTime)
732  Q_PROPERTY(unsigned digitalScanHangTime READ digitalScanHangTime WRITE setDigitalScanHangTime)
734  Q_PROPERTY(unsigned analogScanHangTime READ analogScanHangTime WRITE setAnalogScanHangTime)
738  Q_PROPERTY(unsigned backlightDuration READ backlightDuration WRITE setBacklightDuration)
740  Q_PROPERTY(bool keypadLockManual READ keypadLockManual WRITE enableKeypadLockManual)
742  Q_PROPERTY(unsigned keypadLockTime READ keypadLockTime WRITE setKeypadLockTime)
746  Q_PROPERTY(unsigned powerOnPassword READ powerOnPassword WRITE setPowerOnPassword)
750  Q_PROPERTY(unsigned radioProgPassword READ radioProgPassword WRITE setRadioProgPassword)
752  Q_PROPERTY(QString pcProgPassword READ pcProgPassword WRITE setPCProgPassword)
754  Q_PROPERTY(bool privateCallMatch READ privateCallMatch WRITE enablePrivateCallMatch)
756  Q_PROPERTY(bool groupCallMatch READ groupCallMatch WRITE enableGroupCallMatch)
758  Q_PROPERTY(unsigned channelHangTime READ channelHangTime WRITE setChannelHangTime)
759 
760  Q_CLASSINFO("description", "Settings for MD-390, RT8, MD-UV390, RT3S, MD-2017, RT82.")
761  Q_CLASSINFO("longDescription", "Device specific radio settings for TyT and Retevis devices."
762  "Including TyT MD-390, MD-UV390, MD-2017 as well as Retevis RT8, "
763  "RT3S and RT82.")
764 
765 public:
767  enum class MonitorType {
768  Silent=0, Open=1
769  };
770  Q_ENUM(MonitorType)
771 
772 public:
774  Q_INVOKABLE explicit TyTSettingsExtension(QObject *parent=nullptr);
775 
776  ConfigItem *clone() const;
777 
779  MonitorType monitorType() const;
781  void setMonitorType(MonitorType type);
782 
784  bool allLEDsDisabled() const;
786  void disableAllLEDs(bool disable);
787 
789  bool talkPermitToneDigital() const;
791  void enableTalkPermitToneDigital(bool enable);
792 
794  bool talkPermitToneAnalog() const;
796  void enableTalkPermitToneAnalog(bool enable);
797 
799  bool passwordAndLock() const;
801  void enablePasswordAndLock(bool enable);
802 
804  bool channelFreeIndicationTone() const;
806  void enableChannelFreeIndicationTone(bool enable);
807 
809  bool allTonesDisabled() const;
811  void disableAllTones(bool disable);
812 
814  bool powerSaveMode() const;
816  void enablePowerSaveMode(bool enable);
817 
819  bool wakeupPreamble() const;
821  void enableWakeupPreamble(bool enable);
822 
824  bool bootPicture() const;
826  void enableBootPicture(bool enable);
827 
829  bool channelMode() const;
831  void enableChannelMode(bool enable);
833  bool channelModeA() const;
835  void enableChannelModeA(bool enable);
837  bool channelModeB() const;
839  void enableChannelModeB(bool enable);
840 
842  unsigned txPreambleDuration() const;
844  void setTXPreambleDuration(unsigned ms);
845 
847  unsigned groupCallHangTime() const;
849  void setGroupCallHangTime(unsigned ms);
850 
852  unsigned privateCallHangTime() const;
854  void setPrivateCallHangTime(unsigned ms);
855 
857  unsigned lowBatteryWarnInterval() const;
859  void setLowBatteryWarnInterval(unsigned sec);
860 
862  bool callAlertToneContinuous() const;
864  void enableCallAlertToneContinuous(bool enable);
866  unsigned callAlertToneDuration() const;
868  void setCallAlertToneDuration(unsigned sec);
869 
871  unsigned loneWorkerResponseTime() const;
873  void setLoneWorkerResponseTime(unsigned min);
874 
876  unsigned loneWorkerReminderTime() const;
878  void setLoneWorkerReminderTime(unsigned sec);
879 
881  unsigned digitalScanHangTime() const;
883  void setDigitalScanHangTime(unsigned ms);
884 
886  unsigned analogScanHangTime() const;
888  void setAnalogScanHangTime(unsigned ms);
889 
891  bool backlightAlwaysOn() const;
893  void enableBacklightAlwaysOn(bool enable);
895  unsigned backlightDuration() const;
897  void setBacklightDuration(unsigned sec);
898 
900  bool keypadLockManual() const;
902  void enableKeypadLockManual(bool enable);
904  unsigned keypadLockTime() const;
906  void setKeypadLockTime(unsigned sec);
907 
909  bool powerOnPasswordEnabled() const;
911  void enablePowerOnPassword(bool enable);
913  unsigned powerOnPassword() const;
915  void setPowerOnPassword(unsigned passwd);
916 
918  bool radioProgPasswordEnabled() const;
920  void enableRadioProgPassword(bool enable);
922  unsigned radioProgPassword() const;
924  void setRadioProgPassword(unsigned passwd);
925 
927  const QString &pcProgPassword() const;
929  void setPCProgPassword(const QString &passwd);
930 
932  bool privateCallMatch() const;
934  void enablePrivateCallMatch(bool enable);
936  bool groupCallMatch() const;
938  void enableGroupCallMatch(bool enable);
939 
941  unsigned channelHangTime() const;
943  void setChannelHangTime(unsigned ms);
944 
945 public:
946  /*ConfigItem *allocateChild(QMetaProperty &prop, const YAML::Node &node,
947  const Context &ctx, const ErrorStack &err=ErrorStack());*/
948 protected:
950  MonitorType _monitorType;
1019 };
1020 
1021 
1025 {
1026  Q_OBJECT
1027 
1031  Q_PROPERTY(TyTMenuSettings* menuSettings READ menuSettings)
1032 
1033 public:
1035  Q_INVOKABLE explicit TyTConfigExtension(QObject *parent=nullptr);
1036 
1037  ConfigItem *clone() const;
1038 
1041 
1043  TyTMenuSettings *menuSettings() const;
1044 
1045 public:
1046  /*ConfigItem *allocateChild(QMetaProperty &prop, const YAML::Node &node,
1047  const Context &ctx, const ErrorStack &err=ErrorStack());*/
1048 
1049 protected:
1054 };
1055 
1056 #endif // TYTBUTTONSETTINGSEXTENSION_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
QString longDescription() const
Returns the long description of this instance if set by a class info.
Definition: configobject.cc:958
const Object * as() const
Casts this object to the given type.
Definition: configobject.hh:153
QString description() const
Returns the description of this instance if set by a class info.
Definition: configobject.cc:950
Represents the TyT button settings extension.
Definition: tyt_extensions.hh:252
ButtonAction sideButton2Long
The action to perform on a long press on side button 2.
Definition: tyt_extensions.hh:262
unsigned _longPressDuration
Holds the long-press duration in ms.
Definition: tyt_extensions.hh:398
void setProgButton2Long(ButtonAction action)
Sets the action for the programmable button 2 long-press (Baofeng DM-1701).
Definition: tyt_extensions.cc:450
void setProgButton2Short(ButtonAction action)
Sets the action for the programmable button 2 short-press (Baofeng DM-1701).
Definition: tyt_extensions.cc:438
unsigned longPressDuration
The duration of a long press in msec.
Definition: tyt_extensions.hh:277
void setSideButton1Long(ButtonAction action)
Sets the action for the side button 1 long-press.
Definition: tyt_extensions.cc:354
ButtonAction _sideButton2Short
Holds the side button 2 short-press action.
Definition: tyt_extensions.hh:381
void setLongPressDuration(unsigned dur)
Sets the long-press duration in msec.
Definition: tyt_extensions.cc:462
void setSideButton3Short(ButtonAction action)
Sets the action for the side button 3 short-press (Baofeng DM-1701).
Definition: tyt_extensions.cc:390
ButtonAction _progButton1Long
Holds the prog button 1 long-press action.
Definition: tyt_extensions.hh:391
ButtonAction progButton2Long
The action to perform on a long press on programmable button 2.
Definition: tyt_extensions.hh:274
void setSideButton2Long(ButtonAction action)
Sets the action for the side button 2 long-press.
Definition: tyt_extensions.cc:378
void setSideButton2Short(ButtonAction action)
Sets the action for the side button 2 short-press.
Definition: tyt_extensions.cc:366
ButtonAction progButton1Long
The action to perform on a long press on programmable button 1.
Definition: tyt_extensions.hh:270
ButtonAction sideButton2Short
The action to perform on a short press on side button 2.
Definition: tyt_extensions.hh:260
ButtonAction _progButton1Short
Holds the prog button 1 short-press action.
Definition: tyt_extensions.hh:389
void setSideButton1Short(ButtonAction action)
Sets the action for the side button 1 short-press.
Definition: tyt_extensions.cc:342
ButtonAction sideButton3Long
The action to perform on a long press on side button 3.
Definition: tyt_extensions.hh:266
ButtonAction sideButton1Short
The action to perform on a short press on side button 1.
Definition: tyt_extensions.hh:256
ButtonAction _sideButton3Short
Holds the side button 3 short-press action.
Definition: tyt_extensions.hh:385
ButtonAction _progButton2Short
Holds the prog button 2 short-press action.
Definition: tyt_extensions.hh:393
ButtonAction _sideButton1Long
Holds the side button 1 long-press action.
Definition: tyt_extensions.hh:379
ConfigItem * clone() const
Clones this item.
Definition: tyt_extensions.cc:328
ButtonAction _sideButton1Short
Holds the side button 1 short-press action.
Definition: tyt_extensions.hh:377
void setProgButton1Long(ButtonAction action)
Sets the action for the programmable button 1 long-press (Baofeng DM-1701).
Definition: tyt_extensions.cc:426
void setSideButton3Long(ButtonAction action)
Sets the action for the side button 3 long-press (Baofeng DM-1701).
Definition: tyt_extensions.cc:402
ButtonAction sideButton1Long
The action to perform on a long press on side button 1.
Definition: tyt_extensions.hh:258
ButtonAction progButton2Short
The action to perform on a short press on programmable button 2.
Definition: tyt_extensions.hh:272
ButtonAction _progButton2Long
Holds the prog button 2 long-press action.
Definition: tyt_extensions.hh:395
ButtonAction sideButton3Short
The action to perform on a short press on side button 3.
Definition: tyt_extensions.hh:264
ButtonAction _sideButton2Long
Holds the side button 2 long-press action.
Definition: tyt_extensions.hh:383
void setProgButton1Short(ButtonAction action)
Sets the action for the programmable button 1 short-press (Baofeng DM-1701).
Definition: tyt_extensions.cc:414
ButtonAction
Possible actions for the side-buttons.
Definition: tyt_extensions.hh:281
@ Tone1750Hz
Send 1750Hz tone.
Definition: tyt_extensions.hh:307
@ PowerSelect
Select TX power.
Definition: tyt_extensions.hh:286
@ ScanToggle
Start/stop scan.
Definition: tyt_extensions.hh:296
@ OneTouch5
Perform one-touch action 5.
Definition: tyt_extensions.hh:293
@ LoneWorkerToggle
Toggle lone-worker.
Definition: tyt_extensions.hh:303
@ RightKey
Who knows?
Definition: tyt_extensions.hh:309
@ RepeaterTalkaroundToggle
Toggle repater mode / talkaround.
Definition: tyt_extensions.hh:295
@ VoxToggle
Enable/disable VOX.
Definition: tyt_extensions.hh:299
@ NuisanceDelete
Nuisance delete.
Definition: tyt_extensions.hh:288
@ MonitorToggle
Toggle monitor (promiscuous mode on digital channel, open squelch on analog channel).
Definition: tyt_extensions.hh:287
@ ZoneIncrement
Switch to next zone.
Definition: tyt_extensions.hh:300
@ OneTouch1
Perform one-touch action 1.
Definition: tyt_extensions.hh:289
@ ToggleAllAlertTones
Toggle all alert tones.
Definition: tyt_extensions.hh:283
@ OneTouch4
Perform one-touch action 4.
Definition: tyt_extensions.hh:292
@ RecordToggle
Enable/disable recording (dep. on firmware).
Definition: tyt_extensions.hh:304
@ EmergencyOn
Enable emergency.
Definition: tyt_extensions.hh:284
@ RecordPlayback
Start/stop playback.
Definition: tyt_extensions.hh:305
@ OneTouch2
Perform one-touch action 2.
Definition: tyt_extensions.hh:290
@ BatteryIndicator
Show battery charge.
Definition: tyt_extensions.hh:301
@ RecordDeleteAll
Delete all recordings.
Definition: tyt_extensions.hh:306
@ OneTouch6
Perform one-touch action 6.
Definition: tyt_extensions.hh:294
@ ZoneDecrement
Switch to previous zone.
Definition: tyt_extensions.hh:311
@ ManualDialForPrivate
Manual dial for private.
Definition: tyt_extensions.hh:302
@ PrivacyToggle
Enable/disable privacy system.
Definition: tyt_extensions.hh:298
@ SquelchToggle
Enable/disable squelch.
Definition: tyt_extensions.hh:297
@ EmergencyOff
Disable emergency.
Definition: tyt_extensions.hh:285
@ LeftKey
Who knows?
Definition: tyt_extensions.hh:310
@ OneTouch3
Perform one-touch action 3.
Definition: tyt_extensions.hh:291
@ Disabled
Disabled side-button action.
Definition: tyt_extensions.hh:282
@ SwitchUpDown
Switch Channel A/B.
Definition: tyt_extensions.hh:308
Q_INVOKABLE TyTButtonSettings(QObject *parent=nullptr)
Constructor.
Definition: tyt_extensions.cc:311
ButtonAction _sideButton3Long
Holds the side button 3 long-press action.
Definition: tyt_extensions.hh:387
ButtonAction progButton1Short
The action to perform on a short press on programmable button 1.
Definition: tyt_extensions.hh:268
Represents the TyT channel extension.
Definition: tyt_extensions.hh:13
void setRXRefFrequency(RefFrequency ref)
Sets the reference frequency setting for RX.
Definition: tyt_extensions.cc:118
RefFrequency txRefFrequency() const
Returns the reference frequency setting for TX.
Definition: tyt_extensions.cc:126
void enableDataCallConfirmed(bool enable)
Enables/disables data-call confirmation.
Definition: tyt_extensions.cc:70
void enableDCDMLeader(bool enable)
Enables/disables this radio to be the leader on a DCDM simplex channel.
Definition: tyt_extensions.cc:238
bool dcdm() const
Returns true if the DCDM mode is enabled.
Definition: tyt_extensions.cc:222
bool dcdmLeader() const
Returns true if this radio is the leader for a DCDM simplex channel.
Definition: tyt_extensions.cc:234
void setDMRSquelch(unsigned int sq)
Sets the squelch-level for DMR channels.
Definition: tyt_extensions.cc:142
void enableEmergencyAlarmConfirmed(bool enable)
Enables/disables emergency-call confirmation.
Definition: tyt_extensions.cc:94
bool reverseBurst() const
Returns true if the reverse burst is enabled.
Definition: tyt_extensions.cc:174
void enableTalkaround(bool enable)
Enables/disables the talk-around feature.
Definition: tyt_extensions.cc:58
bool _autoScan
Holds the auto-scan flag.
Definition: tyt_extensions.hh:171
void setKillTone(KillTone tone)
Sets the kill-tone frequency.
Definition: tyt_extensions.cc:190
KillTone killTone() const
Returns the kill tone frequency.
Definition: tyt_extensions.cc:186
bool privateCallConfirmed() const
Returns true if private call confirmation is enabled.
Definition: tyt_extensions.cc:78
bool _displayPTTId
Holds the display PTT ID flag.
Definition: tyt_extensions.hh:181
unsigned int dmrSquelch() const
Squelch level for DMR channels.
Definition: tyt_extensions.cc:138
bool _tightSquelch
Holds the tightSquelch flag.
Definition: tyt_extensions.hh:189
void enableDisplayPTTId(bool enable)
Enables/disables analog PTT ID display.
Definition: tyt_extensions.cc:106
void setInCallCriterion(InCallCriterion crit)
Sets the in-call criterion.
Definition: tyt_extensions.cc:202
bool loneWorker() const
Returns true if the lone worker feature is enabled.
Definition: tyt_extensions.cc:30
bool emergencyAlarmConfirmed() const
Returns true if emergency calls are confirmed.
Definition: tyt_extensions.cc:90
bool _reverseBurst
Holds the reverse burst flag.
Definition: tyt_extensions.hh:193
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:150
void enableAutoScan(bool enable)
Enables/disables the auto-scan feature.
Definition: tyt_extensions.cc:46
RefFrequency
Possible reference frequency settings for RX & TX.
Definition: tyt_extensions.hh:64
bool _talkaround
Holds the talk around flag.
Definition: tyt_extensions.hh:173
void enableTightSquelch(bool enable)
Enables/disables the tight squelch.
Definition: tyt_extensions.cc:154
bool autoScan() const
Returns true if the auto scan feature is enabled.
Definition: tyt_extensions.cc:42
bool _allowInterrupt
Holds the interrupt flag.
Definition: tyt_extensions.hh:201
bool talkaround() const
Returns true if the talk around feature is enabled.
Definition: tyt_extensions.cc:54
bool _dcdmLeader
Holds the DCDM-leader flag.
Definition: tyt_extensions.hh:205
InCallCriterion
Possible in-call criterions.
Definition: tyt_extensions.hh:76
ConfigItem * clone() const
Clones this item.
Definition: tyt_extensions.cc:19
RefFrequency _rxRefFrequency
Holds the reference frequency setting for RX.
Definition: tyt_extensions.hh:183
bool _privateCallConfirmed
Holds the private-call confirmation flag.
Definition: tyt_extensions.hh:177
bool displayPTTId() const
Returns true if analog PTT IDs are shown.
Definition: tyt_extensions.cc:102
InCallCriterion _inCallCriterion
Holds the in-call criterion.
Definition: tyt_extensions.hh:199
void enableLoneWorker(bool enable)
Enables/disables the lone-worker feature.
Definition: tyt_extensions.cc:34
void enableAllowInterrupt(bool enable)
Enables/disables interrupt.
Definition: tyt_extensions.cc:214
unsigned int _dmrSquelch
The squelch level [0-10] for DMR channels.
Definition: tyt_extensions.hh:207
bool compressedUDPHeader() const
Returns true if the compressed UDP header is enabled.
Definition: tyt_extensions.cc:162
RefFrequency _txRefFrequency
Holds the reference frequency setting for TX.
Definition: tyt_extensions.hh:185
bool _emergencyAlarmConfirmed
Holds the emergency-call confirmation flag.
Definition: tyt_extensions.hh:179
void setTXRefFrequency(RefFrequency ref)
Sets the reference frequency setting for TX.
Definition: tyt_extensions.cc:130
KillTone _killTone
Holds the kill tone setting.
Definition: tyt_extensions.hh:197
bool allowInterrupt() const
Returns true if interrupt is allowed.
Definition: tyt_extensions.cc:210
void enableCompressedUDPHeader(bool enable)
Enables/disables the compressed UDP header.
Definition: tyt_extensions.cc:166
KillTone
Possible kill-tone settings.
Definition: tyt_extensions.hh:70
bool _dataCallConfirmed
Holds the data-call confirmation flag.
Definition: tyt_extensions.hh:175
bool dataCallConfirmed() const
Returns true if data call confirmation is enabled.
Definition: tyt_extensions.cc:66
bool _loneWorker
Holds the lone-worker flag.
Definition: tyt_extensions.hh:169
void enablePrivateCallConfirmed(bool enable)
Enables/disables private-call confirmation.
Definition: tyt_extensions.cc:82
InCallCriterion inCallCriterion() const
Returns the in-call criterion.
Definition: tyt_extensions.cc:198
void enableDCDM(bool enable)
Enables/disables the DCDM mode.
Definition: tyt_extensions.cc:226
bool _compressedUDPHeader
Holds the compressed UDP header flag.
Definition: tyt_extensions.hh:191
bool _dcdm
Holds the DCDM flag.
Definition: tyt_extensions.hh:203
RefFrequency rxRefFrequency() const
Returns the reference frequency setting for RX.
Definition: tyt_extensions.cc:114
void enableReverseBurst(bool enable)
Enables/disables reverse burst.
Definition: tyt_extensions.cc:178
Groups several extension for TyT devices.
Definition: tyt_extensions.hh:1025
TyTButtonSettings * buttonSettings
The button settings for TyT devices.
Definition: tyt_extensions.hh:1029
Q_INVOKABLE TyTConfigExtension(QObject *parent=nullptr)
Constructor.
Definition: tyt_extensions.cc:1305
TyTButtonSettings * _buttonSettings
Owns the button settings extension.
Definition: tyt_extensions.hh:1051
ConfigItem * clone() const
Clones this item.
Definition: tyt_extensions.cc:1313
TyTMenuSettings * menuSettings
The menu settings for TyT devices.
Definition: tyt_extensions.hh:1031
TyTMenuSettings * _menuSettings
Owns the menu settings extension.
Definition: tyt_extensions.hh:1053
Represents the TyT menu settings extension.
Definition: tyt_extensions.hh:405
bool _callLogMissed
If true, the list of missed calls is shown.
Definition: tyt_extensions.hh:641
void enableScan(bool enable)
Enables/disables the scan menu item.
Definition: tyt_extensions.cc:637
bool _talkaround
If true, the talkaround menu item is shown.
Definition: tyt_extensions.hh:647
bool contactEditing
If true, the contact editing menu is shown.
Definition: tyt_extensions.hh:417
bool _displayMode
If true, the display-mode settings menu item is shown.
Definition: tyt_extensions.hh:667
void setHangTime(unsigned sec)
Sets the menu hang time in seconds.
Definition: tyt_extensions.cc:528
bool remoteRadioDisable
If true, the remote radio disable menu item is shown.
Definition: tyt_extensions.hh:427
bool _remoteMonitor
If true, the remote monitor menu item is shown.
Definition: tyt_extensions.hh:631
void enableSquelch(bool enable)
Enables/disables the squelch menu item.
Definition: tyt_extensions.cc:781
void enableCallAlert(bool enable)
Enables/disables the call alert menu item.
Definition: tyt_extensions.cc:553
bool hangtimeIsInfinite
If true, the menu hang time is infinite.
Definition: tyt_extensions.hh:409
bool callLogMissed
If true, the list of missed calls is shown.
Definition: tyt_extensions.hh:433
bool _power
If true, the power settings menu item is shown.
Definition: tyt_extensions.hh:651
bool radioProgramming
If true, radio programming on the radio is enabled.
Definition: tyt_extensions.hh:461
void enableRemoteRadioDisable(bool enable)
Enables/disables the remote radio disable menu item.
Definition: tyt_extensions.cc:625
bool _alertTone
If true, the alert-tone menu item is shown.
Definition: tyt_extensions.hh:649
void enableBacklight(bool enable)
Enables/disables the backlight menu item.
Definition: tyt_extensions.cc:733
bool textMessage
If true, the text message menu is shown.
Definition: tyt_extensions.hh:413
bool _callLogOutgoing
If true, the list of outgoing calls is shown.
Definition: tyt_extensions.hh:645
bool scanListEditing
If true, the scan list editing is enabled.
Definition: tyt_extensions.hh:431
bool _ledIndicator
If true, the LED indicator settings menu item is shown.
Definition: tyt_extensions.hh:659
void enableGPSInformation(bool enable)
Enables/disables the GPS information menu item.
Definition: tyt_extensions.cc:841
bool _backlight
If true, the backlight menu item is shown.
Definition: tyt_extensions.hh:653
bool _textMessage
If true, the text message menu is shown.
Definition: tyt_extensions.hh:621
bool _gpsInformation
If true, the positioning settings menu item is shown.
Definition: tyt_extensions.hh:671
bool talkaround
If true, the talkaround menu item is shown.
Definition: tyt_extensions.hh:439
Q_INVOKABLE TyTMenuSettings(QObject *parent=nullptr)
Constructor.
Definition: tyt_extensions.cc:479
bool scan
If true, the scan menu item is shown.
Definition: tyt_extensions.hh:429
bool displayMode
If true, the display-mode settings menu item is shown.
Definition: tyt_extensions.hh:459
void enablePassword(bool enable)
Enables/disables the password menu item.
Definition: tyt_extensions.cc:805
unsigned _hangTime
The menu hang time in seconds.
Definition: tyt_extensions.hh:619
void enableRemoteRadioCheck(bool enable)
Enables/disables the remote radio check menu item.
Definition: tyt_extensions.cc:589
void enableCallLogOutgoing(bool enable)
Enables/disables the list of outgoing calls menu item.
Definition: tyt_extensions.cc:685
bool _bootScreen
If true, the boot-screen settings menu item is shown.
Definition: tyt_extensions.hh:655
bool _scanListEditing
If true, the scan list editing is enabled.
Definition: tyt_extensions.hh:639
void enableBootScreen(bool enable)
Enables/disables the boot screen menu item.
Definition: tyt_extensions.cc:745
bool _contactEditing
If true, the contact editing menu is shown.
Definition: tyt_extensions.hh:625
bool _password
If true, the password menu item is shown.
Definition: tyt_extensions.hh:665
bool ledIndicator
If true, the LED indicator settings menu item is shown.
Definition: tyt_extensions.hh:451
void enableAlertTone(bool enable)
Enables/disables the alert tone menu item.
Definition: tyt_extensions.cc:709
bool password
If true, the password menu item is shown.
Definition: tyt_extensions.hh:457
bool gpsInformation
If true, the positioning settings menu item is shown.
Definition: tyt_extensions.hh:463
bool remoteMonitor
If true, the remote monitor menu item is shown.
Definition: tyt_extensions.hh:423
bool _scan
If true, the scan menu item is shown.
Definition: tyt_extensions.hh:637
bool _callAlert
If true, the call-alert menu item is shown.
Definition: tyt_extensions.hh:623
bool _squelch
If true, the squelch settings menu item is shown.
Definition: tyt_extensions.hh:661
bool remoteRadioCheck
If true, the remote radio check menu item is shown.
Definition: tyt_extensions.hh:421
bool _manualDial
If true, the manual dial menu item is shown.
Definition: tyt_extensions.hh:627
bool vox
If true, the VOX settings menu item is shown.
Definition: tyt_extensions.hh:455
bool keypadLock
If true, the keypad-lock settings menu item is shown.
Definition: tyt_extensions.hh:449
void enableTalkaround(bool enable)
Enables/disables the talkaround menu item.
Definition: tyt_extensions.cc:697
bool bootScreen
If true, the boot-screen settings menu item is shown.
Definition: tyt_extensions.hh:447
void enableScanListEditing(bool enable)
Enables/disables the scan list editing menu item.
Definition: tyt_extensions.cc:649
bool callLogAnswered
If true, the list of answered calls is shown.
Definition: tyt_extensions.hh:435
void enableCallLogAnswered(bool enable)
Enables/disables the list of answered calls menu item.
Definition: tyt_extensions.cc:673
bool alertTone
If true, the alert-tone menu item is shown.
Definition: tyt_extensions.hh:441
void enableLEDIndicator(bool enable)
Enables/disables the LED indicator menu item.
Definition: tyt_extensions.cc:769
void enableCallLogMissed(bool enable)
Enables/disables the list of missed calls menu item.
Definition: tyt_extensions.cc:661
void enableRemoteRadioEnable(bool enable)
Enables/disables the remote radio enable menu item.
Definition: tyt_extensions.cc:613
void enableKeypadLock(bool enable)
Enables/disables the keypad lock menu item.
Definition: tyt_extensions.cc:757
bool power
If true, the power settings menu item is shown.
Definition: tyt_extensions.hh:443
bool _remoteRadioCheck
If true, the remote radio check menu item is shown.
Definition: tyt_extensions.hh:629
void enableDisplayMode(bool enable)
Enables/disables the display mode menu item.
Definition: tyt_extensions.cc:817
void enableManualDial(bool enable)
Enables/disables the manual dial menu item.
Definition: tyt_extensions.cc:577
bool backlight
If true, the backlight menu item is shown.
Definition: tyt_extensions.hh:445
bool callLogOutgoing
If true, the list of outgoing calls is shown.
Definition: tyt_extensions.hh:437
void enableVOX(bool enable)
Enables/disables the VOX menu item.
Definition: tyt_extensions.cc:793
void setHangtimeInfinite(bool infinite)
Enables/disables infinite hang time.
Definition: tyt_extensions.cc:513
bool _callLogAnswered
If true, the list of answered calls is shown.
Definition: tyt_extensions.hh:643
bool manualDial
If true, the manual dial menu item is shown.
Definition: tyt_extensions.hh:419
void enableContactEditing(bool enable)
Enables/disables contact editing.
Definition: tyt_extensions.cc:565
void enablePower(bool enable)
Enables/disables the power menu item.
Definition: tyt_extensions.cc:721
bool _keypadLock
If true, the keypad-lock settings menu item is shown.
Definition: tyt_extensions.hh:657
bool _radioProgramming
If true, radio programming on the radio is enabled.
Definition: tyt_extensions.hh:669
void enableRadioProgramming(bool enable)
Enables/disables the radio programming menu item.
Definition: tyt_extensions.cc:829
bool _remoteRadioEnable
If true, the remote radio enable menu item is shown.
Definition: tyt_extensions.hh:633
bool remoteRadioEnable
If true, the remote radio enable menu item is shown.
Definition: tyt_extensions.hh:425
bool squelch
If true, the squelch settings menu item is shown.
Definition: tyt_extensions.hh:453
bool _vox
If true, the VOX settings menu item is shown.
Definition: tyt_extensions.hh:663
bool callAlert
If true, the call-alert menu item is shown.
Definition: tyt_extensions.hh:415
void enableRemoteMonitor(bool enable)
Enables/disables the remote monitor menu item.
Definition: tyt_extensions.cc:601
bool _inifiniteHangTime
If true, the menu hang time is infinite.
Definition: tyt_extensions.hh:617
void enableTextMessage(bool enable)
Enables/disables the text message menu item.
Definition: tyt_extensions.cc:541
unsigned hangTime
The menu hang time in seconds.
Definition: tyt_extensions.hh:411
ConfigItem * clone() const
Clones this item.
Definition: tyt_extensions.cc:492
bool _remoteRadioDisable
If true, the remote radio disable menu item is shown.
Definition: tyt_extensions.hh:635
Represents device specific scan-list settings for TyT devices.
Definition: tyt_extensions.hh:214
unsigned _prioritySampleTime
The sample time for priority channels in ms.
Definition: tyt_extensions.hh:245
Q_INVOKABLE TyTScanListExtension(QObject *parent=nullptr)
Default constructor.
Definition: tyt_extensions.cc:258
ConfigItem * clone() const
Clones this item.
Definition: tyt_extensions.cc:265
void setHoldTime(unsigned ms)
Sets the hold time im ms.
Definition: tyt_extensions.cc:279
unsigned holdTime
Holds the hold time in ms.
Definition: tyt_extensions.hh:218
unsigned _holdTime
The hold time in ms.
Definition: tyt_extensions.hh:243
unsigned prioritySampleTime
Holds the sample time in ms for priority channels.
Definition: tyt_extensions.hh:220
void setPrioritySampleTime(unsigned ms)
Sets the sample time for priority channels in ms.
Definition: tyt_extensions.cc:291
Represents the TyT general settings extension.
Definition: tyt_extensions.hh:678
void enableChannelMode(bool enable)
Enables/disables channel mode for the radio.
Definition: tyt_extensions.cc:1006
bool _privateCallMatch
If true, the private call IDs must match.
Definition: tyt_extensions.hh:1014
unsigned radioProgPassword
If radioProgPasswordEnabled is true, specifies the radio programming password.
Definition: tyt_extensions.hh:750
unsigned _powerOnPassword
Holds the power-on password.
Definition: tyt_extensions.hh:1006
unsigned analogScanHangTime
The analog channel scan hang time in ms.
Definition: tyt_extensions.hh:734
bool _channelMode
If true, the radio is in channel (memory) mode.
Definition: tyt_extensions.hh:974
bool channelFreeIndicationTone
If true, the channel free tone is enabled.
Definition: tyt_extensions.hh:692
unsigned _lowBatteryWarnInterval
Holds the low-battery warn interval.
Definition: tyt_extensions.hh:982
unsigned channelHangTime
Holds the channel hang time in ms.
Definition: tyt_extensions.hh:758
void setGroupCallHangTime(unsigned ms)
Sets the group-call hang time in ms.
Definition: tyt_extensions.cc:1052
unsigned lowBatteryWarnInterval
The low battery warn interval in seconds.
Definition: tyt_extensions.hh:722
unsigned _txPreambleDuration
Holds the TX preamble duration.
Definition: tyt_extensions.hh:976
void setMonitorType(MonitorType type)
Sets the monitor type.
Definition: tyt_extensions.cc:885
void enableBootPicture(bool enable)
Enables the boot picture.
Definition: tyt_extensions.cc:993
unsigned _groupCallHangTime
Holds the group-call hang time.
Definition: tyt_extensions.hh:978
bool channelModeA
If true or channelMode is true, the VFO A is in channel mode.
Definition: tyt_extensions.hh:712
bool channelModeB
If true or channelMode is true, the VFO B is in channel mode.
Definition: tyt_extensions.hh:714
void enableRadioProgPassword(bool enable)
Enables the radio programming password.
Definition: tyt_extensions.cc:1228
MonitorType monitorType
The monitor type setting.
Definition: tyt_extensions.hh:682
void setLowBatteryWarnInterval(unsigned sec)
Sets the low-battery warn interval in seconds.
Definition: tyt_extensions.cc:1076
void setRadioProgPassword(unsigned passwd)
Sets the radio programming password.
Definition: tyt_extensions.cc:1239
void enableChannelFreeIndicationTone(bool enable)
Enables channel-free indication tone.
Definition: tyt_extensions.cc:945
bool _channelModeB
If true or channelMode is true, the VFO B is in channel (memory) mode.
Definition: tyt_extensions.hh:972
void setCallAlertToneDuration(unsigned sec)
Sets the call alert-tone duration in seconds.
Definition: tyt_extensions.cc:1099
callbool bootPicture
If true, a picture is shown during boot.
Definition: tyt_extensions.hh:708
unsigned _backlightDuration
Holds the backlight duration.
Definition: tyt_extensions.hh:998
void setPCProgPassword(const QString &passwd)
Sets PC programming password.
Definition: tyt_extensions.cc:1251
void setTXPreambleDuration(unsigned ms)
Sets the TX preamble duration in ms.
Definition: tyt_extensions.cc:1040
bool allLEDsDisabled
If true, all LEDs are disabled.
Definition: tyt_extensions.hh:684
bool radioProgPasswordEnabled
If true the radio programming password is enabled.
Definition: tyt_extensions.hh:748
unsigned loneWorkerResponseTime
The lone-worker response time in minutes.
Definition: tyt_extensions.hh:728
unsigned callAlertToneDuration
The call alert duration in seconds.
Definition: tyt_extensions.hh:726
void enableKeypadLockManual(bool enable)
Sets the keypad lock to manual.
Definition: tyt_extensions.cc:1182
bool powerSaveMode
If true, the power save mode is enabled.
Definition: tyt_extensions.hh:696
bool powerOnPasswordEnabled
If true the power-on password is enabled.
Definition: tyt_extensions.hh:744
bool _powerOnPasswordEnabled
If true, the power-on password is enabled.
Definition: tyt_extensions.hh:1004
unsigned txPreambleDuration
The transmit preamble duration in ms.
Definition: tyt_extensions.hh:716
bool _allTonesDisabled
If true, all tones are disabled.
Definition: tyt_extensions.hh:962
unsigned _digitalScanHangTime
Holds the scan hang-time for digital channels.
Definition: tyt_extensions.hh:992
bool backlightAlwaysOn
If true, the backlight is always on.
Definition: tyt_extensions.hh:736
unsigned groupCallHangTime
The group hang time in ms.
Definition: tyt_extensions.hh:718
bool callAlertToneContinuous
If true, the call alert-tone is continuous.
Definition: tyt_extensions.hh:724
QString _pcProgPassword
Holds the PC programming password.
Definition: tyt_extensions.hh:1012
unsigned digitalScanHangTime
The digital channel scan hang time in ms.
Definition: tyt_extensions.hh:732
void disableAllLEDs(bool disable)
Disables all LEDs.
Definition: tyt_extensions.cc:897
bool allTonesDisabled
If true, all tones are disabled.
Definition: tyt_extensions.hh:694
void enableWakeupPreamble(bool enable)
Enables transmission of wakeup preamble.
Definition: tyt_extensions.cc:981
unsigned backlightDuration
If backlightAlwaysOn is false, specifies the backlight duration in seconds.
Definition: tyt_extensions.hh:738
bool talkPermitToneDigital
If true, the talk permit tone for digital channels is enabled.
Definition: tyt_extensions.hh:686
void enableChannelModeA(bool enable)
Enables/disables channel mode for the VFO A.
Definition: tyt_extensions.cc:1017
void setPrivateCallHangTime(unsigned ms)
Sets the private-call hang time in ms.
Definition: tyt_extensions.cc:1064
bool talkPermitToneAnalog
If true, the talk permit tone for analog channels is enabled.
Definition: tyt_extensions.hh:688
ConfigItem * clone() const
Clones this item.
Definition: tyt_extensions.cc:870
bool passwordAndLock
If true, the password and lock is enabled.
Definition: tyt_extensions.hh:690
void setLoneWorkerReminderTime(unsigned sec)
Sets the lone-worker reminder timer in seconds.
Definition: tyt_extensions.cc:1123
unsigned _privateCallHangTime
Holds the private-call hang time.
Definition: tyt_extensions.hh:980
unsigned privateCallHangTime
The private hang time in ms.
Definition: tyt_extensions.hh:720
unsigned powerOnPassword
If powerOnPasswordEnabled is true, specifies the power-on password.
Definition: tyt_extensions.hh:746
bool _channelModeA
If true or channelMode is true, the VFO A is in channel (memory) mode.
Definition: tyt_extensions.hh:970
unsigned keypadLockTime
If keypadLockManual is false, specifies the keypad lock time.
Definition: tyt_extensions.hh:742
bool _channelFreeIndicationTone
If true, the channel free indication tone is enabled.
Definition: tyt_extensions.hh:960
unsigned _loneWorkerReminderTime
Holds the lone-worker reminder time.
Definition: tyt_extensions.hh:990
Q_INVOKABLE TyTSettingsExtension(QObject *parent=nullptr)
Possible monitor types.
Definition: tyt_extensions.cc:852
bool _talkPermitToneDigital
If true the talk-permit tone is enabled for digital channels.
Definition: tyt_extensions.hh:954
void setKeypadLockTime(unsigned sec)
Sets the keypad lock time in seconds.
Definition: tyt_extensions.cc:1193
bool _wakeupPreamble
If true, the wake-up preamble is sent.
Definition: tyt_extensions.hh:966
bool _groupCallMatch
If true, the group call IDs must match.
Definition: tyt_extensions.hh:1016
void enablePowerSaveMode(bool enable)
Enables the power save mode.
Definition: tyt_extensions.cc:969
bool _radioProgPasswordEnabled
If true, the radio programming password is enabled.
Definition: tyt_extensions.hh:1008
void enableTalkPermitToneDigital(bool enable)
Enables the talk permit tone for digital channels.
Definition: tyt_extensions.cc:909
void enableChannelModeB(bool enable)
Enables/disables channel mode for the VFO B.
Definition: tyt_extensions.cc:1028
bool keypadLockManual
If true, the keypad is locked manually.
Definition: tyt_extensions.hh:740
unsigned _analogScanHangTime
Holds the scan hang-time for analog channels.
Definition: tyt_extensions.hh:994
void enableTalkPermitToneAnalog(bool enable)
Enables the talk permit tone for analog channels.
Definition: tyt_extensions.cc:921
unsigned _keypadLockTime
Holds the keypad lock time.
Definition: tyt_extensions.hh:1002
unsigned loneWorkerReminderTime
The lone-worker reminder time in seconds.
Definition: tyt_extensions.hh:730
bool wakeupPreamble() const
Returns true if the wake-up preamble is sent.
Definition: tyt_extensions.cc:977
void setChannelHangTime(unsigned ms)
Sets the channel hang time in ms.
Definition: tyt_extensions.cc:1287
bool _powerSaveMode
If true, the power save mode is enabled.
Definition: tyt_extensions.hh:964
bool _talkPermitToneAnalog
If true the talk-permit tone is enabled for analog channels.
Definition: tyt_extensions.hh:956
bool _passwdAndLock
If true the password and lock is enabled.
Definition: tyt_extensions.hh:958
void enableBacklightAlwaysOn(bool enable)
Enables the backlight continuously.
Definition: tyt_extensions.cc:1159
void enablePrivateCallMatch(bool enable)
Enables/disables private call match.
Definition: tyt_extensions.cc:1263
void enableGroupCallMatch(bool enable)
Enables/disables group call match.
Definition: tyt_extensions.cc:1275
bool _keypadLockManual
If true, the keypad lock is manual.
Definition: tyt_extensions.hh:1000
unsigned _callAlertToneDuration
Holds the call alert-tone duration.
Definition: tyt_extensions.hh:986
void setAnalogScanHangTime(unsigned ms)
Sets the scan hang-time for analog channels.
Definition: tyt_extensions.cc:1147
void setDigitalScanHangTime(unsigned ms)
Sets the scan hang-time for digital channels.
Definition: tyt_extensions.cc:1135
void enablePasswordAndLock(bool enable)
Enables the password and lock.
Definition: tyt_extensions.cc:933
bool _callAlertToneContinuous
If true, the call alert-tone is continuous.
Definition: tyt_extensions.hh:984
MonitorType _monitorType
Holds the monitor type.
Definition: tyt_extensions.hh:950
void enableCallAlertToneContinuous(bool enable)
Sets the call alert-tone continuous.
Definition: tyt_extensions.cc:1088
bool privateCallMatch
If true, the private call IDs must match.
Definition: tyt_extensions.hh:754
bool _allLEDsDisabled
If true all LEDs are disabled.
Definition: tyt_extensions.hh:952
void enablePowerOnPassword(bool enable)
Enables the power on password.
Definition: tyt_extensions.cc:1205
void setPowerOnPassword(unsigned passwd)
Sets the power-on password.
Definition: tyt_extensions.cc:1216
unsigned _channelHangTime
Holds the channel hang time in ms.
Definition: tyt_extensions.hh:1018
void setBacklightDuration(unsigned sec)
Sets the backlight duration in seconds.
Definition: tyt_extensions.cc:1170
bool _backlightAlwaysOn
If true, the backlight is always on.
Definition: tyt_extensions.hh:996
bool channelMode
If true, the radio is in channel mode.
Definition: tyt_extensions.hh:710
unsigned _radioProgPassword
Holds the radio programming password.
Definition: tyt_extensions.hh:1010
bool _bootPicture
If true the boot picture is enabled.
Definition: tyt_extensions.hh:968
bool groupCallMatch
If true, the group call IDs must match.
Definition: tyt_extensions.hh:756
unsigned _loneWorkerResponseTime
Holds the lone-worker response time.
Definition: tyt_extensions.hh:988
QString pcProgPassword
Specifies the PC programming password.
Definition: tyt_extensions.hh:752
void setLoneWorkerResponseTime(unsigned min)
Sets the lone-worker response time in minutes.
Definition: tyt_extensions.cc:1111
void disableAllTones(bool disable)
Disables all tones.
Definition: tyt_extensions.cc:957
Implements an USB interface to the TYT MD-UV390 & Retevis RT3S VHF/UHF 5W DMR (Tier I&II) radios.
Definition: uv390.hh:37