libdrmconf 0.14.1
A library to program DMR radios.
Loading...
Searching...
No Matches
tyt_extensions.hh
1#ifndef TYTEXTENSION_HH
2#define TYTEXTENSION_HH
3
4#include "configobject.hh"
5#include "level.hh"
6
7
15{
16 Q_OBJECT
17
18 Q_CLASSINFO("description", "Settings for MD-390, RT8, MD-UV390, RT3S, MD-2017, RT82, DM-1701, RT84.")
19 Q_CLASSINFO("longDescription", "Device specific channel settings for TyT and Retevis devices."
20 "Including TyT MD-390, MD-UV390, MD-2017, Retevis RT8, RT3S and RT82"
21 " as well as Baofeng DM-1701.")
22
23
24 Q_PROPERTY(bool autoScan READ autoScan WRITE enableAutoScan)
28 Q_PROPERTY(bool displayPTTId READ displayPTTId WRITE enableDisplayPTTId)
33
34
35 Q_PROPERTY(bool tightSquelch READ tightSquelch WRITE enableTightSquelch)
38
39
40 Q_PROPERTY(KillTone killTone READ killTone WRITE setKillTone)
44 Q_PROPERTY(bool allowInterrupt READ allowInterrupt WRITE enableAllowInterrupt)
46 Q_PROPERTY(bool dcdmLeader READ dcdmLeader WRITE enableDCDMLeader)
48 Q_PROPERTY(Level dmrSquelch READ dmrSquelch WRITE setDMRSquelch)
49 Q_CLASSINFO("dmrSquelchDescription", "Sets the squelch level for DMR channels. "
50 "Only applicable for MD-UV390 and MD-2017")
51
52public:
54 enum class RefFrequency {
55 Low=0, Medium=1, High=2
56 };
57 Q_ENUM(RefFrequency)
58
59
60 enum class KillTone {
61 Tone259_2Hz=0, Tone55_2Hz=1, Off=3
62 };
63 Q_ENUM(KillTone)
64
65
66 enum class InCallCriterion {
67 Always = 0, AdmitCriterion=1, TXInterrupt=2
68 };
69 Q_ENUM(InCallCriterion)
70
71public:
73 Q_INVOKABLE explicit TyTChannelExtension(QObject *parent=nullptr);
74
75 ConfigItem *clone() const;
76
78 bool autoScan() const;
80 void enableAutoScan(bool enable);
82 bool emergencyAlarmConfirmed() const;
84 void enableEmergencyAlarmConfirmed(bool enable);
86 bool displayPTTId() const;
88 void enableDisplayPTTId(bool enable);
97
99 bool tightSquelch() const;
101 void enableTightSquelch(bool enable);
103 bool compressedUDPHeader() const;
105 void enableCompressedUDPHeader(bool enable);
106
108 KillTone killTone() const;
110 void setKillTone(KillTone tone);
116 bool allowInterrupt() const;
118 void enableAllowInterrupt(bool enable);
120 bool dcdmLeader() const;
122 void enableDCDMLeader(bool enable);
124 Level dmrSquelch() const;
126 void setDMRSquelch(Level sq);
127
128public:
129 /*ConfigItem *allocateChild(QMetaProperty &prop, const YAML::Node &node,
130 const Context &ctx, const ErrorStack &err=ErrorStack());*/
131
132protected:
133 // Common properties
144
145 // MD-390 properties
150
151 // MD-UV390, MD-2017 properties
162};
163
164
168{
169 Q_OBJECT
170
172 Q_PROPERTY(unsigned holdTime READ holdTime WRITE setHoldTime)
175
176public:
178 Q_INVOKABLE explicit TyTScanListExtension(QObject *parent=nullptr);
179
180 ConfigItem *clone() const;
181
183 unsigned holdTime() const;
185 void setHoldTime(unsigned ms);
187 unsigned prioritySampleTime() const;
189 void setPrioritySampleTime(unsigned ms);
190
191public:
192 /*ConfigItem *allocateChild(QMetaProperty &prop, const YAML::Node &node,
193 const Context &ctx, const ErrorStack &err=ErrorStack());*/
194
195protected:
197 unsigned _holdTime;
200};
201
202
206{
207 Q_OBJECT
208
229
232
233public:
269 Q_ENUM(ButtonAction)
270
271public:
273 Q_INVOKABLE explicit TyTButtonSettings(QObject *parent=nullptr);
274
275 ConfigItem *clone() const;
276
278 ButtonAction sideButton1Short() const;
280 void setSideButton1Short(ButtonAction action);
282 ButtonAction sideButton1Long() const;
284 void setSideButton1Long(ButtonAction action);
285
287 ButtonAction sideButton2Short() const;
289 void setSideButton2Short(ButtonAction action);
291 ButtonAction sideButton2Long() const;
293 void setSideButton2Long(ButtonAction action);
294
296 ButtonAction sideButton3Short() const;
298 void setSideButton3Short(ButtonAction action);
300 ButtonAction sideButton3Long() const;
302 void setSideButton3Long(ButtonAction action);
303
305 ButtonAction progButton1Short() const;
307 void setProgButton1Short(ButtonAction action);
309 ButtonAction progButton1Long() const;
311 void setProgButton1Long(ButtonAction action);
312
314 ButtonAction progButton2Short() const;
316 void setProgButton2Short(ButtonAction action);
318 ButtonAction progButton2Long() const;
320 void setProgButton2Long(ButtonAction action);
321
323 unsigned longPressDuration() const;
325 void setLongPressDuration(unsigned dur);
326
327protected:
348
351};
352
353
357{
358 Q_OBJECT
359
363 Q_PROPERTY(unsigned hangTime READ hangTime WRITE setHangTime)
365 Q_PROPERTY(bool textMessage READ textMessage WRITE enableTextMessage)
367 Q_PROPERTY(bool callAlert READ callAlert WRITE enableCallAlert)
371 Q_PROPERTY(bool manualDial READ manualDial WRITE enableManualDial)
381 Q_PROPERTY(bool scan READ scan WRITE enableScan)
391 Q_PROPERTY(bool talkaround READ talkaround WRITE enableTalkaround)
393 Q_PROPERTY(bool alertTone READ alertTone WRITE enableAlertTone)
395 Q_PROPERTY(bool power READ power WRITE enablePower)
397 Q_PROPERTY(bool backlight READ backlight WRITE enableBacklight)
399 Q_PROPERTY(bool bootScreen READ bootScreen WRITE enableBootScreen)
401 Q_PROPERTY(bool keypadLock READ keypadLock WRITE enableKeypadLock)
403 Q_PROPERTY(bool ledIndicator READ ledIndicator WRITE enableLEDIndicator)
405 Q_PROPERTY(bool squelch READ squelch WRITE enableSquelch)
407 Q_PROPERTY(bool vox READ vox WRITE enableVOX)
409 Q_PROPERTY(bool password READ password WRITE enablePassword)
411 Q_PROPERTY(bool displayMode READ displayMode WRITE enableDisplayMode)
416
417public:
419 Q_INVOKABLE explicit TyTMenuSettings(QObject *parent=nullptr);
420
421 ConfigItem *clone() const;
422
424 bool hangtimeIsInfinite() const;
426 void setHangtimeInfinite(bool infinite);
427
429 unsigned hangTime() const;
431 void setHangTime(unsigned sec);
432
434 bool textMessage() const;
436 void enableTextMessage(bool enable);
437
439 bool callAlert() const;
441 void enableCallAlert(bool enable);
442
444 bool contactEditing() const;
446 void enableContactEditing(bool enable);
447
449 bool manualDial() const;
451 void enableManualDial(bool enable);
452
454 bool remoteRadioCheck() const;
456 void enableRemoteRadioCheck(bool enable);
457
459 bool remoteMonitor() const;
461 void enableRemoteMonitor(bool enable);
462
464 bool remoteRadioEnable() const;
466 void enableRemoteRadioEnable(bool enable);
467
469 bool remoteRadioDisable() const;
471 void enableRemoteRadioDisable(bool enable);
472
474 bool scan() const;
476 void enableScan(bool enable);
477
479 bool scanListEditing() const;
481 void enableScanListEditing(bool enable);
482
484 bool callLogMissed() const;
486 void enableCallLogMissed(bool enable);
487
489 bool callLogAnswered() const;
491 void enableCallLogAnswered(bool enable);
492
494 bool callLogOutgoing() const;
496 void enableCallLogOutgoing(bool enable);
497
499 bool talkaround() const;
501 void enableTalkaround(bool enable);
502
504 bool alertTone() const;
506 void enableAlertTone(bool enable);
507
509 bool power() const;
511 void enablePower(bool enable);
512
514 bool backlight() const;
516 void enableBacklight(bool enable);
517
519 bool bootScreen() const;
521 void enableBootScreen(bool enable);
522
524 bool keypadLock() const;
526 void enableKeypadLock(bool enable);
527
529 bool ledIndicator() const;
531 void enableLEDIndicator(bool enable);
532
534 bool squelch() const;
536 void enableSquelch(bool enable);
537
539 bool vox() const;
541 void enableVOX(bool enable);
542
544 bool password() const;
546 void enablePassword(bool enable);
547
549 bool displayMode() const;
551 void enableDisplayMode(bool enable);
552
554 bool radioProgramming() const;
556 void enableRadioProgramming(bool enable);
557
559 bool gpsInformation() const;
561 void enableGPSInformation(bool enable);
562
563public:
564 /*ConfigItem *allocateChild(QMetaProperty &prop, const YAML::Node &node,
565 const Context &ctx, const ErrorStack &err=ErrorStack());*/
566
567protected:
571 unsigned _hangTime;
589 bool _scan;
603 bool _power;
615 bool _vox;
624};
625
626
630{
631 Q_OBJECT
632
634 Q_PROPERTY(MonitorType monitorType READ monitorType WRITE setMonitorType)
649 Q_CLASSINFO("powerSaveModeDescription", "Puts the radio into sleep-mode when idle.")
650 Q_CLASSINFO("powerSaveModeLongDescription",
651 "When enabled, the radio enters a sleep mode when idle. That is, when on receive and "
652 "there is no activity on the current channel. However, the radio may need some time "
653 "to wake up from this mode. Hence, the 'wakeupPreamble' need to be enabled by all "
654 "radios in the network to provide this wake-up delay.")
656 Q_PROPERTY(bool wakeupPreamble READ wakeupPreamble WRITE enableWakeupPreamble)
657 Q_CLASSINFO("wakeupPreambleDescription", "If enabled, the radio will transmit a short wake-up "
658 "preamble before each call.")
660 Q_PROPERTY(bool bootPicture READ bootPicture WRITE enableBootPicture)
662 Q_PROPERTY(bool channelMode READ channelMode WRITE enableChannelMode)
664 Q_PROPERTY(bool channelModeA READ channelModeA WRITE enableChannelModeA)
666 Q_PROPERTY(bool channelModeB READ channelModeB WRITE enableChannelModeB)
688 Q_PROPERTY(unsigned keypadLockTime READ keypadLockTime WRITE setKeypadLockTime)
692 Q_PROPERTY(unsigned powerOnPassword READ powerOnPassword WRITE setPowerOnPassword)
698 Q_PROPERTY(QString pcProgPassword READ pcProgPassword WRITE setPCProgPassword)
700 Q_PROPERTY(unsigned channelHangTime READ channelHangTime WRITE setChannelHangTime)
701
702 Q_CLASSINFO("description", "Settings for MD-390, RT8, MD-UV390, RT3S, MD-2017, RT82.")
703 Q_CLASSINFO("longDescription", "Device specific radio settings for TyT and Retevis devices."
704 "Including TyT MD-390, MD-UV390, MD-2017 as well as Retevis RT8, "
705 "RT3S and RT82.")
706
707public:
709 enum class MonitorType {
710 Silent=0, Open=1
711 };
712 Q_ENUM(MonitorType)
713
714public:
716 Q_INVOKABLE explicit TyTSettingsExtension(QObject *parent=nullptr);
717
718 ConfigItem *clone() const;
719
721 MonitorType monitorType() const;
723 void setMonitorType(MonitorType type);
724
726 bool allLEDsDisabled() const;
728 void disableAllLEDs(bool disable);
729
731 bool talkPermitToneDigital() const;
733 void enableTalkPermitToneDigital(bool enable);
734
736 bool talkPermitToneAnalog() const;
738 void enableTalkPermitToneAnalog(bool enable);
739
741 bool passwordAndLock() const;
743 void enablePasswordAndLock(bool enable);
744
746 bool channelFreeIndicationTone() const;
748 void enableChannelFreeIndicationTone(bool enable);
749
751 bool allTonesDisabled() const;
753 void disableAllTones(bool disable);
754
756 bool powerSaveMode() const;
758 void enablePowerSaveMode(bool enable);
759
761 bool wakeupPreamble() const;
763 void enableWakeupPreamble(bool enable);
764
766 bool bootPicture() const;
768 void enableBootPicture(bool enable);
769
771 bool channelMode() const;
773 void enableChannelMode(bool enable);
775 bool channelModeA() const;
777 void enableChannelModeA(bool enable);
779 bool channelModeB() const;
781 void enableChannelModeB(bool enable);
782
784 unsigned lowBatteryWarnInterval() const;
786 void setLowBatteryWarnInterval(unsigned sec);
787
789 bool callAlertToneContinuous() const;
791 void enableCallAlertToneContinuous(bool enable);
793 unsigned callAlertToneDuration() const;
795 void setCallAlertToneDuration(unsigned sec);
796
798 unsigned loneWorkerResponseTime() const;
800 void setLoneWorkerResponseTime(unsigned min);
801
803 unsigned loneWorkerReminderTime() const;
805 void setLoneWorkerReminderTime(unsigned sec);
806
808 unsigned digitalScanHangTime() const;
810 void setDigitalScanHangTime(unsigned ms);
811
813 unsigned analogScanHangTime() const;
815 void setAnalogScanHangTime(unsigned ms);
816
818 bool backlightAlwaysOn() const;
820 void enableBacklightAlwaysOn(bool enable);
822 unsigned backlightDuration() const;
824 void setBacklightDuration(unsigned sec);
825
827 bool keypadLockManual() const;
829 void enableKeypadLockManual(bool enable);
831 unsigned keypadLockTime() const;
833 void setKeypadLockTime(unsigned sec);
834
836 bool powerOnPasswordEnabled() const;
838 void enablePowerOnPassword(bool enable);
840 unsigned powerOnPassword() const;
842 void setPowerOnPassword(unsigned passwd);
843
845 bool radioProgPasswordEnabled() const;
847 void enableRadioProgPassword(bool enable);
849 unsigned radioProgPassword() const;
851 void setRadioProgPassword(unsigned passwd);
852
854 const QString &pcProgPassword() const;
856 void setPCProgPassword(const QString &passwd);
857
859 unsigned channelHangTime() const;
861 void setChannelHangTime(unsigned ms);
862
863public:
864 /*ConfigItem *allocateChild(QMetaProperty &prop, const YAML::Node &node,
865 const Context &ctx, const ErrorStack &err=ErrorStack());*/
866protected:
868 MonitorType _monitorType;
937};
938
939
943{
944 Q_OBJECT
945
950
951public:
953 Q_INVOKABLE explicit TyTConfigExtension(QObject *parent=nullptr);
954
955 ConfigItem *clone() const;
956
959
962
963public:
964 /*ConfigItem *allocateChild(QMetaProperty &prop, const YAML::Node &node,
965 const Context &ctx, const ErrorStack &err=ErrorStack());*/
966
967protected:
972};
973
974#endif // TYTBUTTONSETTINGSEXTENSION_HH
ConfigExtension(QObject *parent=nullptr)
Hidden constructor.
Definition configobject.cc:1234
Base class for all configuration objects (channels, zones, contacts, etc).
Definition configobject.hh:35
ConfigItem(QObject *parent=nullptr)
Hidden constructor.
Definition configobject.cc:158
Some simple class implementing a [1-10] level setting.
Definition level.hh:15
Represents the TyT button settings extension.
Definition tyt_extensions.hh:206
ButtonAction sideButton2Long
The action to perform on a long press on side button 2.
Definition tyt_extensions.hh:216
unsigned _longPressDuration
Holds the long-press duration in ms.
Definition tyt_extensions.hh:350
void setProgButton2Long(ButtonAction action)
Sets the action for the programmable button 2 long-press (Baofeng DM-1701).
Definition tyt_extensions.cc:391
void setProgButton2Short(ButtonAction action)
Sets the action for the programmable button 2 short-press (Baofeng DM-1701).
Definition tyt_extensions.cc:379
unsigned longPressDuration
The duration of a long press in msec.
Definition tyt_extensions.hh:231
void setSideButton1Long(ButtonAction action)
Sets the action for the side button 1 long-press.
Definition tyt_extensions.cc:295
ButtonAction _sideButton2Short
Holds the side button 2 short-press action.
Definition tyt_extensions.hh:333
void setLongPressDuration(unsigned dur)
Sets the long-press duration in msec.
Definition tyt_extensions.cc:403
void setSideButton3Short(ButtonAction action)
Sets the action for the side button 3 short-press (Baofeng DM-1701).
Definition tyt_extensions.cc:331
ButtonAction _progButton1Long
Holds the prog button 1 long-press action.
Definition tyt_extensions.hh:343
ButtonAction progButton2Long
The action to perform on a long press on programmable button 2.
Definition tyt_extensions.hh:228
void setSideButton2Long(ButtonAction action)
Sets the action for the side button 2 long-press.
Definition tyt_extensions.cc:319
void setSideButton2Short(ButtonAction action)
Sets the action for the side button 2 short-press.
Definition tyt_extensions.cc:307
ButtonAction progButton1Long
The action to perform on a long press on programmable button 1.
Definition tyt_extensions.hh:224
ButtonAction sideButton2Short
The action to perform on a short press on side button 2.
Definition tyt_extensions.hh:214
ButtonAction _progButton1Short
Holds the prog button 1 short-press action.
Definition tyt_extensions.hh:341
void setSideButton1Short(ButtonAction action)
Sets the action for the side button 1 short-press.
Definition tyt_extensions.cc:283
ButtonAction sideButton3Long
The action to perform on a long press on side button 3.
Definition tyt_extensions.hh:220
ButtonAction sideButton1Short
The action to perform on a short press on side button 1.
Definition tyt_extensions.hh:210
ButtonAction _sideButton3Short
Holds the side button 3 short-press action.
Definition tyt_extensions.hh:337
ButtonAction _progButton2Short
Holds the prog button 2 short-press action.
Definition tyt_extensions.hh:345
ButtonAction _sideButton1Long
Holds the side button 1 long-press action.
Definition tyt_extensions.hh:331
ButtonAction _sideButton1Short
Holds the side button 1 short-press action.
Definition tyt_extensions.hh:329
void setProgButton1Long(ButtonAction action)
Sets the action for the programmable button 1 long-press (Baofeng DM-1701).
Definition tyt_extensions.cc:367
void setSideButton3Long(ButtonAction action)
Sets the action for the side button 3 long-press (Baofeng DM-1701).
Definition tyt_extensions.cc:343
ButtonAction sideButton1Long
The action to perform on a long press on side button 1.
Definition tyt_extensions.hh:212
ButtonAction progButton2Short
The action to perform on a short press on programmable button 2.
Definition tyt_extensions.hh:226
ButtonAction _progButton2Long
Holds the prog button 2 long-press action.
Definition tyt_extensions.hh:347
ButtonAction sideButton3Short
The action to perform on a short press on side button 3.
Definition tyt_extensions.hh:218
ButtonAction _sideButton2Long
Holds the side button 2 long-press action.
Definition tyt_extensions.hh:335
void setProgButton1Short(ButtonAction action)
Sets the action for the programmable button 1 short-press (Baofeng DM-1701).
Definition tyt_extensions.cc:355
ButtonAction
Possible actions for the side-buttons.
Definition tyt_extensions.hh:235
@ Tone1750Hz
Send 1750Hz tone.
Definition tyt_extensions.hh:261
@ PowerSelect
Select TX power.
Definition tyt_extensions.hh:240
@ ScanToggle
Start/stop scan.
Definition tyt_extensions.hh:250
@ OneTouch5
Perform one-touch action 5.
Definition tyt_extensions.hh:247
@ LoneWorkerToggle
Toggle lone-worker.
Definition tyt_extensions.hh:257
@ RightKey
Who knows?
Definition tyt_extensions.hh:263
@ RepeaterTalkaroundToggle
Toggle repater mode / talkaround.
Definition tyt_extensions.hh:249
@ VoxToggle
Enable/disable VOX.
Definition tyt_extensions.hh:253
@ PromiscuousToggle
md380tools: enable/disable promiscuous mode
Definition tyt_extensions.hh:267
@ NuisanceDelete
Nuisance delete.
Definition tyt_extensions.hh:242
@ MonitorToggle
Toggle monitor (promiscuous mode on digital channel, open squelch on analog channel).
Definition tyt_extensions.hh:241
@ ZoneIncrement
Switch to next zone.
Definition tyt_extensions.hh:254
@ SetTalkgroup
md380tools: set temp. TG
Definition tyt_extensions.hh:266
@ OneTouch1
Perform one-touch action 1.
Definition tyt_extensions.hh:243
@ ToggleAllAlertTones
Toggle all alert tones.
Definition tyt_extensions.hh:237
@ OneTouch4
Perform one-touch action 4.
Definition tyt_extensions.hh:246
@ RecordToggle
Enable/disable recording (dep. on firmware).
Definition tyt_extensions.hh:258
@ EmergencyOn
Enable emergency.
Definition tyt_extensions.hh:238
@ RecordPlayback
Start/stop playback.
Definition tyt_extensions.hh:259
@ OneTouch2
Perform one-touch action 2.
Definition tyt_extensions.hh:244
@ BatteryIndicator
Show battery charge.
Definition tyt_extensions.hh:255
@ RecordDeleteAll
Delete all recordings.
Definition tyt_extensions.hh:260
@ OneTouch6
Perform one-touch action 6.
Definition tyt_extensions.hh:248
@ ZoneDecrement
Switch to previous zone.
Definition tyt_extensions.hh:265
@ ManualDialForPrivate
Manual dial for private.
Definition tyt_extensions.hh:256
@ PrivacyToggle
Enable/disable privacy system.
Definition tyt_extensions.hh:252
@ SquelchToggle
Enable/disable squelch.
Definition tyt_extensions.hh:251
@ EmergencyOff
Disable emergency.
Definition tyt_extensions.hh:239
@ LeftKey
Who knows?
Definition tyt_extensions.hh:264
@ OneTouch3
Perform one-touch action 3.
Definition tyt_extensions.hh:245
@ Disabled
Disabled side-button action.
Definition tyt_extensions.hh:236
@ SwitchUpDown
Switch Channel A/B.
Definition tyt_extensions.hh:262
Q_INVOKABLE TyTButtonSettings(QObject *parent=nullptr)
Constructor.
Definition tyt_extensions.cc:252
ButtonAction _sideButton3Long
Holds the side button 3 long-press action.
Definition tyt_extensions.hh:339
ButtonAction progButton1Short
The action to perform on a short press on programmable button 1.
Definition tyt_extensions.hh:222
void setRXRefFrequency(RefFrequency ref)
Sets the reference frequency setting for RX.
Definition tyt_extensions.cc:76
RefFrequency txRefFrequency() const
Returns the reference frequency setting for TX.
Definition tyt_extensions.cc:85
void enableDCDMLeader(bool enable)
Enables/disables this radio to be the leader on a DCDM simplex channel.
Definition tyt_extensions.cc:188
Level _dmrSquelch
The squelch level [0-10] for DMR channels.
Definition tyt_extensions.hh:161
bool dcdmLeader() const
Returns true if this radio is the leader for a DCDM simplex channel.
Definition tyt_extensions.cc:183
void enableEmergencyAlarmConfirmed(bool enable)
Enables/disables emergency-call confirmation.
Definition tyt_extensions.cc:48
bool _autoScan
Holds the auto-scan flag.
Definition tyt_extensions.hh:135
void setKillTone(KillTone tone)
Sets the kill-tone frequency.
Definition tyt_extensions.cc:146
KillTone killTone() const
Returns the kill tone frequency.
Definition tyt_extensions.cc:141
bool _displayPTTId
Holds the display PTT ID flag.
Definition tyt_extensions.hh:139
bool _tightSquelch
Holds the tightSquelch flag.
Definition tyt_extensions.hh:147
void enableDisplayPTTId(bool enable)
Enables/disables analog PTT ID display.
Definition tyt_extensions.cc:62
void setInCallCriterion(InCallCriterion crit)
Sets the in-call criterion.
Definition tyt_extensions.cc:160
bool emergencyAlarmConfirmed() const
Returns true if emergency calls are confirmed.
Definition tyt_extensions.cc:43
Q_INVOKABLE TyTChannelExtension(QObject *parent=nullptr)
Default constructor.
Definition tyt_extensions.cc:7
bool tightSquelch() const
Returns true if the tight squelch is enabled.
Definition tyt_extensions.cc:113
void enableAutoScan(bool enable)
Enables/disables the auto-scan feature.
Definition tyt_extensions.cc:34
RefFrequency
Possible reference frequency settings for RX & TX.
Definition tyt_extensions.hh:54
void enableTightSquelch(bool enable)
Enables/disables the tight squelch.
Definition tyt_extensions.cc:118
bool autoScan() const
Returns true if the auto scan feature is enabled.
Definition tyt_extensions.cc:29
bool _allowInterrupt
Holds the interrupt flag.
Definition tyt_extensions.hh:157
bool _dcdmLeader
Holds the DCDM-leader flag.
Definition tyt_extensions.hh:159
InCallCriterion
Possible in-call criterions.
Definition tyt_extensions.hh:66
ConfigItem * clone() const
Clones this item.
Definition tyt_extensions.cc:18
RefFrequency _rxRefFrequency
Holds the reference frequency setting for RX.
Definition tyt_extensions.hh:141
bool displayPTTId() const
Returns true if analog PTT IDs are shown.
Definition tyt_extensions.cc:57
Level dmrSquelch() const
Squelch level for DMR channels.
Definition tyt_extensions.cc:99
InCallCriterion _inCallCriterion
Holds the in-call criterion.
Definition tyt_extensions.hh:155
void enableAllowInterrupt(bool enable)
Enables/disables interrupt.
Definition tyt_extensions.cc:174
bool compressedUDPHeader() const
Returns true if the compressed UDP header is enabled.
Definition tyt_extensions.cc:127
RefFrequency _txRefFrequency
Holds the reference frequency setting for TX.
Definition tyt_extensions.hh:143
bool _emergencyAlarmConfirmed
Holds the emergency-call confirmation flag.
Definition tyt_extensions.hh:137
void setTXRefFrequency(RefFrequency ref)
Sets the reference frequency setting for TX.
Definition tyt_extensions.cc:90
KillTone _killTone
Holds the kill tone setting.
Definition tyt_extensions.hh:153
bool allowInterrupt() const
Returns true if interrupt is allowed.
Definition tyt_extensions.cc:169
void enableCompressedUDPHeader(bool enable)
Enables/disables the compressed UDP header.
Definition tyt_extensions.cc:132
KillTone
Possible kill-tone settings.
Definition tyt_extensions.hh:60
InCallCriterion inCallCriterion() const
Returns the in-call criterion.
Definition tyt_extensions.cc:155
bool _compressedUDPHeader
Holds the compressed UDP header flag.
Definition tyt_extensions.hh:149
RefFrequency rxRefFrequency() const
Returns the reference frequency setting for RX.
Definition tyt_extensions.cc:71
void setDMRSquelch(Level sq)
Sets the squelch-level for DMR channels.
Definition tyt_extensions.cc:104
TyTButtonSettings * buttonSettings
The button settings for TyT devices.
Definition tyt_extensions.hh:947
Q_INVOKABLE TyTConfigExtension(QObject *parent=nullptr)
Constructor.
Definition tyt_extensions.cc:1177
TyTButtonSettings * _buttonSettings
Owns the button settings extension.
Definition tyt_extensions.hh:969
ConfigItem * clone() const
Clones this item.
Definition tyt_extensions.cc:1185
TyTMenuSettings * menuSettings
The menu settings for TyT devices.
Definition tyt_extensions.hh:949
TyTMenuSettings * _menuSettings
Owns the menu settings extension.
Definition tyt_extensions.hh:971
Represents the TyT menu settings extension.
Definition tyt_extensions.hh:357
bool _callLogMissed
If true, the list of missed calls is shown.
Definition tyt_extensions.hh:593
void enableScan(bool enable)
Enables/disables the scan menu item.
Definition tyt_extensions.cc:569
bool _talkaround
If true, the talkaround menu item is shown.
Definition tyt_extensions.hh:599
bool contactEditing
If true, the contact editing menu is shown.
Definition tyt_extensions.hh:369
bool _displayMode
If true, the display-mode settings menu item is shown.
Definition tyt_extensions.hh:619
void setHangTime(unsigned sec)
Sets the menu hang time in seconds.
Definition tyt_extensions.cc:460
bool remoteRadioDisable
If true, the remote radio disable menu item is shown.
Definition tyt_extensions.hh:379
bool _remoteMonitor
If true, the remote monitor menu item is shown.
Definition tyt_extensions.hh:583
void enableSquelch(bool enable)
Enables/disables the squelch menu item.
Definition tyt_extensions.cc:713
void enableCallAlert(bool enable)
Enables/disables the call alert menu item.
Definition tyt_extensions.cc:485
bool hangtimeIsInfinite
If true, the menu hang time is infinite.
Definition tyt_extensions.hh:361
bool callLogMissed
If true, the list of missed calls is shown.
Definition tyt_extensions.hh:385
bool _power
If true, the power settings menu item is shown.
Definition tyt_extensions.hh:603
bool radioProgramming
If true, radio programming on the radio is enabled.
Definition tyt_extensions.hh:413
void enableRemoteRadioDisable(bool enable)
Enables/disables the remote radio disable menu item.
Definition tyt_extensions.cc:557
bool _alertTone
If true, the alert-tone menu item is shown.
Definition tyt_extensions.hh:601
void enableBacklight(bool enable)
Enables/disables the backlight menu item.
Definition tyt_extensions.cc:665
bool textMessage
If true, the text message menu is shown.
Definition tyt_extensions.hh:365
bool _callLogOutgoing
If true, the list of outgoing calls is shown.
Definition tyt_extensions.hh:597
bool scanListEditing
If true, the scan list editing is enabled.
Definition tyt_extensions.hh:383
bool _ledIndicator
If true, the LED indicator settings menu item is shown.
Definition tyt_extensions.hh:611
void enableGPSInformation(bool enable)
Enables/disables the GPS information menu item.
Definition tyt_extensions.cc:773
bool _backlight
If true, the backlight menu item is shown.
Definition tyt_extensions.hh:605
bool _textMessage
If true, the text message menu is shown.
Definition tyt_extensions.hh:573
bool _gpsInformation
If true, the positioning settings menu item is shown.
Definition tyt_extensions.hh:623
bool talkaround
If true, the talkaround menu item is shown.
Definition tyt_extensions.hh:391
Q_INVOKABLE TyTMenuSettings(QObject *parent=nullptr)
Constructor.
Definition tyt_extensions.cc:411
bool scan
If true, the scan menu item is shown.
Definition tyt_extensions.hh:381
bool displayMode
If true, the display-mode settings menu item is shown.
Definition tyt_extensions.hh:411
void enablePassword(bool enable)
Enables/disables the password menu item.
Definition tyt_extensions.cc:737
unsigned _hangTime
The menu hang time in seconds.
Definition tyt_extensions.hh:571
void enableRemoteRadioCheck(bool enable)
Enables/disables the remote radio check menu item.
Definition tyt_extensions.cc:521
void enableCallLogOutgoing(bool enable)
Enables/disables the list of outgoing calls menu item.
Definition tyt_extensions.cc:617
bool _bootScreen
If true, the boot-screen settings menu item is shown.
Definition tyt_extensions.hh:607
bool _scanListEditing
If true, the scan list editing is enabled.
Definition tyt_extensions.hh:591
void enableBootScreen(bool enable)
Enables/disables the boot screen menu item.
Definition tyt_extensions.cc:677
bool _contactEditing
If true, the contact editing menu is shown.
Definition tyt_extensions.hh:577
bool _password
If true, the password menu item is shown.
Definition tyt_extensions.hh:617
bool ledIndicator
If true, the LED indicator settings menu item is shown.
Definition tyt_extensions.hh:403
void enableAlertTone(bool enable)
Enables/disables the alert tone menu item.
Definition tyt_extensions.cc:641
bool password
If true, the password menu item is shown.
Definition tyt_extensions.hh:409
bool gpsInformation
If true, the positioning settings menu item is shown.
Definition tyt_extensions.hh:415
bool remoteMonitor
If true, the remote monitor menu item is shown.
Definition tyt_extensions.hh:375
bool _scan
If true, the scan menu item is shown.
Definition tyt_extensions.hh:589
bool _callAlert
If true, the call-alert menu item is shown.
Definition tyt_extensions.hh:575
bool _squelch
If true, the squelch settings menu item is shown.
Definition tyt_extensions.hh:613
bool remoteRadioCheck
If true, the remote radio check menu item is shown.
Definition tyt_extensions.hh:373
bool _manualDial
If true, the manual dial menu item is shown.
Definition tyt_extensions.hh:579
bool vox
If true, the VOX settings menu item is shown.
Definition tyt_extensions.hh:407
bool keypadLock
If true, the keypad-lock settings menu item is shown.
Definition tyt_extensions.hh:401
void enableTalkaround(bool enable)
Enables/disables the talkaround menu item.
Definition tyt_extensions.cc:629
bool bootScreen
If true, the boot-screen settings menu item is shown.
Definition tyt_extensions.hh:399
void enableScanListEditing(bool enable)
Enables/disables the scan list editing menu item.
Definition tyt_extensions.cc:581
bool callLogAnswered
If true, the list of answered calls is shown.
Definition tyt_extensions.hh:387
void enableCallLogAnswered(bool enable)
Enables/disables the list of answered calls menu item.
Definition tyt_extensions.cc:605
bool alertTone
If true, the alert-tone menu item is shown.
Definition tyt_extensions.hh:393
void enableLEDIndicator(bool enable)
Enables/disables the LED indicator menu item.
Definition tyt_extensions.cc:701
void enableCallLogMissed(bool enable)
Enables/disables the list of missed calls menu item.
Definition tyt_extensions.cc:593
void enableRemoteRadioEnable(bool enable)
Enables/disables the remote radio enable menu item.
Definition tyt_extensions.cc:545
void enableKeypadLock(bool enable)
Enables/disables the keypad lock menu item.
Definition tyt_extensions.cc:689
bool power
If true, the power settings menu item is shown.
Definition tyt_extensions.hh:395
bool _remoteRadioCheck
If true, the remote radio check menu item is shown.
Definition tyt_extensions.hh:581
void enableDisplayMode(bool enable)
Enables/disables the display mode menu item.
Definition tyt_extensions.cc:749
void enableManualDial(bool enable)
Enables/disables the manual dial menu item.
Definition tyt_extensions.cc:509
bool backlight
If true, the backlight menu item is shown.
Definition tyt_extensions.hh:397
bool callLogOutgoing
If true, the list of outgoing calls is shown.
Definition tyt_extensions.hh:389
void enableVOX(bool enable)
Enables/disables the VOX menu item.
Definition tyt_extensions.cc:725
void setHangtimeInfinite(bool infinite)
Enables/disables infinite hang time.
Definition tyt_extensions.cc:445
bool _callLogAnswered
If true, the list of answered calls is shown.
Definition tyt_extensions.hh:595
bool manualDial
If true, the manual dial menu item is shown.
Definition tyt_extensions.hh:371
void enableContactEditing(bool enable)
Enables/disables contact editing.
Definition tyt_extensions.cc:497
void enablePower(bool enable)
Enables/disables the power menu item.
Definition tyt_extensions.cc:653
bool _keypadLock
If true, the keypad-lock settings menu item is shown.
Definition tyt_extensions.hh:609
bool _radioProgramming
If true, radio programming on the radio is enabled.
Definition tyt_extensions.hh:621
void enableRadioProgramming(bool enable)
Enables/disables the radio programming menu item.
Definition tyt_extensions.cc:761
bool _remoteRadioEnable
If true, the remote radio enable menu item is shown.
Definition tyt_extensions.hh:585
bool remoteRadioEnable
If true, the remote radio enable menu item is shown.
Definition tyt_extensions.hh:377
bool squelch
If true, the squelch settings menu item is shown.
Definition tyt_extensions.hh:405
bool _vox
If true, the VOX settings menu item is shown.
Definition tyt_extensions.hh:615
bool callAlert
If true, the call-alert menu item is shown.
Definition tyt_extensions.hh:367
void enableRemoteMonitor(bool enable)
Enables/disables the remote monitor menu item.
Definition tyt_extensions.cc:533
bool _inifiniteHangTime
If true, the menu hang time is infinite.
Definition tyt_extensions.hh:569
void enableTextMessage(bool enable)
Enables/disables the text message menu item.
Definition tyt_extensions.cc:473
unsigned hangTime
The menu hang time in seconds.
Definition tyt_extensions.hh:363
ConfigItem * clone() const
Clones this item.
Definition tyt_extensions.cc:424
bool _remoteRadioDisable
If true, the remote radio disable menu item is shown.
Definition tyt_extensions.hh:587
unsigned _prioritySampleTime
The sample time for priority channels in ms.
Definition tyt_extensions.hh:199
Q_INVOKABLE TyTScanListExtension(QObject *parent=nullptr)
Default constructor.
Definition tyt_extensions.cc:199
ConfigItem * clone() const
Clones this item.
Definition tyt_extensions.cc:206
void setHoldTime(unsigned ms)
Sets the hold time im ms.
Definition tyt_extensions.cc:220
unsigned holdTime
Holds the hold time in ms.
Definition tyt_extensions.hh:172
unsigned _holdTime
The hold time in ms.
Definition tyt_extensions.hh:197
unsigned prioritySampleTime
Holds the sample time in ms for priority channels.
Definition tyt_extensions.hh:174
void setPrioritySampleTime(unsigned ms)
Sets the sample time for priority channels in ms.
Definition tyt_extensions.cc:232
Represents the TyT general settings extension.
Definition tyt_extensions.hh:630
void enableChannelMode(bool enable)
Enables/disables channel mode for the radio.
Definition tyt_extensions.cc:938
bool _privateCallMatch
If true, the private call IDs must match.
Definition tyt_extensions.hh:932
unsigned radioProgPassword
If radioProgPasswordEnabled is true, specifies the radio programming password.
Definition tyt_extensions.hh:696
unsigned _powerOnPassword
Holds the power-on password.
Definition tyt_extensions.hh:924
unsigned analogScanHangTime
The analog channel scan hang time in ms.
Definition tyt_extensions.hh:680
bool _channelMode
If true, the radio is in channel (memory) mode.
Definition tyt_extensions.hh:892
bool channelFreeIndicationTone
If true, the channel free tone is enabled.
Definition tyt_extensions.hh:644
unsigned _lowBatteryWarnInterval
Holds the low-battery warn interval.
Definition tyt_extensions.hh:900
unsigned channelHangTime
Holds the channel hang time in ms.
Definition tyt_extensions.hh:700
unsigned lowBatteryWarnInterval
The low battery warn interval in seconds.
Definition tyt_extensions.hh:668
unsigned _txPreambleDuration
Holds the TX preamble duration.
Definition tyt_extensions.hh:894
void setMonitorType(MonitorType type)
Sets the monitor type.
Definition tyt_extensions.cc:817
void enableBootPicture(bool enable)
Enables the boot picture.
Definition tyt_extensions.cc:925
unsigned _groupCallHangTime
Holds the group-call hang time.
Definition tyt_extensions.hh:896
bool channelModeA
If true or channelMode is true, the VFO A is in channel mode.
Definition tyt_extensions.hh:664
bool channelModeB
If true or channelMode is true, the VFO B is in channel mode.
Definition tyt_extensions.hh:666
void enableRadioProgPassword(bool enable)
Enables the radio programming password.
Definition tyt_extensions.cc:1124
MonitorType monitorType
The monitor type setting.
Definition tyt_extensions.hh:634
void setLowBatteryWarnInterval(unsigned sec)
Sets the low-battery warn interval in seconds.
Definition tyt_extensions.cc:972
void setRadioProgPassword(unsigned passwd)
Sets the radio programming password.
Definition tyt_extensions.cc:1135
void enableChannelFreeIndicationTone(bool enable)
Enables channel-free indication tone.
Definition tyt_extensions.cc:877
bool _channelModeB
If true or channelMode is true, the VFO B is in channel (memory) mode.
Definition tyt_extensions.hh:890
void setCallAlertToneDuration(unsigned sec)
Sets the call alert-tone duration in seconds.
Definition tyt_extensions.cc:995
callbool bootPicture
If true, a picture is shown during boot.
Definition tyt_extensions.hh:660
unsigned _backlightDuration
Holds the backlight duration.
Definition tyt_extensions.hh:916
void setPCProgPassword(const QString &passwd)
Sets PC programming password.
Definition tyt_extensions.cc:1147
bool allLEDsDisabled
If true, all LEDs are disabled.
Definition tyt_extensions.hh:636
bool radioProgPasswordEnabled
If true the radio programming password is enabled.
Definition tyt_extensions.hh:694
unsigned loneWorkerResponseTime
The lone-worker response time in minutes.
Definition tyt_extensions.hh:674
unsigned callAlertToneDuration
The call alert duration in seconds.
Definition tyt_extensions.hh:672
void enableKeypadLockManual(bool enable)
Sets the keypad lock to manual.
Definition tyt_extensions.cc:1078
bool powerSaveMode
If true, the power save mode is enabled.
Definition tyt_extensions.hh:648
bool powerOnPasswordEnabled
If true the power-on password is enabled.
Definition tyt_extensions.hh:690
bool _powerOnPasswordEnabled
If true, the power-on password is enabled.
Definition tyt_extensions.hh:922
bool _allTonesDisabled
If true, all tones are disabled.
Definition tyt_extensions.hh:880
unsigned _digitalScanHangTime
Holds the scan hang-time for digital channels.
Definition tyt_extensions.hh:910
bool backlightAlwaysOn
If true, the backlight is always on.
Definition tyt_extensions.hh:682
bool callAlertToneContinuous
If true, the call alert-tone is continuous.
Definition tyt_extensions.hh:670
QString _pcProgPassword
Holds the PC programming password.
Definition tyt_extensions.hh:930
unsigned digitalScanHangTime
The digital channel scan hang time in ms.
Definition tyt_extensions.hh:678
void disableAllLEDs(bool disable)
Disables all LEDs.
Definition tyt_extensions.cc:829
bool allTonesDisabled
If true, all tones are disabled.
Definition tyt_extensions.hh:646
void enableWakeupPreamble(bool enable)
Enables transmission of wakeup preamble.
Definition tyt_extensions.cc:913
unsigned backlightDuration
If backlightAlwaysOn is false, specifies the backlight duration in seconds.
Definition tyt_extensions.hh:684
bool talkPermitToneDigital
If true, the talk permit tone for digital channels is enabled.
Definition tyt_extensions.hh:638
void enableChannelModeA(bool enable)
Enables/disables channel mode for the VFO A.
Definition tyt_extensions.cc:949
bool talkPermitToneAnalog
If true, the talk permit tone for analog channels is enabled.
Definition tyt_extensions.hh:640
bool passwordAndLock
If true, the password and lock is enabled.
Definition tyt_extensions.hh:642
void setLoneWorkerReminderTime(unsigned sec)
Sets the lone-worker reminder timer in seconds.
Definition tyt_extensions.cc:1019
unsigned _privateCallHangTime
Holds the private-call hang time.
Definition tyt_extensions.hh:898
unsigned powerOnPassword
If powerOnPasswordEnabled is true, specifies the power-on password.
Definition tyt_extensions.hh:692
bool _channelModeA
If true or channelMode is true, the VFO A is in channel (memory) mode.
Definition tyt_extensions.hh:888
unsigned keypadLockTime
If keypadLockManual is false, specifies the keypad lock time.
Definition tyt_extensions.hh:688
bool _channelFreeIndicationTone
If true, the channel free indication tone is enabled.
Definition tyt_extensions.hh:878
unsigned _loneWorkerReminderTime
Holds the lone-worker reminder time.
Definition tyt_extensions.hh:908
Q_INVOKABLE TyTSettingsExtension(QObject *parent=nullptr)
Possible monitor types.
Definition tyt_extensions.cc:784
bool _talkPermitToneDigital
If true the talk-permit tone is enabled for digital channels.
Definition tyt_extensions.hh:872
void setKeypadLockTime(unsigned sec)
Sets the keypad lock time in seconds.
Definition tyt_extensions.cc:1089
bool _wakeupPreamble
If true, the wake-up preamble is sent.
Definition tyt_extensions.hh:884
bool _groupCallMatch
If true, the group call IDs must match.
Definition tyt_extensions.hh:934
void enablePowerSaveMode(bool enable)
Enables the power save mode.
Definition tyt_extensions.cc:901
bool _radioProgPasswordEnabled
If true, the radio programming password is enabled.
Definition tyt_extensions.hh:926
void enableTalkPermitToneDigital(bool enable)
Enables the talk permit tone for digital channels.
Definition tyt_extensions.cc:841
void enableChannelModeB(bool enable)
Enables/disables channel mode for the VFO B.
Definition tyt_extensions.cc:960
bool keypadLockManual
If true, the keypad is locked manually.
Definition tyt_extensions.hh:686
unsigned _analogScanHangTime
Holds the scan hang-time for analog channels.
Definition tyt_extensions.hh:912
void enableTalkPermitToneAnalog(bool enable)
Enables the talk permit tone for analog channels.
Definition tyt_extensions.cc:853
unsigned _keypadLockTime
Holds the keypad lock time.
Definition tyt_extensions.hh:920
unsigned loneWorkerReminderTime
The lone-worker reminder time in seconds.
Definition tyt_extensions.hh:676
bool wakeupPreamble() const
Returns true if the wake-up preamble is sent.
Definition tyt_extensions.cc:909
void setChannelHangTime(unsigned ms)
Sets the channel hang time in ms.
Definition tyt_extensions.cc:1159
bool _powerSaveMode
If true, the power save mode is enabled.
Definition tyt_extensions.hh:882
bool _talkPermitToneAnalog
If true the talk-permit tone is enabled for analog channels.
Definition tyt_extensions.hh:874
bool _passwdAndLock
If true the password and lock is enabled.
Definition tyt_extensions.hh:876
void enableBacklightAlwaysOn(bool enable)
Enables the backlight continuously.
Definition tyt_extensions.cc:1055
bool _keypadLockManual
If true, the keypad lock is manual.
Definition tyt_extensions.hh:918
unsigned _callAlertToneDuration
Holds the call alert-tone duration.
Definition tyt_extensions.hh:904
void setAnalogScanHangTime(unsigned ms)
Sets the scan hang-time for analog channels.
Definition tyt_extensions.cc:1043
void setDigitalScanHangTime(unsigned ms)
Sets the scan hang-time for digital channels.
Definition tyt_extensions.cc:1031
void enablePasswordAndLock(bool enable)
Enables the password and lock.
Definition tyt_extensions.cc:865
bool _callAlertToneContinuous
If true, the call alert-tone is continuous.
Definition tyt_extensions.hh:902
MonitorType _monitorType
Holds the monitor type.
Definition tyt_extensions.hh:868
void enableCallAlertToneContinuous(bool enable)
Sets the call alert-tone continuous.
Definition tyt_extensions.cc:984
bool _allLEDsDisabled
If true all LEDs are disabled.
Definition tyt_extensions.hh:870
void enablePowerOnPassword(bool enable)
Enables the power on password.
Definition tyt_extensions.cc:1101
void setPowerOnPassword(unsigned passwd)
Sets the power-on password.
Definition tyt_extensions.cc:1112
unsigned _channelHangTime
Holds the channel hang time in ms.
Definition tyt_extensions.hh:936
void setBacklightDuration(unsigned sec)
Sets the backlight duration in seconds.
Definition tyt_extensions.cc:1066
bool _backlightAlwaysOn
If true, the backlight is always on.
Definition tyt_extensions.hh:914
bool channelMode
If true, the radio is in channel mode.
Definition tyt_extensions.hh:662
unsigned _radioProgPassword
Holds the radio programming password.
Definition tyt_extensions.hh:928
bool _bootPicture
If true the boot picture is enabled.
Definition tyt_extensions.hh:886
unsigned _loneWorkerResponseTime
Holds the lone-worker response time.
Definition tyt_extensions.hh:906
QString pcProgPassword
Specifies the PC programming password.
Definition tyt_extensions.hh:698
void setLoneWorkerResponseTime(unsigned min)
Sets the lone-worker response time in minutes.
Definition tyt_extensions.cc:1007
void disableAllTones(bool disable)
Disables all tones.
Definition tyt_extensions.cc:889