libdrmconf 0.14.0
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{
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
33
34
38
39
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
61 Tone259_2Hz=0, Tone55_2Hz=1, Off=3
62 };
63 Q_ENUM(KillTone)
64
65
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{
170
175
176public:
179
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
197 unsigned _holdTime;
200};
201
202
206{
208
210 Q_PROPERTY(ButtonAction sideButton1Short READ sideButton1Short WRITE setSideButton1Short)
212 Q_PROPERTY(ButtonAction sideButton1Long READ sideButton1Long WRITE setSideButton1Long)
214 Q_PROPERTY(ButtonAction sideButton2Short READ sideButton2Short WRITE setSideButton2Short)
216 Q_PROPERTY(ButtonAction sideButton2Long READ sideButton2Long WRITE setSideButton2Long)
218 Q_PROPERTY(ButtonAction sideButton3Short READ sideButton3Short WRITE setSideButton3Short)
220 Q_PROPERTY(ButtonAction sideButton3Long READ sideButton3Long WRITE setSideButton3Long)
222 Q_PROPERTY(ButtonAction progButton1Short READ progButton1Short WRITE setProgButton1Short)
224 Q_PROPERTY(ButtonAction progButton1Long READ progButton1Long WRITE setProgButton1Long)
226 Q_PROPERTY(ButtonAction progButton2Short READ progButton2Short WRITE setProgButton2Short)
228 Q_PROPERTY(ButtonAction progButton2Long READ progButton2Long WRITE setProgButton2Long)
229
231 Q_PROPERTY(unsigned longPressDuration READ longPressDuration WRITE setLongPressDuration)
232
233public:
236 Disabled = 0,
237 ToggleAllAlertTones = 1,
238 EmergencyOn = 2,
239 EmergencyOff = 3,
240 PowerSelect = 4,
241 MonitorToggle = 5,
242 NuisanceDelete = 6,
243 OneTouch1 = 7,
244 OneTouch2 = 8,
245 OneTouch3 = 9,
246 OneTouch4 = 10,
247 OneTouch5 = 11,
248 OneTouch6 = 12,
249 RepeaterTalkaroundToggle = 13,
250 ScanToggle = 14,
251 SquelchToggle = 21,
252 PrivacyToggle = 22,
253 VoxToggle = 23,
254 ZoneIncrement = 24,
255 BatteryIndicator = 26,
256 ManualDialForPrivate = 30,
257 LoneWorkerToggle = 31,
258 RecordToggle = 34,
259 RecordPlayback = 35,
260 RecordDeleteAll = 36,
261 Tone1750Hz = 38,
262 SwitchUpDown = 47,
263 RightKey = 48,
264 LeftKey = 49,
265 ZoneDecrement = 55,
266 SetTalkgroup = 81,
267 PromiscuousToggle = 86
268 };
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
361 Q_PROPERTY(bool hangtimeIsInfinite READ hangtimeIsInfinite WRITE setHangtimeInfinite)
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)
369 Q_PROPERTY(bool contactEditing READ contactEditing WRITE enableContactEditing)
371 Q_PROPERTY(bool manualDial READ manualDial WRITE enableManualDial)
373 Q_PROPERTY(bool remoteRadioCheck READ remoteRadioCheck WRITE enableRemoteRadioCheck)
375 Q_PROPERTY(bool remoteMonitor READ remoteMonitor WRITE enableRemoteMonitor)
377 Q_PROPERTY(bool remoteRadioEnable READ remoteRadioEnable WRITE enableRemoteRadioEnable)
379 Q_PROPERTY(bool remoteRadioDisable READ remoteRadioDisable WRITE enableRemoteRadioDisable)
381 Q_PROPERTY(bool scan READ scan WRITE enableScan)
383 Q_PROPERTY(bool scanListEditing READ scanListEditing WRITE enableScanListEditing)
385 Q_PROPERTY(bool callLogMissed READ callLogMissed WRITE enableCallLogMissed)
387 Q_PROPERTY(bool callLogAnswered READ callLogAnswered WRITE enableCallLogAnswered)
389 Q_PROPERTY(bool callLogOutgoing READ callLogOutgoing WRITE enableCallLogOutgoing)
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)
413 Q_PROPERTY(bool radioProgramming READ radioProgramming WRITE enableRadioProgramming)
415 Q_PROPERTY(bool gpsInformation READ gpsInformation WRITE enableGPSInformation)
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:
569 bool _inifiniteHangTime;
571 unsigned _hangTime;
573 bool _textMessage;
575 bool _callAlert;
577 bool _contactEditing;
579 bool _manualDial;
581 bool _remoteRadioCheck;
583 bool _remoteMonitor;
585 bool _remoteRadioEnable;
587 bool _remoteRadioDisable;
589 bool _scan;
591 bool _scanListEditing;
593 bool _callLogMissed;
595 bool _callLogAnswered;
597 bool _callLogOutgoing;
599 bool _talkaround;
601 bool _alertTone;
603 bool _power;
605 bool _backlight;
607 bool _bootScreen;
609 bool _keypadLock;
611 bool _ledIndicator;
613 bool _squelch;
615 bool _vox;
617 bool _password;
619 bool _displayMode;
621 bool _radioProgramming;
623 bool _gpsInformation;
624};
625
626
630{
631 Q_OBJECT
632
634 Q_PROPERTY(MonitorType monitorType READ monitorType WRITE setMonitorType)
636 Q_PROPERTY(bool allLEDsDisabled READ allLEDsDisabled WRITE disableAllLEDs)
638 Q_PROPERTY(bool talkPermitToneDigital READ talkPermitToneDigital WRITE enableTalkPermitToneDigital)
640 Q_PROPERTY(bool talkPermitToneAnalog READ talkPermitToneAnalog WRITE enableTalkPermitToneAnalog)
642 Q_PROPERTY(bool passwordAndLock READ passwordAndLock WRITE enablePasswordAndLock)
644 Q_PROPERTY(bool channelFreeIndicationTone READ channelFreeIndicationTone WRITE enableChannelFreeIndicationTone)
646 Q_PROPERTY(bool allTonesDisabled READ allTonesDisabled WRITE disableAllTones)
648 Q_PROPERTY(bool powerSaveMode READ powerSaveMode WRITE enablePowerSaveMode)
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)
668 Q_PROPERTY(unsigned lowBatteryWarnInterval READ lowBatteryWarnInterval WRITE setLowBatteryWarnInterval)
670 Q_PROPERTY(bool callAlertToneContinuous READ callAlertToneContinuous WRITE enableCallAlertToneContinuous)
672 Q_PROPERTY(unsigned callAlertToneDuration READ callAlertToneDuration WRITE setCallAlertToneDuration)
674 Q_PROPERTY(unsigned loneWorkerResponseTime READ loneWorkerResponseTime WRITE setLoneWorkerResponseTime)
676 Q_PROPERTY(unsigned loneWorkerReminderTime READ loneWorkerReminderTime WRITE setLoneWorkerReminderTime)
678 Q_PROPERTY(unsigned digitalScanHangTime READ digitalScanHangTime WRITE setDigitalScanHangTime)
680 Q_PROPERTY(unsigned analogScanHangTime READ analogScanHangTime WRITE setAnalogScanHangTime)
682 Q_PROPERTY(bool backlightAlwaysOn READ backlightAlwaysOn WRITE enableBacklightAlwaysOn)
684 Q_PROPERTY(unsigned backlightDuration READ backlightDuration WRITE setBacklightDuration)
686 Q_PROPERTY(bool keypadLockManual READ keypadLockManual WRITE enableKeypadLockManual)
688 Q_PROPERTY(unsigned keypadLockTime READ keypadLockTime WRITE setKeypadLockTime)
690 Q_PROPERTY(bool powerOnPasswordEnabled READ powerOnPasswordEnabled WRITE enablePowerOnPassword)
692 Q_PROPERTY(unsigned powerOnPassword READ powerOnPassword WRITE setPowerOnPassword)
694 Q_PROPERTY(bool radioProgPasswordEnabled READ radioProgPasswordEnabled WRITE enableRadioProgPassword)
696 Q_PROPERTY(unsigned radioProgPassword READ radioProgPassword WRITE setRadioProgPassword)
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
947 Q_PROPERTY(TyTButtonSettings* buttonSettings READ buttonSettings)
949 Q_PROPERTY(TyTMenuSettings* menuSettings READ menuSettings)
950
951public:
953 Q_INVOKABLE explicit TyTConfigExtension(QObject *parent=nullptr);
954
955 ConfigItem *clone() const;
956
958 TyTButtonSettings *buttonSettings() const;
959
961 TyTMenuSettings *menuSettings() const;
962
963public:
964 /*ConfigItem *allocateChild(QMetaProperty &prop, const YAML::Node &node,
965 const Context &ctx, const ErrorStack &err=ErrorStack());*/
966
967protected:
969 TyTButtonSettings *_buttonSettings;
971 TyTMenuSettings *_menuSettings;
972};
973
974#endif // TYTBUTTONSETTINGSEXTENSION_HH
Base class of all device/vendor specific configuration extensions.
Definition configobject.hh:239
Base class for all configuration objects (channels, zones, contacts, etc).
Definition configobject.hh:35
const Object * as() const
Casts this object to the given type.
Definition configobject.hh:146
Some simple class implementing a [1-10] level setting.
Definition level.hh:15
Represents the TyT button settings extension.
Definition tyt_extensions.hh:206
unsigned _longPressDuration
Holds the long-press duration in ms.
Definition tyt_extensions.hh:350
ButtonAction _sideButton2Short
Holds the side button 2 short-press action.
Definition tyt_extensions.hh:333
ButtonAction _progButton1Long
Holds the prog button 1 long-press action.
Definition tyt_extensions.hh:343
ButtonAction _progButton1Short
Holds the prog button 1 short-press action.
Definition tyt_extensions.hh:341
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
ButtonAction _progButton2Long
Holds the prog button 2 long-press action.
Definition tyt_extensions.hh:347
ButtonAction _sideButton2Long
Holds the side button 2 long-press action.
Definition tyt_extensions.hh:335
ButtonAction
Possible actions for the side-buttons.
Definition tyt_extensions.hh:235
ButtonAction _sideButton3Long
Holds the side button 3 long-press action.
Definition tyt_extensions.hh:339
Represents the TyT channel extension.
Definition tyt_extensions.hh:15
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
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
Groups several extension for TyT devices.
Definition tyt_extensions.hh:943
Represents the TyT menu settings extension.
Definition tyt_extensions.hh:357
Represents device specific scan-list settings for TyT devices.
Definition tyt_extensions.hh:168
unsigned _prioritySampleTime
The sample time for priority channels in ms.
Definition tyt_extensions.hh: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
bool _privateCallMatch
If true, the private call IDs must match.
Definition tyt_extensions.hh:932
unsigned _powerOnPassword
Holds the power-on password.
Definition tyt_extensions.hh:924
bool _channelMode
If true, the radio is in channel (memory) mode.
Definition tyt_extensions.hh:892
unsigned _lowBatteryWarnInterval
Holds the low-battery warn interval.
Definition tyt_extensions.hh:900
unsigned _txPreambleDuration
Holds the TX preamble duration.
Definition tyt_extensions.hh:894
unsigned _groupCallHangTime
Holds the group-call hang time.
Definition tyt_extensions.hh:896
bool _channelModeB
If true or channelMode is true, the VFO B is in channel (memory) mode.
Definition tyt_extensions.hh:890
unsigned _backlightDuration
Holds the backlight duration.
Definition tyt_extensions.hh:916
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
QString _pcProgPassword
Holds the PC programming password.
Definition tyt_extensions.hh:930
unsigned _privateCallHangTime
Holds the private-call hang time.
Definition tyt_extensions.hh:898
bool _channelModeA
If true or channelMode is true, the VFO A is in channel (memory) mode.
Definition tyt_extensions.hh:888
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
bool _talkPermitToneDigital
If true the talk-permit tone is enabled for digital channels.
Definition tyt_extensions.hh:872
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
bool _radioProgPasswordEnabled
If true, the radio programming password is enabled.
Definition tyt_extensions.hh:926
unsigned _analogScanHangTime
Holds the scan hang-time for analog channels.
Definition tyt_extensions.hh:912
unsigned _keypadLockTime
Holds the keypad lock time.
Definition tyt_extensions.hh:920
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
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
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
bool _allLEDsDisabled
If true all LEDs are disabled.
Definition tyt_extensions.hh:870
unsigned _channelHangTime
Holds the channel hang time in ms.
Definition tyt_extensions.hh:936
bool _backlightAlwaysOn
If true, the backlight is always on.
Definition tyt_extensions.hh:914
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
Implements an USB interface to the TYT MD-UV390 & Retevis RT3S VHF/UHF 5W DMR (Tier I&II) radios.
Definition uv390.hh:37