libdrmconf 0.12.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
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
62public:
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
81public:
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
162public:
163 /*ConfigItem *allocateChild(QMetaProperty &prop, const YAML::Node &node,
164 const Context &ctx, const ErrorStack &err=ErrorStack());*/
165
166protected:
167 // Common properties
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)
221
222public:
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
237public:
238 /*ConfigItem *allocateChild(QMetaProperty &prop, const YAML::Node &node,
239 const Context &ctx, const ErrorStack &err=ErrorStack());*/
240
241protected:
243 unsigned _holdTime;
246};
247
248
252{
253 Q_OBJECT
254
256 Q_PROPERTY(ButtonAction sideButton1Short READ sideButton1Short WRITE setSideButton1Short)
258 Q_PROPERTY(ButtonAction sideButton1Long READ sideButton1Long WRITE setSideButton1Long)
260 Q_PROPERTY(ButtonAction sideButton2Short READ sideButton2Short WRITE setSideButton2Short)
262 Q_PROPERTY(ButtonAction sideButton2Long READ sideButton2Long WRITE setSideButton2Long)
264 Q_PROPERTY(ButtonAction sideButton3Short READ sideButton3Short WRITE setSideButton3Short)
266 Q_PROPERTY(ButtonAction sideButton3Long READ sideButton3Long WRITE setSideButton3Long)
268 Q_PROPERTY(ButtonAction progButton1Short READ progButton1Short WRITE setProgButton1Short)
270 Q_PROPERTY(ButtonAction progButton1Long READ progButton1Long WRITE setProgButton1Long)
272 Q_PROPERTY(ButtonAction progButton2Short READ progButton2Short WRITE setProgButton2Short)
274 Q_PROPERTY(ButtonAction progButton2Long READ progButton2Long WRITE setProgButton2Long)
275
277 Q_PROPERTY(unsigned longPressDuration READ longPressDuration WRITE setLongPressDuration)
278
279public:
282 Disabled = 0,
283 ToggleAllAlertTones = 1,
284 EmergencyOn = 2,
285 EmergencyOff = 3,
286 PowerSelect = 4,
287 MonitorToggle = 5,
288 NuisanceDelete = 6,
289 OneTouch1 = 7,
290 OneTouch2 = 8,
291 OneTouch3 = 9,
292 OneTouch4 = 10,
293 OneTouch5 = 11,
294 OneTouch6 = 12,
295 RepeaterTalkaroundToggle = 13,
296 ScanToggle = 14,
297 SquelchToggle = 21,
298 PrivacyToggle = 22,
299 VoxToggle = 23,
300 ZoneIncrement = 24,
301 BatteryIndicator = 26,
302 ManualDialForPrivate = 30,
303 LoneWorkerToggle = 31,
304 RecordToggle = 34,
305 RecordPlayback = 35,
306 RecordDeleteAll = 36,
307 Tone1750Hz = 38,
308 SwitchUpDown = 47,
309 RightKey = 48,
310 LeftKey = 49,
311 ZoneDecrement = 55,
312 SetTalkgroup = 81,
313 PromiscuousToggle = 86
314 };
315 Q_ENUM(ButtonAction)
316
317public:
319 Q_INVOKABLE explicit TyTButtonSettings(QObject *parent=nullptr);
320
321 ConfigItem *clone() const;
322
324 ButtonAction sideButton1Short() const;
326 void setSideButton1Short(ButtonAction action);
328 ButtonAction sideButton1Long() const;
330 void setSideButton1Long(ButtonAction action);
331
333 ButtonAction sideButton2Short() const;
335 void setSideButton2Short(ButtonAction action);
337 ButtonAction sideButton2Long() const;
339 void setSideButton2Long(ButtonAction action);
340
342 ButtonAction sideButton3Short() const;
344 void setSideButton3Short(ButtonAction action);
346 ButtonAction sideButton3Long() const;
348 void setSideButton3Long(ButtonAction action);
349
351 ButtonAction progButton1Short() const;
353 void setProgButton1Short(ButtonAction action);
355 ButtonAction progButton1Long() const;
357 void setProgButton1Long(ButtonAction action);
358
360 ButtonAction progButton2Short() const;
362 void setProgButton2Short(ButtonAction action);
364 ButtonAction progButton2Long() const;
366 void setProgButton2Long(ButtonAction action);
367
369 unsigned longPressDuration() const;
371 void setLongPressDuration(unsigned dur);
372
373protected:
394
397};
398
399
403{
404 Q_OBJECT
405
407 Q_PROPERTY(bool hangtimeIsInfinite READ hangtimeIsInfinite WRITE setHangtimeInfinite)
409 Q_PROPERTY(unsigned hangTime READ hangTime WRITE setHangTime)
411 Q_PROPERTY(bool textMessage READ textMessage WRITE enableTextMessage)
413 Q_PROPERTY(bool callAlert READ callAlert WRITE enableCallAlert)
415 Q_PROPERTY(bool contactEditing READ contactEditing WRITE enableContactEditing)
417 Q_PROPERTY(bool manualDial READ manualDial WRITE enableManualDial)
419 Q_PROPERTY(bool remoteRadioCheck READ remoteRadioCheck WRITE enableRemoteRadioCheck)
421 Q_PROPERTY(bool remoteMonitor READ remoteMonitor WRITE enableRemoteMonitor)
423 Q_PROPERTY(bool remoteRadioEnable READ remoteRadioEnable WRITE enableRemoteRadioEnable)
425 Q_PROPERTY(bool remoteRadioDisable READ remoteRadioDisable WRITE enableRemoteRadioDisable)
427 Q_PROPERTY(bool scan READ scan WRITE enableScan)
429 Q_PROPERTY(bool scanListEditing READ scanListEditing WRITE enableScanListEditing)
431 Q_PROPERTY(bool callLogMissed READ callLogMissed WRITE enableCallLogMissed)
433 Q_PROPERTY(bool callLogAnswered READ callLogAnswered WRITE enableCallLogAnswered)
435 Q_PROPERTY(bool callLogOutgoing READ callLogOutgoing WRITE enableCallLogOutgoing)
437 Q_PROPERTY(bool talkaround READ talkaround WRITE enableTalkaround)
439 Q_PROPERTY(bool alertTone READ alertTone WRITE enableAlertTone)
441 Q_PROPERTY(bool power READ power WRITE enablePower)
443 Q_PROPERTY(bool backlight READ backlight WRITE enableBacklight)
445 Q_PROPERTY(bool bootScreen READ bootScreen WRITE enableBootScreen)
447 Q_PROPERTY(bool keypadLock READ keypadLock WRITE enableKeypadLock)
449 Q_PROPERTY(bool ledIndicator READ ledIndicator WRITE enableLEDIndicator)
451 Q_PROPERTY(bool squelch READ squelch WRITE enableSquelch)
453 Q_PROPERTY(bool vox READ vox WRITE enableVOX)
455 Q_PROPERTY(bool password READ password WRITE enablePassword)
457 Q_PROPERTY(bool displayMode READ displayMode WRITE enableDisplayMode)
459 Q_PROPERTY(bool radioProgramming READ radioProgramming WRITE enableRadioProgramming)
461 Q_PROPERTY(bool gpsInformation READ gpsInformation WRITE enableGPSInformation)
462
463public:
465 Q_INVOKABLE explicit TyTMenuSettings(QObject *parent=nullptr);
466
467 ConfigItem *clone() const;
468
470 bool hangtimeIsInfinite() const;
472 void setHangtimeInfinite(bool infinite);
473
475 unsigned hangTime() const;
477 void setHangTime(unsigned sec);
478
480 bool textMessage() const;
482 void enableTextMessage(bool enable);
483
485 bool callAlert() const;
487 void enableCallAlert(bool enable);
488
490 bool contactEditing() const;
492 void enableContactEditing(bool enable);
493
495 bool manualDial() const;
497 void enableManualDial(bool enable);
498
500 bool remoteRadioCheck() const;
502 void enableRemoteRadioCheck(bool enable);
503
505 bool remoteMonitor() const;
507 void enableRemoteMonitor(bool enable);
508
510 bool remoteRadioEnable() const;
512 void enableRemoteRadioEnable(bool enable);
513
515 bool remoteRadioDisable() const;
517 void enableRemoteRadioDisable(bool enable);
518
520 bool scan() const;
522 void enableScan(bool enable);
523
525 bool scanListEditing() const;
527 void enableScanListEditing(bool enable);
528
530 bool callLogMissed() const;
532 void enableCallLogMissed(bool enable);
533
535 bool callLogAnswered() const;
537 void enableCallLogAnswered(bool enable);
538
540 bool callLogOutgoing() const;
542 void enableCallLogOutgoing(bool enable);
543
545 bool talkaround() const;
547 void enableTalkaround(bool enable);
548
550 bool alertTone() const;
552 void enableAlertTone(bool enable);
553
555 bool power() const;
557 void enablePower(bool enable);
558
560 bool backlight() const;
562 void enableBacklight(bool enable);
563
565 bool bootScreen() const;
567 void enableBootScreen(bool enable);
568
570 bool keypadLock() const;
572 void enableKeypadLock(bool enable);
573
575 bool ledIndicator() const;
577 void enableLEDIndicator(bool enable);
578
580 bool squelch() const;
582 void enableSquelch(bool enable);
583
585 bool vox() const;
587 void enableVOX(bool enable);
588
590 bool password() const;
592 void enablePassword(bool enable);
593
595 bool displayMode() const;
597 void enableDisplayMode(bool enable);
598
600 bool radioProgramming() const;
602 void enableRadioProgramming(bool enable);
603
605 bool gpsInformation() const;
607 void enableGPSInformation(bool enable);
608
609public:
610 /*ConfigItem *allocateChild(QMetaProperty &prop, const YAML::Node &node,
611 const Context &ctx, const ErrorStack &err=ErrorStack());*/
612
613protected:
615 bool _inifiniteHangTime;
617 unsigned _hangTime;
619 bool _textMessage;
621 bool _callAlert;
623 bool _contactEditing;
625 bool _manualDial;
627 bool _remoteRadioCheck;
629 bool _remoteMonitor;
631 bool _remoteRadioEnable;
633 bool _remoteRadioDisable;
635 bool _scan;
637 bool _scanListEditing;
639 bool _callLogMissed;
641 bool _callLogAnswered;
643 bool _callLogOutgoing;
645 bool _talkaround;
647 bool _alertTone;
649 bool _power;
651 bool _backlight;
653 bool _bootScreen;
655 bool _keypadLock;
657 bool _ledIndicator;
659 bool _squelch;
661 bool _vox;
663 bool _password;
665 bool _displayMode;
667 bool _radioProgramming;
669 bool _gpsInformation;
670};
671
672
676{
677 Q_OBJECT
678
680 Q_PROPERTY(MonitorType monitorType READ monitorType WRITE setMonitorType)
682 Q_PROPERTY(bool allLEDsDisabled READ allLEDsDisabled WRITE disableAllLEDs)
684 Q_PROPERTY(bool talkPermitToneDigital READ talkPermitToneDigital WRITE enableTalkPermitToneDigital)
686 Q_PROPERTY(bool talkPermitToneAnalog READ talkPermitToneAnalog WRITE enableTalkPermitToneAnalog)
688 Q_PROPERTY(bool passwordAndLock READ passwordAndLock WRITE enablePasswordAndLock)
690 Q_PROPERTY(bool channelFreeIndicationTone READ channelFreeIndicationTone WRITE enableChannelFreeIndicationTone)
692 Q_PROPERTY(bool allTonesDisabled READ allTonesDisabled WRITE disableAllTones)
694 Q_PROPERTY(bool powerSaveMode READ powerSaveMode WRITE enablePowerSaveMode)
695 Q_CLASSINFO("powerSaveModeDescription", "Puts the radio into sleep-mode when idle.")
696 Q_CLASSINFO("powerSaveModeLongDescription",
697 "When enabled, the radio enters a sleep mode when idle. That is, when on receive and "
698 "there is no activity on the current channel. However, the radio may need some time "
699 "to wake up from this mode. Hence, the 'wakeupPreamble' need to be enabled by all "
700 "radios in the network to provide this wake-up delay.")
702 Q_PROPERTY(bool wakeupPreamble READ wakeupPreamble WRITE enableWakeupPreamble)
703 Q_CLASSINFO("wakeupPreambleDescription", "If enabled, the radio will transmit a short wake-up "
704 "preamble before each call.")
706 Q_PROPERTY(bool bootPicture READ bootPicture WRITE enableBootPicture)
708 Q_PROPERTY(bool channelMode READ channelMode WRITE enableChannelMode)
710 Q_PROPERTY(bool channelModeA READ channelModeA WRITE enableChannelModeA)
712 Q_PROPERTY(bool channelModeB READ channelModeB WRITE enableChannelModeB)
714 Q_PROPERTY(unsigned txPreambleDuration READ txPreambleDuration WRITE setTXPreambleDuration)
716 Q_PROPERTY(unsigned groupCallHangTime READ groupCallHangTime WRITE setGroupCallHangTime)
718 Q_PROPERTY(unsigned privateCallHangTime READ privateCallHangTime WRITE setPrivateCallHangTime)
720 Q_PROPERTY(unsigned lowBatteryWarnInterval READ lowBatteryWarnInterval WRITE setLowBatteryWarnInterval)
722 Q_PROPERTY(bool callAlertToneContinuous READ callAlertToneContinuous WRITE enableCallAlertToneContinuous)
724 Q_PROPERTY(unsigned callAlertToneDuration READ callAlertToneDuration WRITE setCallAlertToneDuration)
726 Q_PROPERTY(unsigned loneWorkerResponseTime READ loneWorkerResponseTime WRITE setLoneWorkerResponseTime)
728 Q_PROPERTY(unsigned loneWorkerReminderTime READ loneWorkerReminderTime WRITE setLoneWorkerReminderTime)
730 Q_PROPERTY(unsigned digitalScanHangTime READ digitalScanHangTime WRITE setDigitalScanHangTime)
732 Q_PROPERTY(unsigned analogScanHangTime READ analogScanHangTime WRITE setAnalogScanHangTime)
734 Q_PROPERTY(bool backlightAlwaysOn READ backlightAlwaysOn WRITE enableBacklightAlwaysOn)
736 Q_PROPERTY(unsigned backlightDuration READ backlightDuration WRITE setBacklightDuration)
738 Q_PROPERTY(bool keypadLockManual READ keypadLockManual WRITE enableKeypadLockManual)
740 Q_PROPERTY(unsigned keypadLockTime READ keypadLockTime WRITE setKeypadLockTime)
742 Q_PROPERTY(bool powerOnPasswordEnabled READ powerOnPasswordEnabled WRITE enablePowerOnPassword)
744 Q_PROPERTY(unsigned powerOnPassword READ powerOnPassword WRITE setPowerOnPassword)
746 Q_PROPERTY(bool radioProgPasswordEnabled READ radioProgPasswordEnabled WRITE enableRadioProgPassword)
748 Q_PROPERTY(unsigned radioProgPassword READ radioProgPassword WRITE setRadioProgPassword)
750 Q_PROPERTY(QString pcProgPassword READ pcProgPassword WRITE setPCProgPassword)
752 Q_PROPERTY(bool privateCallMatch READ privateCallMatch WRITE enablePrivateCallMatch)
754 Q_PROPERTY(bool groupCallMatch READ groupCallMatch WRITE enableGroupCallMatch)
756 Q_PROPERTY(unsigned channelHangTime READ channelHangTime WRITE setChannelHangTime)
757
758 Q_CLASSINFO("description", "Settings for MD-390, RT8, MD-UV390, RT3S, MD-2017, RT82.")
759 Q_CLASSINFO("longDescription", "Device specific radio settings for TyT and Retevis devices."
760 "Including TyT MD-390, MD-UV390, MD-2017 as well as Retevis RT8, "
761 "RT3S and RT82.")
762
763public:
765 enum class MonitorType {
766 Silent=0, Open=1
767 };
768 Q_ENUM(MonitorType)
769
770public:
772 Q_INVOKABLE explicit TyTSettingsExtension(QObject *parent=nullptr);
773
774 ConfigItem *clone() const;
775
777 MonitorType monitorType() const;
779 void setMonitorType(MonitorType type);
780
782 bool allLEDsDisabled() const;
784 void disableAllLEDs(bool disable);
785
787 bool talkPermitToneDigital() const;
789 void enableTalkPermitToneDigital(bool enable);
790
792 bool talkPermitToneAnalog() const;
794 void enableTalkPermitToneAnalog(bool enable);
795
797 bool passwordAndLock() const;
799 void enablePasswordAndLock(bool enable);
800
802 bool channelFreeIndicationTone() const;
804 void enableChannelFreeIndicationTone(bool enable);
805
807 bool allTonesDisabled() const;
809 void disableAllTones(bool disable);
810
812 bool powerSaveMode() const;
814 void enablePowerSaveMode(bool enable);
815
817 bool wakeupPreamble() const;
819 void enableWakeupPreamble(bool enable);
820
822 bool bootPicture() const;
824 void enableBootPicture(bool enable);
825
827 bool channelMode() const;
829 void enableChannelMode(bool enable);
831 bool channelModeA() const;
833 void enableChannelModeA(bool enable);
835 bool channelModeB() const;
837 void enableChannelModeB(bool enable);
838
840 unsigned txPreambleDuration() const;
842 void setTXPreambleDuration(unsigned ms);
843
845 unsigned groupCallHangTime() const;
847 void setGroupCallHangTime(unsigned ms);
848
850 unsigned privateCallHangTime() const;
852 void setPrivateCallHangTime(unsigned ms);
853
855 unsigned lowBatteryWarnInterval() const;
857 void setLowBatteryWarnInterval(unsigned sec);
858
860 bool callAlertToneContinuous() const;
862 void enableCallAlertToneContinuous(bool enable);
864 unsigned callAlertToneDuration() const;
866 void setCallAlertToneDuration(unsigned sec);
867
869 unsigned loneWorkerResponseTime() const;
871 void setLoneWorkerResponseTime(unsigned min);
872
874 unsigned loneWorkerReminderTime() const;
876 void setLoneWorkerReminderTime(unsigned sec);
877
879 unsigned digitalScanHangTime() const;
881 void setDigitalScanHangTime(unsigned ms);
882
884 unsigned analogScanHangTime() const;
886 void setAnalogScanHangTime(unsigned ms);
887
889 bool backlightAlwaysOn() const;
891 void enableBacklightAlwaysOn(bool enable);
893 unsigned backlightDuration() const;
895 void setBacklightDuration(unsigned sec);
896
898 bool keypadLockManual() const;
900 void enableKeypadLockManual(bool enable);
902 unsigned keypadLockTime() const;
904 void setKeypadLockTime(unsigned sec);
905
907 bool powerOnPasswordEnabled() const;
909 void enablePowerOnPassword(bool enable);
911 unsigned powerOnPassword() const;
913 void setPowerOnPassword(unsigned passwd);
914
916 bool radioProgPasswordEnabled() const;
918 void enableRadioProgPassword(bool enable);
920 unsigned radioProgPassword() const;
922 void setRadioProgPassword(unsigned passwd);
923
925 const QString &pcProgPassword() const;
927 void setPCProgPassword(const QString &passwd);
928
930 bool privateCallMatch() const;
932 void enablePrivateCallMatch(bool enable);
934 bool groupCallMatch() const;
936 void enableGroupCallMatch(bool enable);
937
939 unsigned channelHangTime() const;
941 void setChannelHangTime(unsigned ms);
942
943public:
944 /*ConfigItem *allocateChild(QMetaProperty &prop, const YAML::Node &node,
945 const Context &ctx, const ErrorStack &err=ErrorStack());*/
946protected:
948 MonitorType _monitorType;
1017};
1018
1019
1023{
1024 Q_OBJECT
1025
1027 Q_PROPERTY(TyTButtonSettings* buttonSettings READ buttonSettings)
1029 Q_PROPERTY(TyTMenuSettings* menuSettings READ menuSettings)
1030
1031public:
1033 Q_INVOKABLE explicit TyTConfigExtension(QObject *parent=nullptr);
1034
1035 ConfigItem *clone() const;
1036
1038 TyTButtonSettings *buttonSettings() const;
1039
1041 TyTMenuSettings *menuSettings() const;
1042
1043public:
1044 /*ConfigItem *allocateChild(QMetaProperty &prop, const YAML::Node &node,
1045 const Context &ctx, const ErrorStack &err=ErrorStack());*/
1046
1047protected:
1049 TyTButtonSettings *_buttonSettings;
1051 TyTMenuSettings *_menuSettings;
1052};
1053
1054#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
Represents the TyT button settings extension.
Definition tyt_extensions.hh:252
unsigned _longPressDuration
Holds the long-press duration in ms.
Definition tyt_extensions.hh:396
ButtonAction _sideButton2Short
Holds the side button 2 short-press action.
Definition tyt_extensions.hh:379
ButtonAction _progButton1Long
Holds the prog button 1 long-press action.
Definition tyt_extensions.hh:389
ButtonAction _progButton1Short
Holds the prog button 1 short-press action.
Definition tyt_extensions.hh:387
ButtonAction _sideButton3Short
Holds the side button 3 short-press action.
Definition tyt_extensions.hh:383
ButtonAction _progButton2Short
Holds the prog button 2 short-press action.
Definition tyt_extensions.hh:391
ButtonAction _sideButton1Long
Holds the side button 1 long-press action.
Definition tyt_extensions.hh:377
ButtonAction _sideButton1Short
Holds the side button 1 short-press action.
Definition tyt_extensions.hh:375
ButtonAction _progButton2Long
Holds the prog button 2 long-press action.
Definition tyt_extensions.hh:393
ButtonAction _sideButton2Long
Holds the side button 2 long-press action.
Definition tyt_extensions.hh:381
ButtonAction
Possible actions for the side-buttons.
Definition tyt_extensions.hh:281
ButtonAction _sideButton3Long
Holds the side button 3 long-press action.
Definition tyt_extensions.hh:385
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:1023
Represents the TyT menu settings extension.
Definition tyt_extensions.hh:403
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
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:676
bool _privateCallMatch
If true, the private call IDs must match.
Definition tyt_extensions.hh:1012
unsigned _powerOnPassword
Holds the power-on password.
Definition tyt_extensions.hh:1004
bool _channelMode
If true, the radio is in channel (memory) mode.
Definition tyt_extensions.hh:972
unsigned _lowBatteryWarnInterval
Holds the low-battery warn interval.
Definition tyt_extensions.hh:980
unsigned _txPreambleDuration
Holds the TX preamble duration.
Definition tyt_extensions.hh:974
unsigned _groupCallHangTime
Holds the group-call hang time.
Definition tyt_extensions.hh:976
bool _channelModeB
If true or channelMode is true, the VFO B is in channel (memory) mode.
Definition tyt_extensions.hh:970
unsigned _backlightDuration
Holds the backlight duration.
Definition tyt_extensions.hh:996
bool _powerOnPasswordEnabled
If true, the power-on password is enabled.
Definition tyt_extensions.hh:1002
bool _allTonesDisabled
If true, all tones are disabled.
Definition tyt_extensions.hh:960
unsigned _digitalScanHangTime
Holds the scan hang-time for digital channels.
Definition tyt_extensions.hh:990
QString _pcProgPassword
Holds the PC programming password.
Definition tyt_extensions.hh:1010
unsigned _privateCallHangTime
Holds the private-call hang time.
Definition tyt_extensions.hh:978
bool _channelModeA
If true or channelMode is true, the VFO A is in channel (memory) mode.
Definition tyt_extensions.hh:968
bool _channelFreeIndicationTone
If true, the channel free indication tone is enabled.
Definition tyt_extensions.hh:958
unsigned _loneWorkerReminderTime
Holds the lone-worker reminder time.
Definition tyt_extensions.hh:988
bool _talkPermitToneDigital
If true the talk-permit tone is enabled for digital channels.
Definition tyt_extensions.hh:952
bool _wakeupPreamble
If true, the wake-up preamble is sent.
Definition tyt_extensions.hh:964
bool _groupCallMatch
If true, the group call IDs must match.
Definition tyt_extensions.hh:1014
bool _radioProgPasswordEnabled
If true, the radio programming password is enabled.
Definition tyt_extensions.hh:1006
unsigned _analogScanHangTime
Holds the scan hang-time for analog channels.
Definition tyt_extensions.hh:992
unsigned _keypadLockTime
Holds the keypad lock time.
Definition tyt_extensions.hh:1000
bool _powerSaveMode
If true, the power save mode is enabled.
Definition tyt_extensions.hh:962
bool _talkPermitToneAnalog
If true the talk-permit tone is enabled for analog channels.
Definition tyt_extensions.hh:954
bool _passwdAndLock
If true the password and lock is enabled.
Definition tyt_extensions.hh:956
bool _keypadLockManual
If true, the keypad lock is manual.
Definition tyt_extensions.hh:998
unsigned _callAlertToneDuration
Holds the call alert-tone duration.
Definition tyt_extensions.hh:984
bool _callAlertToneContinuous
If true, the call alert-tone is continuous.
Definition tyt_extensions.hh:982
MonitorType _monitorType
Holds the monitor type.
Definition tyt_extensions.hh:948
bool _allLEDsDisabled
If true all LEDs are disabled.
Definition tyt_extensions.hh:950
unsigned _channelHangTime
Holds the channel hang time in ms.
Definition tyt_extensions.hh:1016
bool _backlightAlwaysOn
If true, the backlight is always on.
Definition tyt_extensions.hh:994
unsigned _radioProgPassword
Holds the radio programming password.
Definition tyt_extensions.hh:1008
bool _bootPicture
If true the boot picture is enabled.
Definition tyt_extensions.hh:966
unsigned _loneWorkerResponseTime
Holds the lone-worker response time.
Definition tyt_extensions.hh:986
Implements an USB interface to the TYT MD-UV390 & Retevis RT3S VHF/UHF 5W DMR (Tier I&II) radios.
Definition uv390.hh:37