libdrmconf 0.13.3
A library to program DMR radios.
Loading...
Searching...
No Matches
anytone_settingsextension.hh
1#ifndef ANYTONE_SETTINGSEXTENSION_H
2#define ANYTONE_SETTINGSEXTENSION_H
3
4#include <QTimeZone>
5
6#include "configobject.hh"
7#include "configreference.hh"
8#include "interval.hh"
9#include "melody.hh"
10#include "frequency.hh"
11#include "channel.hh"
12
13
14
20{
21 Q_OBJECT
22
28 Q_PROPERTY(QString bootPassword READ bootPassword WRITE setBootPassword)
29
30 Q_CLASSINFO("defaultChannelDescription", "If enabled, the default channels are selected at boot.")
33 Q_CLASSINFO("zoneADescription", "The default zone for VFO A.")
35 Q_PROPERTY(ZoneReference* zoneA READ zoneA)
36 Q_CLASSINFO("channelADescription", "The default channel for VFO A. Must be within zone A.")
39 Q_CLASSINFO("zoneBDescription", "The default zone for VFO B.")
41 Q_PROPERTY(ZoneReference* zoneB READ zoneB)
42 Q_CLASSINFO("channelBDescription", "The default channel for VFO B. Must be within zone B.")
49
51 Q_PROPERTY(bool gpsCheck READ gpsCheckEnabled WRITE enableGPSCheck)
53 Q_PROPERTY(bool reset READ resetEnabled WRITE enableReset)
54
55public:
57 enum class BootDisplay {
58 Default = 0, CustomText = 1, CustomImage = 2
59 };
60 Q_ENUM(BootDisplay)
61
62public:
64 explicit AnytoneBootSettingsExtension(QObject *parent=nullptr);
65
66 ConfigItem *clone() const;
67
71 void setBootDisplay(BootDisplay mode);
73 bool bootPasswordEnabled() const;
75 void enableBootPassword(bool enable);
77 const QString &bootPassword() const;
79 void setBootPassword(const QString &pass);
80
82 bool defaultChannelEnabled() const;
84 void enableDefaultChannel(bool enable);
86 ZoneReference *zoneA() const;
90 ZoneReference *zoneB() const;
97
99 bool gpsCheckEnabled() const;
101 void enableGPSCheck(bool enable);
102
104 bool resetEnabled() const;
106 void enableReset(bool enable);
107
108protected:
120 bool _reset;
121};
122
123
129{
130 Q_OBJECT
131
132 Q_CLASSINFO("autoShutDownDelayDescription", "The auto shut-down delay in minutes.")
135
138
139 Q_CLASSINFO("powerSaveDescription", "Specifies the power save mode. "
140 "D686UV, D878UV(2) and DMR-6X2UV only.")
142 Q_PROPERTY(PowerSave powerSave READ powerSave WRITE setPowerSave)
143
145 Q_PROPERTY(bool atpc READ atpc WRITE enableATPC)
146
147public:
149 enum class PowerSave {
150 Off = 0, Save50 = 1, Save66 = 2
151 };
152 Q_ENUM(PowerSave)
153
154public:
156 explicit AnytonePowerSaveSettingsExtension(QObject *parent=nullptr);
157
158 ConfigItem *clone() const;
159
161 Interval autoShutdown() const;
163 void setAutoShutdown(Interval min);
164
166 bool resetAutoShutdownOnCall() const;
168 void enableResetAutoShutdownOnCall(bool enable);
169
171 PowerSave powerSave() const;
173 void setPowerSave(PowerSave mode);
174
176 bool atpc() const;
178 void enableATPC(bool enable);
179
180protected:
183 PowerSave _powerSave;
184 bool _atpc;
185};
186
187
193{
194 Q_OBJECT
195
242
245
248
249 Q_CLASSINFO("knobLockDescription", "If enabled, the knob gets locked too.")
251 Q_PROPERTY(bool knobLock READ knobLockEnabled WRITE enableKnobLock)
252
253 Q_CLASSINFO("keypadLockDescription", "If enabled, the key-pad gets locked.")
256
257 Q_CLASSINFO("sideKeysLockDescription", "If enabled, the side-keys get locked.")
260
261 Q_CLASSINFO("forcedKeyLockDescription", "If enabled, the key-lock is forced.")
264
265public:
267 enum class KeyFunction {
268 Off, Voltage, Power, Repeater, Reverse, Encryption, Call, VOX, ToggleVFO, SubPTT,
269 Scan, WFM, Alarm, RecordSwitch, Record, SMS, Dial, GPSInformation, Monitor, ToggleMainChannel,
270 HotKey1, HotKey2, HotKey3, HotKey4, HotKey5, HotKey6, WorkAlone, SkipChannel, DMRMonitor,
271 SubChannel, PriorityZone, VFOScan, MICSoundQuality, LastCallReply, ChannelType, Ranging,
272 Roaming, ChannelRanging, MaxVolume, Slot, APRSTypeSwitch, Zone, ZoneUp, ZoneDown, Exit, Menu,
273 RoamingSet, APRSSet, Mute, MuteA, MuteB, CtcssDcsSet, TBSTSend, Bluetooth, GPS, ChannelName,
274 CDTScan, APRSSend, APRSInfo, Speaker, XBandRepeater, SimplexRepeater, GPSRoaming, Squelch,
275 NoiseReductionTX, DIMShut, SatPredict
276 };
277 Q_ENUM(KeyFunction)
278
279
280 enum class UpDownKeyFunction {
281 Channel, Volume
282 };
283 Q_ENUM(UpDownKeyFunction)
284
285public:
287 explicit AnytoneKeySettingsExtension(QObject *parent=nullptr);
288
289 ConfigItem *clone() const;
290
294 void setFuncKey1Short(KeyFunction func);
298 void setFuncKey1Long(KeyFunction func);
299
303 void setFuncKey2Short(KeyFunction func);
307 void setFuncKey2Long(KeyFunction func);
308
312 void setFuncKey3Short(KeyFunction func);
316 void setFuncKey3Long(KeyFunction func);
317
321 void setFuncKey4Short(KeyFunction func);
325 void setFuncKey4Long(KeyFunction func);
326
330 void setFuncKey5Short(KeyFunction func);
334 void setFuncKey5Long(KeyFunction func);
335
339 void setFuncKey6Short(KeyFunction func);
343 void setFuncKey6Long(KeyFunction func);
344
348 void setFuncKeyAShort(KeyFunction func);
352 void setFuncKeyALong(KeyFunction func);
353
357 void setFuncKeyBShort(KeyFunction func);
361 void setFuncKeyBLong(KeyFunction func);
362
366 void setFuncKeyCShort(KeyFunction func);
370 void setFuncKeyCLong(KeyFunction func);
371
375 void setFuncKeyDShort(KeyFunction func);
379 void setFuncKeyDLong(KeyFunction func);
380
384 void setFuncKnobShort(KeyFunction func);
388 void setFuncKnobLong(KeyFunction func);
389
394
399
401 bool autoKeyLockEnabled() const;
403 void enableAutoKeyLock(bool enabled);
404
406 bool knobLockEnabled() const;
408 void enableKnobLock(bool enable);
410 bool keypadLockEnabled() const;
412 void enableKeypadLock(bool enable);
414 bool sideKeysLockEnabled() const;
416 void enableSideKeysLock(bool enable);
418 bool forcedKeyLockEnabled() const;
420 void enableForcedKeyLock(bool enable);
421
422protected:
452};
453
454
460{
461 Q_OBJECT
462 Q_CLASSINFO("description", "Tone settings for AnyTone devices.")
463
464 Q_CLASSINFO("keyToneDescription", "If true, enables the key tones.")
466 Q_PROPERTY(bool keyTone READ keyToneEnabled WRITE enableKeyTone)
467
468 Q_CLASSINFO("keyToneLevelDescription", "Specifies the key-tone level, 0=user adjustable.")
470 Q_PROPERTY(unsigned int keyToneLevel READ keyToneLevel WRITE setKeyToneLevel)
471
472 Q_CLASSINFO("smsAlertDescription", "Enables/disables the SMS alert tone.")
474 Q_PROPERTY(bool smsAlert READ smsAlertEnabled WRITE enableSMSAlert)
475
476 Q_CLASSINFO("callAlertDescription", "Enables/disables the call alert tone.")
478 Q_PROPERTY(bool callAlert READ callAlertEnabled WRITE enableCallAlert)
479
480 Q_CLASSINFO("dmrTalkPermitDescription", "Enables/disables the talk-permit tone for DMR channels.")
483
484 Q_CLASSINFO("dmrResetDescription", "Enables/disables the reset tone for DMR channels.")
487
488 Q_CLASSINFO("fmTalkPermitDescription", "Enables/disables the talk-permit tone for FM channels.")
491
497 Q_PROPERTY(bool startup READ startupToneEnabled WRITE enableStartupTone)
499 Q_PROPERTY(bool tot READ totNotification WRITE enableTOTNotification)
501 Q_PROPERTY(bool wxAlarm READ wxAlarm WRITE enableWXAlarm)
502
504 Q_PROPERTY(Melody * callMelody READ callMelody)
506 Q_PROPERTY(Melody * idleMelody READ idleMelody)
508 Q_PROPERTY(Melody * resetMelody READ resetMelody)
511
512public:
514 explicit AnytoneToneSettingsExtension(QObject *parent=nullptr);
515
516 ConfigItem *clone() const;
517
519 bool keyToneEnabled() const;
521 void enableKeyTone(bool enable);
522
524 bool smsAlertEnabled() const;
526 void enableSMSAlert(bool enable);
527
529 bool callAlertEnabled() const;
531 void enableCallAlert(bool enable);
532
534 bool talkPermitDigitalEnabled() const;
536 void enableTalkPermitDigital(bool enable);
537
539 bool talkPermitAnalogEnabled() const;
541 void enableTalkPermitAnalog(bool enable);
542
544 bool digitalResetToneEnabled() const;
546 void enableDigitalResetTone(bool enable);
547
549 bool dmrIdleChannelToneEnabled() const;
551 void enableDMRIdleChannelTone(bool enable);
552
554 bool fmIdleChannelToneEnabled() const;
556 void enableFMIdleChannelTone(bool enable);
557
559 bool startupToneEnabled() const;
561 void enableStartupTone(bool enable);
562
564 bool totNotification() const;
566 void enableTOTNotification(bool enable);
567
569 bool wxAlarm() const;
571 void enableWXAlarm(bool enable);
572
574 Melody *callMelody() const;
576 Melody *idleMelody() const;
578 Melody *resetMelody() const;
580 Melody *callEndMelody() const;
581
583 unsigned int keyToneLevel() const;
585 void setKeyToneLevel(unsigned int level);
586
587protected:
588 bool _keyTone;
598 bool _wxAlarm;
603 unsigned int _keyToneLevel;
604
605};
606
607
613{
614 Q_OBJECT
615
617 Q_PROPERTY(bool displayFrequency READ displayFrequencyEnabled WRITE enableDisplayFrequency)
619 Q_PROPERTY(unsigned int brightness READ brightness WRITE setBrightness)
620
621 Q_CLASSINFO("backlightDuration", "The duration in seconds, the backlight keeps lit after any action. ")
623 Q_PROPERTY(Interval backlightDuration READ backlightDuration WRITE setBacklightDuration)
624
625 Q_CLASSINFO("backlightDurationTX", "The duration in seconds, the backlight is lit during TX. "
626 "A value of 0 means off.")
628 Q_PROPERTY(Interval backlightDurationTX READ backlightDurationTX WRITE setBacklightDurationTX)
629
630 Q_CLASSINFO("backlightDurationRX", "The duration in seconds, the backlight is lit during RX.")
632 Q_PROPERTY(Interval backlightDurationRX READ backlightDurationRX WRITE setBacklightDurationRX)
633
635 Q_PROPERTY(bool customChannelBackground READ customChannelBackground WRITE enableCustomChannelBackground)
636
638 Q_PROPERTY(bool volumeChangePrompt READ volumeChangePromptEnabled WRITE enableVolumeChangePrompt)
640 Q_PROPERTY(bool callEndPrompt READ callEndPromptEnabled WRITE enableCallEndPrompt)
641
643 Q_PROPERTY(bool showClock READ showClockEnabled WRITE enableShowClock)
645 Q_PROPERTY(bool showCall READ showCallEnabled WRITE enableShowCall)
647 Q_PROPERTY(bool showContact READ showContact WRITE enableShowContact)
649 Q_PROPERTY(bool showChannelNumber READ showChannelNumberEnabled WRITE enableShowChannelNumber)
651 Q_PROPERTY(bool showGLobalChannelNumber READ showGlobalChannelNumber WRITE enableShowGlobalChannelNumber)
653 Q_PROPERTY(bool showColorCode READ showColorCode WRITE enableShowColorCode)
655 Q_PROPERTY(bool showTimeSlot READ showTimeSlot WRITE enableShowTimeSlot)
657 Q_PROPERTY(bool showChannelType READ showChannelType WRITE enableShowChannelType)
659 Q_PROPERTY(bool showLastHeard READ showLastHeardEnabled WRITE enableShowLastHeard)
661 Q_PROPERTY(LastCallerDisplayMode lastCallerDisplay READ lastCallerDisplay WRITE setLastCallerDisplay)
662
664 Q_PROPERTY(Color callColor READ callColor WRITE setCallColor)
666 Q_PROPERTY(Color standbyTextColor READ standbyTextColor WRITE setStandbyTextColor)
668 Q_PROPERTY(Color standbyBackgroundColor READ standbyBackgroundColor WRITE setStandbyBackgroundColor)
669
670 Q_CLASSINFO("channelNameColorDescription", "Specifies the color of the channel name.")
672 Q_PROPERTY(Color channelNameColor READ channelNameColor WRITE setChannelNameColor)
673 Q_CLASSINFO("channelBNameColorDescription", "Specifies the color of the channel name for VFO B.")
675 Q_PROPERTY(Color channelBNameColor READ channelBNameColor WRITE setChannelBNameColor)
676
677 Q_CLASSINFO("zoneNameColorDescription", "Specifies the color of the zone name.")
679 Q_PROPERTY(Color zoneNameColor READ zoneNameColor WRITE setZoneNameColor)
680 Q_CLASSINFO("zoneBNameColorDescription", "Specifies the color of the zone name for VFO B.")
682 Q_PROPERTY(Color zoneBNameColor READ zoneBNameColor WRITE setZoneBNameColor)
683
685 Q_PROPERTY(Language language READ language WRITE setLanguage)
687 Q_PROPERTY(DateFormat dateFormat READ dateFormat WRITE setDateFormat)
688
689public:
691 enum class LastCallerDisplayMode {
692 Off = 0, ID = 1, Call = 2, Both = 3
693 };
694 Q_ENUM(LastCallerDisplayMode)
695
696
697 enum class Color {
698 White = 0, Black = 1, Orange=2, Red=3, Yellow=4, Green=5, Turquoise=6, Blue=7
699 };
700 Q_ENUM(Color)
701
702
703 enum class Language {
704 English = 0,
705 German = 1
706 };
707 Q_ENUM(Language)
708
709
710 enum class DateFormat {
711 YearFirst = 0,
712 DayFirst = 1
713 };
714 Q_ENUM(DateFormat)
715
716public:
718 explicit AnytoneDisplaySettingsExtension(QObject *parent=nullptr);
719
720 ConfigItem *clone() const;
721
723 bool displayFrequencyEnabled() const;
725 void enableDisplayFrequency(bool enable);
726
728 unsigned int brightness() const;
730 void setBrightness(unsigned int level);
731
733 bool volumeChangePromptEnabled() const;
735 void enableVolumeChangePrompt(bool enable);
736
738 bool callEndPromptEnabled() const;
740 void enableCallEndPrompt(bool enable);
741
743 LastCallerDisplayMode lastCallerDisplay() const;
745 void setLastCallerDisplay(LastCallerDisplayMode mode);
746
748 bool showClockEnabled() const;
750 void enableShowClock(bool enable);
751
753 bool showCallEnabled() const;
755 void enableShowCall(bool enable);
756
758 Color callColor() const;
760 void setCallColor(Color color);
761
763 Language language() const;
765 void setLanguage(Language lang);
767 DateFormat dateFormat() const;
769 void setDateFormat(DateFormat format);
770
772 bool showChannelNumberEnabled() const;
774 void enableShowChannelNumber(bool enable);
777 bool showGlobalChannelNumber() const;
779 void enableShowGlobalChannelNumber(bool enable);
781 bool showColorCode() const;
783 void enableShowColorCode(bool enable);
785 bool showTimeSlot() const;
787 void enableShowTimeSlot(bool enable);
789 bool showChannelType() const;
791 void enableShowChannelType(bool enable);
792
794 bool showContact() const;
796 void enableShowContact(bool enable);
797
799 Color standbyTextColor() const;
801 void setStandbyTextColor(Color color);
803 Color standbyBackgroundColor() const;
805 void setStandbyBackgroundColor(Color color);
806
808 bool showLastHeardEnabled() const;
810 void enableShowLastHeard(bool enable);
811
813 Interval backlightDuration() const;
815 void setBacklightDuration(Interval sec);
816
818 Interval backlightDurationTX() const;
820 void setBacklightDurationTX(Interval sec);
821
823 Color channelNameColor() const;
825 void setChannelNameColor(Color color);
827 Color channelBNameColor() const;
829 void setChannelBNameColor(Color color);
830
832 Color zoneNameColor() const;
834 void setZoneNameColor(Color color);
836 Color zoneBNameColor() const;
838 void setZoneBNameColor(Color color);
839
841 Interval backlightDurationRX() const;
843 void setBacklightDurationRX(Interval sec);
845 bool customChannelBackground() const;
847 void enableCustomChannelBackground(bool enable);
848
849protected:
851 unsigned int _brightness;
854 LastCallerDisplayMode _lastCallerDisplay;
858 Language _language;
859 DateFormat _dateFormat;
877};
878
879
885{
886 Q_OBJECT
887
889 Q_PROPERTY(Interval voxDelay READ voxDelay WRITE setVOXDelay)
891 Q_PROPERTY(VoxSource voxSource READ voxSource WRITE setVOXSource)
892
894 Q_PROPERTY(bool recording READ recordingEnabled WRITE enableRecording)
895
897 Q_PROPERTY(bool enhance READ enhanceAudioEnabled WRITE enableEnhanceAudio)
898
900 Q_PROPERTY(Interval muteDelay READ muteDelay WRITE setMuteDelay)
901
903 Q_PROPERTY(unsigned int maxVolume READ maxVolume WRITE setMaxVolume)
905 Q_PROPERTY(unsigned int maxHeadPhoneVolume READ maxHeadPhoneVolume WRITE setMaxHeadPhoneVolume)
906
908 Q_PROPERTY(bool enableFMMicGain READ fmMicGainEnabled WRITE enableFMMicGain)
910 Q_PROPERTY(unsigned int fmMicGain READ fmMicGain WRITE setFMMicGain)
911
913 Q_PROPERTY(Speaker speaker READ speaker WRITE setSpeaker)
915 Q_PROPERTY(HandsetSpeakerSource handsetSpeaker READ handsetSpeaker WRITE setHandsetSpeaker)
917 Q_PROPERTY(HandsetType handsetType READ handsetType WRITE setHandsetType)
918
919public:
921 enum class VoxSource {
922 Internal = 0, External = 1, Both = 2
923 };
924 Q_ENUM(VoxSource)
925
926
927 enum class Speaker {
928 Handset, Radio, Both
929 };
930 Q_ENUM(Speaker);
931
934 MainChannel, SubChannel
935 };
936 Q_ENUM(HandsetSpeakerSource)
937
938
939 enum class HandsetType {
940 Anytone, Generic
941 };
942 Q_ENUM(HandsetType)
943
944public:
946 explicit AnytoneAudioSettingsExtension(QObject *parent=nullptr);
947
948 ConfigItem *clone() const;
949
951 Interval voxDelay() const;
953 void setVOXDelay(Interval ms);
954
956 VoxSource voxSource() const;
958 void setVOXSource(VoxSource source);
959
961 bool recordingEnabled() const;
963 void enableRecording(bool enable);
964
966 unsigned int maxVolume() const;
968 void setMaxVolume(unsigned int vol);
970 unsigned int maxHeadPhoneVolume() const;
972 void setMaxHeadPhoneVolume(unsigned int vol);
973
975 bool enhanceAudioEnabled() const;
977 void enableEnhanceAudio(bool enable);
978
980 Interval muteDelay() const;
982 void setMuteDelay(Interval intv);
983
985 bool fmMicGainEnabled() const;
987 void enableFMMicGain(bool enable);
989 unsigned int fmMicGain() const;
991 void setFMMicGain(unsigned int gain);
992
994 Speaker speaker() const;
996 void setSpeaker(Speaker speaker);
997
999 HandsetSpeakerSource handsetSpeaker() const;
1001 void setHandsetSpeaker(HandsetSpeakerSource src);
1002
1003 /* Returns the handset type. */
1004 HandsetType handsetType() const;
1006 void setHandsetType(HandsetType type);
1007
1008protected:
1012 unsigned int _maxVolume;
1013 unsigned int _maxHeadPhoneVolume;
1017 unsigned int _analogMicGain;
1021};
1022
1023
1029{
1030 Q_OBJECT
1031
1032 Q_CLASSINFO("durationDescription", "The time in seconds, the menu is shown.")
1034 Q_PROPERTY(Interval duration READ duration WRITE setDuration)
1035
1036 Q_CLASSINFO("separatorDescription", "If enabled, the menu items are separated by a line.")
1038 Q_PROPERTY(bool separator READ separatorEnabled WRITE enableSeparator)
1039
1040public:
1042 explicit AnytoneMenuSettingsExtension(QObject *parent=nullptr);
1043
1044 ConfigItem *clone() const;
1045
1047 Interval duration() const;
1049 void setDuration(Interval sec);
1051 bool separatorEnabled() const;
1053 void enableSeparator(bool enable);
1054
1055protected:
1056 Interval _menuDuration;
1057 bool _showSeparator;
1058};
1059
1060
1065{
1066 Q_OBJECT
1067 Q_CLASSINFO("IdPrefix", "off")
1068
1069 Q_CLASSINFO("offsetDecription",
1070 "Transmit-frequency offset in Hz.")
1071 Q_CLASSINFO("offsetLongDecription",
1072 "The transmit-frequency offset is specified as a positive integer in Hz. The offset "
1073 "direction is specified for each VFO separately.")
1075 Q_PROPERTY(Frequency offset READ offset WRITE setOffset)
1076
1077public:
1079 explicit Q_INVOKABLE AnytoneAutoRepeaterOffset(QObject *parent=nullptr);
1080
1081 ConfigItem *clone() const;
1082
1084 Frequency offset() const;
1086 void setOffset(Frequency offset);
1087
1088protected:
1090 Frequency _offset;
1091};
1092
1093
1097{
1098 Q_OBJECT
1099
1100public:
1102 explicit AnytoneAutoRepeaterOffsetRef(QObject *parent=nullptr);
1103};
1104
1105
1109{
1110 Q_OBJECT
1111
1112public:
1114 explicit AnytoneAutoRepeaterOffsetList(QObject *parent=nullptr);
1115
1116 ConfigItem *allocateChild(const YAML::Node &node, ConfigItem::Context &ctx, const ErrorStack &err);
1117};
1118
1119
1125{
1126 Q_OBJECT
1127 Q_CLASSINFO("description", "Auto-repeater settings for AnyTone devices.")
1128
1129 Q_CLASSINFO("directionADescription", "Auto-repeater transmit-frequency offset direction for VFO A.")
1131 Q_PROPERTY(Direction directionA READ directionA WRITE setDirectionA)
1132
1133 Q_CLASSINFO("directionBDescription", "Auto-repeater transmit-frequency offset direction for VFO B.")
1135 Q_PROPERTY(Direction directionB READ directionB WRITE setDirectionB)
1136
1137 Q_CLASSINFO("vhfMin", "The minimum frequency in Hz of the VHF auto-repeater frequency range.")
1139 Q_PROPERTY(Frequency vhfMin READ vhfMin WRITE setVHFMin)
1140
1141 Q_CLASSINFO("vhfMax", "The maximum frequency in Hz of the VHF auto-repeater frequency range.")
1143 Q_PROPERTY(Frequency vhfMax READ vhfMax WRITE setVHFMax)
1144
1145 Q_CLASSINFO("uhfMin", "The minimum frequency in Hz of the UHF auto-repeater frequency range.")
1147 Q_PROPERTY(Frequency uhfMin READ uhfMin WRITE setUHFMin)
1148
1149 Q_CLASSINFO("uhfMax", "The maximum frequency in Hz of the UHF auto-repeater frequency range.")
1151 Q_PROPERTY(Frequency uhfMax READ uhfMax WRITE setUHFMax)
1152
1153 Q_CLASSINFO("vhfDescription", "A reference to an offset frequency for the VHF band.")
1155 Q_PROPERTY(AnytoneAutoRepeaterOffsetRef* vhf READ vhfRef)
1156
1157 Q_CLASSINFO("uhfDescription", "A reference to an offset frequency for the UHF band.")
1159 Q_PROPERTY(AnytoneAutoRepeaterOffsetRef* uhf READ uhfRef)
1160
1161 Q_CLASSINFO("vhf2Min", "The minimum frequency in Hz of the second VHF auto-repeater frequency range.")
1163 Q_PROPERTY(Frequency vhf2Min READ vhf2Min WRITE setVHF2Min)
1164
1165 Q_CLASSINFO("vhf2Max", "The maximum frequency in Hz of the second VHF auto-repeater frequency range.")
1167 Q_PROPERTY(Frequency vhf2Max READ vhf2Max WRITE setVHF2Max)
1168
1169 Q_CLASSINFO("uhf2Min", "The minimum frequency in Hz of the second UHF auto-repeater frequency range.")
1171 Q_PROPERTY(Frequency uhf2Min READ uhf2Min WRITE setUHF2Min)
1172
1173 Q_CLASSINFO("uhf2Max", "The maximum frequency in Hz of the second UHF auto-repeater frequency range.")
1175 Q_PROPERTY(Frequency uhf2Max READ uhf2Max WRITE setUHF2Max)
1176
1177 Q_CLASSINFO("vhf2Description", "A reference to an offset frequency for the second VHF band.")
1179 Q_PROPERTY(AnytoneAutoRepeaterOffsetRef* vhf2 READ vhf2Ref)
1180
1181 Q_CLASSINFO("uhf2Description", "A reference to an offset frequency for the second UHF band.")
1183 Q_PROPERTY(AnytoneAutoRepeaterOffsetRef* uhf2 READ uhf2Ref)
1184
1185 Q_CLASSINFO("offsetDescription", "The lists of offset frequencies.")
1187 Q_PROPERTY(AnytoneAutoRepeaterOffsetList* offsets READ offsets)
1188
1189public:
1191 enum class Direction {
1192 Off = 0,
1193 Positive = 1,
1194 Negative = 2
1195 };
1196 Q_ENUM(Direction)
1197
1198public:
1200 explicit AnytoneAutoRepeaterSettingsExtension(QObject *parent=nullptr);
1201
1202 ConfigItem *clone() const;
1203
1205 Direction directionA() const;
1207 void setDirectionA(Direction dir);
1209 Direction directionB() const;
1211 void setDirectionB(Direction dir);
1212
1214 Frequency vhfMin() const;
1216 void setVHFMin(Frequency Hz);
1218 Frequency vhfMax() const;
1220 void setVHFMax(Frequency Hz);
1222 Frequency uhfMin() const;
1224 void setUHFMin(Frequency Hz);
1226 Frequency uhfMax() const;
1228 void setUHFMax(Frequency Hz);
1229
1231 AnytoneAutoRepeaterOffsetRef *uhfRef() const;
1233 AnytoneAutoRepeaterOffsetRef *vhfRef() const;
1234
1236 Frequency vhf2Min() const;
1238 void setVHF2Min(Frequency Hz);
1240 Frequency vhf2Max() const;
1242 void setVHF2Max(Frequency Hz);
1244 Frequency uhf2Min() const;
1246 void setUHF2Min(Frequency Hz);
1248 Frequency uhf2Max() const;
1250 void setUHF2Max(Frequency Hz);
1251
1253 AnytoneAutoRepeaterOffsetRef *uhf2Ref() const;
1255 AnytoneAutoRepeaterOffsetRef *vhf2Ref() const;
1256
1258 AnytoneAutoRepeaterOffsetList *offsets() const;
1259
1260protected:
1291};
1292
1293
1299{
1300 Q_OBJECT
1301
1302 Q_CLASSINFO("groupCallHangTimeDescription", "Specifies the hang- or hold-time for group calls.")
1304 Q_PROPERTY(Interval groupCallHangTime READ groupCallHangTime WRITE setGroupCallHangTime)
1306 Q_PROPERTY(Interval manualGroupCallHangTime READ manualGroupCallHangTime WRITE setManualGroupCallHangTime)
1307
1308 Q_CLASSINFO("privateCallHangTimeDescription", "Specifies the hang- or hold-time for private calls.")
1310 Q_PROPERTY(Interval privateCallHangTime READ privateCallHangTime WRITE setPrivateCallHangTime)
1312 Q_PROPERTY(Interval manualPrivateCallHangTime READ manualPrivateCallHangTime WRITE setManualPrivateCallHangTime)
1313
1314 Q_CLASSINFO("preWaveDelay", "Sets the pre-wave delay in ms. Should be set to 100ms.")
1316 Q_PROPERTY(Interval preWaveDelay READ preWaveDelay WRITE setPreWaveDelay)
1317
1318 Q_CLASSINFO("wakeHeadPeriod", "Sets the wake head-period in ms. Should be set to 100ms.")
1320 Q_PROPERTY(Interval wakeHeadPeriod READ wakeHeadPeriod WRITE setWakeHeadPeriod)
1321
1322 Q_CLASSINFO("filterOwnIDDescription", "If enabled, own ID is not shown in call lists.")
1324 Q_PROPERTY(bool filterOwnID READ filterOwnIDEnabled WRITE enableFilterOwnID)
1325
1326 Q_CLASSINFO("monitorSlotMatchDescription", "Time-slot match-mode for DMR monitor.")
1328 Q_PROPERTY(SlotMatch monitorSlotMatch READ monitorSlotMatch WRITE setMonitorSlotMatch)
1329
1330 Q_CLASSINFO("monitorColorCodeMatchDescription", "If enabled, the DMR monitor will only open for "
1331 "matching color-codes.")
1333 Q_PROPERTY(bool monitorColorCodeMatch READ monitorColorCodeMatchEnabled WRITE enableMonitorColorCodeMatch)
1334
1335 Q_CLASSINFO("monitorIDMatchDescription", "If enabled, the DMR monitor will only open for matching IDs.")
1337 Q_PROPERTY(bool monitorIDMatch READ monitorIDMatchEnabled WRITE enableMonitorIDMatch)
1338
1339 Q_CLASSINFO("monitorTimeSlotHold", "Whether the DMR monitor holds the time-slot.")
1341 Q_PROPERTY(bool monitorTimeSlotHold READ monitorTimeSlotHoldEnabled WRITE enableMonitorTimeSlotHold)
1342
1343 Q_CLASSINFO("smsFormatDescription", "Specifies the SMS format, select Motorola here.")
1345 Q_PROPERTY(SMSFormat smsFormat READ smsFormat WRITE setSMSFormat)
1346
1347 Q_CLASSINFO("sendTalkerAliasDescription", "Sends the radio name as talker alias over the air.")
1349 Q_PROPERTY(bool sendTalkerAlias READ sendTalkerAlias WRITE enableSendTalkerAlias)
1351 Q_PROPERTY(TalkerAliasSource talkerAliasSource READ talkerAliasSource WRITE setTalkerAliasSource)
1353 Q_PROPERTY(TalkerAliasEncoding talkerAliasEncoding READ talkerAliasEncoding WRITE setTalkerAliasEncoding)
1354
1356 Q_PROPERTY(EncryptionType encryption READ encryption WRITE setEncryption)
1357
1358
1359public:
1361 enum class SlotMatch {
1362 Off = 0, Single = 1, Both = 2
1363 };
1364 Q_ENUM(SlotMatch)
1365
1366
1367 enum class SMSFormat {
1368 Motorola = 0, Hytera = 1, DMR = 2
1369 };
1370 Q_ENUM(SMSFormat)
1371
1372
1373 enum class TalkerAliasSource {
1374 Off = 0, UserDB = 1, Air = 2
1375 };
1376 Q_ENUM(TalkerAliasSource)
1377
1378
1379 enum class TalkerAliasEncoding {
1380 ISO8 = 0, ISO7 = 1, Unicode = 2,
1381 };
1382 Q_ENUM(TalkerAliasEncoding)
1383
1384
1385 enum class EncryptionType {
1386 AES=0, DMR=1
1387 };
1388 Q_ENUM(EncryptionType)
1389
1390public:
1392 explicit AnytoneDMRSettingsExtension(QObject *parent = nullptr);
1393
1394 ConfigItem *clone() const;
1395
1397 Interval groupCallHangTime() const;
1399 void setGroupCallHangTime(Interval sec);
1401 Interval manualGroupCallHangTime() const;
1403 void setManualGroupCallHangTime(Interval sec);
1405 Interval privateCallHangTime() const;
1407 void setPrivateCallHangTime(Interval sec);
1409 Interval manualPrivateCallHangTime() const;
1411 void setManualPrivateCallHangTime(Interval sec);
1412
1414 Interval preWaveDelay() const;
1416 void setPreWaveDelay(Interval ms);
1418 Interval wakeHeadPeriod() const;
1420 void setWakeHeadPeriod(Interval ms);
1421
1423 bool filterOwnIDEnabled() const;
1425 void enableFilterOwnID(bool enable);
1426
1428 SlotMatch monitorSlotMatch() const;
1430 void setMonitorSlotMatch(SlotMatch match);
1432 bool monitorColorCodeMatchEnabled() const;
1434 void enableMonitorColorCodeMatch(bool enable);
1436 bool monitorIDMatchEnabled() const;
1438 void enableMonitorIDMatch(bool enable);
1440 bool monitorTimeSlotHoldEnabled() const;
1442 void enableMonitorTimeSlotHold(bool enable);
1443
1445 SMSFormat smsFormat() const;
1447 void setSMSFormat(SMSFormat format);
1448
1450 bool sendTalkerAlias() const;
1452 void enableSendTalkerAlias(bool enable);
1453
1455 TalkerAliasSource talkerAliasSource() const;
1457 void setTalkerAliasSource(TalkerAliasSource mode);
1458
1460 TalkerAliasEncoding talkerAliasEncoding() const ;
1462 void setTalkerAliasEncoding(TalkerAliasEncoding encoding);
1463
1465 EncryptionType encryption() const;
1467 void setEncryption(EncryptionType type);
1468
1469protected:
1481 SMSFormat _smsFormat;
1483 TalkerAliasSource _talkerAliasSource;
1484 TalkerAliasEncoding _talkerAliasEncoding;
1485 EncryptionType _encryption;
1486};
1487
1488
1494{
1495 Q_OBJECT
1496
1497 Q_CLASSINFO("unitsDescription", "Specifies the GPS units.")
1499 Q_PROPERTY(Units units READ units WRITE setUnits)
1500
1501 Q_CLASSINFO("timeZoneDescription", "Specifies the GPS time-zone (IANA name).")
1503 Q_PROPERTY(QString timeZone READ ianaTimeZone WRITE setIANATimeZone)
1504
1505 Q_CLASSINFO("positionReportingDescription", "Enables GPS range reporting.")
1507 Q_PROPERTY(bool reportPosition READ positionReportingEnabled WRITE enablePositionReporting)
1508
1509 Q_CLASSINFO("updatePeriodDescription", "Specifies the GPS reporting interval in seconds.")
1511 Q_PROPERTY(Interval updatePeriod READ updatePeriod WRITE setUpdatePeriod)
1512
1514 Q_PROPERTY(GPSMode mode READ mode WRITE setMode)
1515
1516public:
1518 enum class Units {
1519 Metric = 0, Archaic = 1
1520 };
1521 Q_ENUM(Units)
1522
1523
1524 enum class GPSMode {
1525 GPS=0, Beidou=1, GPS_Beidou=2, Glonass=3, GPS_Glonas=4, Beidou_Glonass=5, All=6
1526 };
1527 Q_ENUM(GPSMode)
1528
1529public:
1531 explicit AnytoneGPSSettingsExtension(QObject *parent=nullptr);
1532
1533 ConfigItem *clone() const;
1534
1536 Units units() const;
1538 void setUnits(Units units);
1539
1541 QString ianaTimeZone() const;
1543 QTimeZone timeZone() const;
1545 void setIANATimeZone(const QString &id);
1547 void setTimeZone(const QTimeZone &zone);
1548
1550 bool positionReportingEnabled() const;
1552 void enablePositionReporting(bool enable);
1553
1555 Interval updatePeriod() const;
1557 void setUpdatePeriod(Interval sec);
1558
1560 GPSMode mode() const;
1562 void setMode(GPSMode mode);
1563
1564protected:
1566 QTimeZone _timeZone;
1570};
1571
1572
1578{
1579 Q_OBJECT
1580
1581 Q_CLASSINFO("Description", "Collects all ranging/roaming settings for AnyTone devices.")
1582
1583
1584 Q_PROPERTY(bool autoRoam READ autoRoam WRITE enableAutoRoam)
1585
1586 Q_CLASSINFO("autoRoamPeriodDescription", "Specifies the auto-roaming period in minutes.")
1588 Q_PROPERTY(Interval autoRoamPeriod READ autoRoamPeriod WRITE setAutoRoamPeriod)
1589
1590 Q_CLASSINFO("autoRoamDelayDescription", "A delay in seconds before starting the auto-roaming.")
1592 Q_PROPERTY(Interval autoRoamDelay READ autoRoamDelay WRITE setAutoRoamDelay)
1593
1594 Q_CLASSINFO("roamStart", "Start condition for auto-roaming.")
1596 Q_PROPERTY(RoamStart roamStart READ roamingStartCondition WRITE setRoamingStartCondition)
1597
1598 Q_CLASSINFO("roamReturn", "Condition to return to the original repeater.")
1600 Q_PROPERTY(RoamStart roamReturn READ roamingReturnCondition WRITE setRoamingReturnCondition)
1601
1602 Q_CLASSINFO("rangeCheckDescription", "Repeater range check.")
1604 Q_PROPERTY(bool rangeCheck READ repeaterRangeCheckEnabled WRITE enableRepeaterRangeCheck)
1605
1606 Q_CLASSINFO("checkIntervalDescription", "Repeater range check interval in seconds.")
1608 Q_PROPERTY(Interval checkInterval READ repeaterCheckInterval WRITE setRepeaterCheckInterval)
1609
1610 Q_CLASSINFO("retryCount", "Number of retries to connect to a repeater before giving up.")
1612 Q_PROPERTY(unsigned int retryCount READ repeaterRangeCheckCount WRITE setRepeaterRangeCheckCount)
1613
1615 Q_PROPERTY(OutOfRangeAlert outOfRangeAlert READ outOfRangeAlert WRITE setOutOfRangeAlert)
1616
1617 Q_CLASSINFO("notificationDescription", "Enables the repeater-check notification.")
1619 Q_PROPERTY(bool notification READ notificationEnabled WRITE enableNotification)
1620
1621 Q_CLASSINFO("notificationCountDescription", "The number of repeater-check notifications.")
1623 Q_PROPERTY(unsigned int notificationCount READ notificationCount WRITE setNotificationCount)
1624
1626 Q_PROPERTY(RoamingZoneReference* defaultZone READ defaultZone)
1627
1629 Q_PROPERTY(bool gpsRoaming READ gpsRoaming WRITE enableGPSRoaming)
1630
1631public:
1633 enum class RoamStart {
1634 Periodic=0, OutOfRange=1
1635 };
1636 Q_ENUM(RoamStart)
1637
1638
1639 enum class OutOfRangeAlert {
1640 None = 0x00, Bell = 0x01, Voice = 0x02
1641 };
1642 Q_ENUM(OutOfRangeAlert)
1643
1644public:
1646 explicit AnytoneRoamingSettingsExtension(QObject *parent=nullptr);
1647
1648 ConfigItem *clone() const;
1649
1651 bool autoRoam() const;
1653 void enableAutoRoam(bool enable);
1654
1656 Interval autoRoamPeriod() const;
1658 void setAutoRoamPeriod(Interval min);
1660 Interval autoRoamDelay() const;
1662 void setAutoRoamDelay(Interval sec);
1663
1665 bool repeaterRangeCheckEnabled() const;
1667 void enableRepeaterRangeCheck(bool enable);
1669 Interval repeaterCheckInterval() const;
1671 void setRepeaterCheckInterval(Interval sec);
1673 unsigned int repeaterRangeCheckCount() const;
1675 void setRepeaterRangeCheckCount(unsigned int count);
1677 OutOfRangeAlert outOfRangeAlert() const;
1679 void setOutOfRangeAlert(OutOfRangeAlert type);
1680
1682 RoamStart roamingStartCondition() const;
1684 void setRoamingStartCondition(RoamStart start);
1686 RoamStart roamingReturnCondition() const;
1688 void setRoamingReturnCondition(RoamStart start);
1689
1691 bool notificationEnabled() const;
1693 void enableNotification(bool enable);
1695 unsigned int notificationCount() const;
1697 void setNotificationCount(unsigned int n);
1698
1700 bool gpsRoaming() const;
1702 void enableGPSRoaming(bool enable);
1703
1705 RoamingZoneReference *defaultZone() const;
1706
1707protected:
1718 unsigned int _notificationCount;
1721};
1722
1723
1724
1730{
1731 Q_OBJECT
1732
1733 Q_CLASSINFO("Description", "Collects all bluetooth handset settings for AnyTone devices.")
1734
1735 Q_CLASSINFO("shutdownDescription", "Shuts the handset off too, when the radio is turned off.")
1736 Q_PROPERTY(bool shutdown READ shutdownEnabled WRITE enableShutdown)
1737
1738 Q_CLASSINFO("volumeLevelADescription", "Sets the volume level for VFO A.")
1739 Q_PROPERTY(unsigned int volumeLevelA READ volumeLevelA WRITE setVolumeLevelA)
1740 Q_CLASSINFO("volumeLevelBDescription", "Sets the volume level for VFO B.")
1741 Q_PROPERTY(unsigned int volumeLevelB READ volumeLevelB WRITE setVolumeLevelB)
1742
1743 Q_CLASSINFO("micGainDescription", "Specifies the microphone gain.")
1744 Q_PROPERTY(unsigned int micGain READ micGain WRITE setMicGain)
1745
1746 Q_PROPERTY(unsigned int squelch READ squelch WRITE setSquelch)
1747
1748 Q_PROPERTY(unsigned int txNoiseReduction READ txNoiseReduction WRITE setTxNoiseReduction)
1749
1750 Q_PROPERTY(unsigned int voxLevel READ voxLevel WRITE setVoxLevel)
1751 Q_PROPERTY(Interval voxDelay READ voxDelay WRITE setVoxDelay)
1752
1753 Q_PROPERTY(AnytoneKeySettingsExtension::KeyFunction funcKeyAShort READ funcKeyAShort WRITE setFuncKeyAShort)
1754 Q_PROPERTY(AnytoneKeySettingsExtension::KeyFunction funcKeyBShort READ funcKeyBShort WRITE setFuncKeyBShort)
1755 Q_PROPERTY(AnytoneKeySettingsExtension::KeyFunction funcKeyCShort READ funcKeyCShort WRITE setFuncKeyCShort)
1756 Q_PROPERTY(AnytoneKeySettingsExtension::KeyFunction funcKeyALong READ funcKeyALong WRITE setFuncKeyALong)
1757 Q_PROPERTY(AnytoneKeySettingsExtension::KeyFunction funcKeyBLong READ funcKeyBLong WRITE setFuncKeyBLong)
1758 Q_PROPERTY(AnytoneKeySettingsExtension::KeyFunction funcKeyCLong READ funcKeyCLong WRITE setFuncKeyCLong)
1759 Q_PROPERTY(AnytoneKeySettingsExtension::KeyFunction funcKeyAVeryLong READ funcKeyAVeryLong WRITE setFuncKeyAVeryLong)
1760 Q_PROPERTY(AnytoneKeySettingsExtension::KeyFunction funcKeyBVeryLong READ funcKeyBVeryLong WRITE setFuncKeyBVeryLong)
1761 Q_PROPERTY(AnytoneKeySettingsExtension::KeyFunction funcKeyCVeryLong READ funcKeyCVeryLong WRITE setFuncKeyCVeryLong)
1762
1763 Q_PROPERTY(Interval backlight READ backlight WRITE setBacklight)
1764
1765public:
1767 explicit AnytoneBluetoothHandsetSettingsExtension(QObject *parent=nullptr);
1768
1769 ConfigItem *clone() const override;
1770
1772 bool shutdownEnabled() const;
1774 void enableShutdown(bool enable);
1775
1777 unsigned int volumeLevelA() const;
1779 void setVolumeLevelA(unsigned int level);
1781 unsigned int volumeLevelB() const;
1783 void setVolumeLevelB(unsigned int level);
1784
1786 unsigned int micGain() const;
1788 void setMicGain(unsigned int gain);
1789
1791 unsigned int squelch() const;
1793 void setSquelch(unsigned int level);
1794
1796 unsigned int txNoiseReduction() const;
1798 void setTxNoiseReduction(unsigned int level);
1799
1801 unsigned int voxLevel() const;
1803 void setVoxLevel(unsigned int level);
1804
1806 Interval voxDelay() const;
1808 void setVoxDelay(Interval delay);
1809
1811 AnytoneKeySettingsExtension::KeyFunction funcKeyAShort() const;
1813 void setFuncKeyAShort(AnytoneKeySettingsExtension::KeyFunction func);
1815 AnytoneKeySettingsExtension::KeyFunction funcKeyBShort() const;
1817 void setFuncKeyBShort(AnytoneKeySettingsExtension::KeyFunction func);
1819 AnytoneKeySettingsExtension::KeyFunction funcKeyCShort() const;
1821 void setFuncKeyCShort(AnytoneKeySettingsExtension::KeyFunction func);
1823 AnytoneKeySettingsExtension::KeyFunction funcKeyALong() const;
1825 void setFuncKeyALong(AnytoneKeySettingsExtension::KeyFunction func);
1827 AnytoneKeySettingsExtension::KeyFunction funcKeyBLong() const;
1829 void setFuncKeyBLong(AnytoneKeySettingsExtension::KeyFunction func);
1831 AnytoneKeySettingsExtension::KeyFunction funcKeyCLong() const;
1833 void setFuncKeyCLong(AnytoneKeySettingsExtension::KeyFunction func);
1835 AnytoneKeySettingsExtension::KeyFunction funcKeyAVeryLong() const;
1837 void setFuncKeyAVeryLong(AnytoneKeySettingsExtension::KeyFunction func);
1839 AnytoneKeySettingsExtension::KeyFunction funcKeyBVeryLong() const;
1841 void setFuncKeyBVeryLong(AnytoneKeySettingsExtension::KeyFunction func);
1843 AnytoneKeySettingsExtension::KeyFunction funcKeyCVeryLong() const;
1845 void setFuncKeyCVeryLong(AnytoneKeySettingsExtension::KeyFunction func);
1846
1848 Interval backlight() const;
1850 void setBacklight(Interval dur);
1851
1852protected:
1854 unsigned int _volumeLevelA;
1855 unsigned int _volumeLevelB;
1856 unsigned int _micGain;
1857 unsigned int _squelch;
1858 unsigned int _txNoiseReduction;
1859 unsigned int _voxLevel;
1880};
1881
1882
1883
1889{
1890 Q_OBJECT
1891
1892 Q_CLASSINFO("Description", "Collects all bluetooth settings for AnyTone devices.")
1893
1894
1895 Q_PROPERTY(bool enabled READ bluetoothEnabled WRITE enableBluetooth)
1897 Q_PROPERTY(bool pttLatch READ pttLatch WRITE enablePTTLatch)
1899 Q_PROPERTY(Interval pttSleepTimer READ pttSleepTimer WRITE setPTTSleepTimer)
1901 Q_PROPERTY(bool internalMic READ internalMicEnabled WRITE enableInternalMic)
1903 Q_PROPERTY(bool internalSpeaker READ internalSpeakerEnabled WRITE enableInternalSpeaker)
1905 Q_PROPERTY(unsigned int micGain READ micGain WRITE setMicGain);
1907 Q_PROPERTY(unsigned int speakerGain READ speakerGain WRITE setSpeakerGain);
1909 Q_PROPERTY(Interval hold READ holdDuration WRITE setHoldDuration)
1911 Q_PROPERTY(Interval holdDelay READ holdDelay WRITE setHoldDelay)
1913 Q_PROPERTY(AnytoneBluetoothHandsetSettingsExtension* handset READ handset)
1914
1915public:
1917 explicit AnytoneBluetoothSettingsExtension(QObject *parent=nullptr);
1918
1919 ConfigItem *clone() const;
1920
1923
1925 bool bluetoothEnabled() const;
1927 void enableBluetooth(bool enable);
1928
1930 bool pttLatch() const;
1932 void enablePTTLatch(bool enable);
1933
1935 Interval pttSleepTimer() const;
1937 void setPTTSleepTimer(Interval intv);
1938
1940 bool internalMicEnabled() const;
1942 void enableInternalMic(bool enable);
1943
1945 bool internalSpeakerEnabled() const;
1947 void enableInternalSpeaker(bool enable);
1948
1950 unsigned int micGain() const;
1952 void setMicGain(unsigned int gain);
1953
1955 unsigned int speakerGain() const;
1957 void setSpeakerGain(unsigned int gain);
1958
1960 const Interval &holdDuration() const;
1962 void setHoldDuration(const Interval &dur);
1963
1965 const Interval &holdDelay() const;
1967 void setHoldDelay(const Interval &dur);
1968
1969protected:
1972 bool _bluetoothEnabled;
1973 bool _pttLatch;
1974 Interval _pttSleep;
1975 bool _internalMic;
1976 bool _internalSpeaker;
1977 unsigned int _micGain;
1978 unsigned int _speakerGain;
1979 Interval _holdDuration;
1980 Interval _holdDelay;
1981};
1982
1983
1984
1990{
1991 Q_OBJECT
1992
1993 Q_CLASSINFO("enabledDescription", "If true, the repeater feature is enabled.")
1995 Q_PROPERTY(bool enabled READ enabled WRITE enable)
1996
1997 Q_CLASSINFO("monitorDescription", "If true, the repeater-monitoring is enabled.")
1999 Q_PROPERTY(bool monitor READ monitorEnabled WRITE enableMonitor)
2000
2001 Q_CLASSINFO("timeSlotDescription", "Specifies the time-slot of the primary repeater channel.")
2003 Q_PROPERTY(TimeSlot timeSlot READ timeSlot WRITE setTimeSlot)
2004
2005 Q_CLASSINFO("secTimeSlotDescription", "Specifies the time-slot of the secondary repeater channel.")
2007 Q_PROPERTY(TimeSlot secTimeSlot READ secTimeSlot WRITE setSecTimeSlot)
2008
2009 Q_CLASSINFO("colorCodeDescription", "Specifies the repeater color code.")
2010 Q_PROPERTY(ColorCode colorCode READ colorCode WRITE setColorCode)
2011
2012public:
2014 enum class TimeSlot {
2015 Any, TS1, TS2, Channel
2016 };
2017 Q_ENUM(TimeSlot)
2018
2019
2020 enum class ColorCode {
2021 Ignored, VFOA, VFOB
2022 };
2023 Q_ENUM(ColorCode)
2024
2025public:
2027 explicit AnytoneRepeaterSettingsExtension(QObject *parent=nullptr);
2028
2029 ConfigItem *clone() const;
2030
2032 bool enabled() const;
2034 void enable(bool enable);
2035
2037 bool monitorEnabled() const;
2039 void enableMonitor(bool enable);
2040
2042 TimeSlot timeSlot() const;
2044 void setTimeSlot(TimeSlot ts);
2045
2047 TimeSlot secTimeSlot() const;
2049 void setSecTimeSlot(TimeSlot ts);
2050
2052 ColorCode colorCode() const;
2054 void setColorCode(ColorCode code);
2055
2056protected:
2062};
2063
2064
2065
2071{
2072 Q_OBJECT
2073
2074 Q_CLASSINFO("powerDescription", "Specifies the transmit power in satellite mode.")
2076 Q_PROPERTY(Channel::Power power READ power WRITE setPower)
2077
2078 Q_CLASSINFO("squelchDescription", "Specifies FM squelch level in satellite mode.")
2080 Q_PROPERTY(unsigned int squelch READ squelch WRITE setSquelch)
2081
2082public:
2084 explicit AnytoneSatelliteSettingsExtension(QObject *parent=nullptr);
2085
2086 ConfigItem *clone() const;
2087
2089 Channel::Power power() const;
2091 void setPower(Channel::Power power);
2092
2094 unsigned int squelch() const;
2096 void setSquelch(unsigned int squelch);
2097
2098protected:
2100 Channel::Power _power;
2102 unsigned int _squelch;
2103};
2104
2105
2106
2114{
2115 Q_OBJECT
2116
2117 Q_CLASSINFO("description", "Device specific settings for AnyTone devices.")
2118
2119 Q_CLASSINFO("subChannelDescription", "Enables/disables the sub-channel.")
2121 Q_PROPERTY(bool subChannel READ subChannelEnabled WRITE enableSubChannel)
2122
2123 Q_CLASSINFO("selectedVFODecription", "Specifies the currently selected VFO (A or B).")
2125 Q_PROPERTY(VFO selectedVFO READ selectedVFO WRITE setSelectedVFO)
2126
2127 Q_CLASSINFO("modeADescription", "Specifies the mode (memory or VFO) for VFO A.")
2128 Q_CLASSINFO("modeBDescription", "Specifies the mode (memory or VFO) for VFO B.")
2130 Q_PROPERTY(VFOMode modeA READ modeA WRITE setModeA)
2132 Q_PROPERTY(VFOMode modeB READ modeB WRITE setModeB)
2133
2134 Q_CLASSINFO("zoneADescription", "Specifies the current zone for VFO A.")
2135 Q_CLASSINFO("zoneBDescription", "Specifies the current zone for VFO B.")
2137 Q_PROPERTY(ZoneReference* zoneA READ zoneA)
2139 Q_PROPERTY(ZoneReference* zoneB READ zoneB)
2140
2142 Q_PROPERTY(VFOScanType vfoScanType READ vfoScanType WRITE setVFOScanType)
2144 Q_PROPERTY(Frequency minVFOScanFrequencyUHF READ minVFOScanFrequencyUHF WRITE setMinVFOScanFrequencyUHF)
2146 Q_PROPERTY(Frequency maxVFOScanFrequencyUHF READ maxVFOScanFrequencyUHF WRITE setMaxVFOScanFrequencyUHF)
2148 Q_PROPERTY(Frequency minVFOScanFrequencyVHF READ minVFOScanFrequencyVHF WRITE setMinVFOScanFrequencyVHF)
2150 Q_PROPERTY(Frequency maxVFOScanFrequencyVHF READ maxVFOScanFrequencyVHF WRITE setMaxVFOScanFrequencyVHF)
2151
2152 Q_CLASSINFO("keepLastCallerDescription", "Keeps the last caller on channel switch")
2154 Q_PROPERTY(bool keepLastCaller READ keepLastCallerEnabled WRITE enableKeepLastCaller)
2155
2156 Q_CLASSINFO("vfoStepDescription", "Specifies the VFO tuning steps in kHz.")
2158 Q_PROPERTY(Frequency vfoStep READ vfoStep WRITE setVFOStep)
2159
2160 Q_CLASSINFO("steTypeDescription", "Specifies the STE (squelch tail elimination) type.")
2161 Q_CLASSINFO("steTypeLongDescription", "Can also be used to disable the STE entirely.")
2163 Q_PROPERTY(STEType steType READ steType WRITE setSTEType)
2164
2165 Q_CLASSINFO("steFrequencyDescription", "Specifies the STE (squelch tail elimination) frequency in Hz.")
2167 Q_PROPERTY(double steFrequency READ steFrequency WRITE setSTEFrequency)
2168
2169 Q_CLASSINFO("steDurationDescription", "Specifies the duration of the STE (squelch tail elimination) tone.")
2170 Q_CLASSINFO("steDurationLongDescription", "Valid values are usually in the range between 10 and 1000ms.")
2172 Q_PROPERTY(Interval steDuration READ steDuration WRITE setSTEDuration)
2173
2174 Q_CLASSINFO("tbstFrequencyDescription", "Specifies the TBST frequency in Hz.")
2175 Q_CLASSINFO("tbstFrequencyDescription", "Should be one of 1000, 1450, 1750 and 2100 Hz. "
2176 "D878UV(2), D578UV and DMR-6X2UV only.")
2178 Q_PROPERTY(Frequency tbstFrequency READ tbstFrequency WRITE setTBSTFrequency)
2179
2180 Q_CLASSINFO("proModeDescription", "Enables 'professional' mode. This limits the option reachable via the menu.")
2182 Q_PROPERTY(bool proMode READ proModeEnabled WRITE enableProMode)
2183
2185 Q_PROPERTY(bool maintainCallChannel READ maintainCallChannelEnabled WRITE enableMaintainCallChannel)
2186
2188 Q_PROPERTY(FanControl fan READ fan WRITE setFan);
2189
2191 Q_PROPERTY(AnytoneBootSettingsExtension* bootSettings READ bootSettings)
2193 Q_PROPERTY(AnytonePowerSaveSettingsExtension* powerSaveSettings READ powerSaveSettings)
2195 Q_PROPERTY(AnytoneKeySettingsExtension* keySettings READ keySettings)
2197 Q_PROPERTY(AnytoneToneSettingsExtension* toneSettings READ toneSettings)
2199 Q_PROPERTY(AnytoneDisplaySettingsExtension* displaySettings READ displaySettings)
2201 Q_PROPERTY(AnytoneAudioSettingsExtension* audioSettings READ audioSettings)
2203 Q_PROPERTY(AnytoneMenuSettingsExtension* menuSettings READ menuSettings)
2205 Q_PROPERTY(AnytoneAutoRepeaterSettingsExtension* autoRepeaterSettings READ autoRepeaterSettings)
2207 Q_PROPERTY(AnytoneDMRSettingsExtension* dmrSettings READ dmrSettings)
2209 Q_PROPERTY(AnytoneGPSSettingsExtension* gpsSettings READ gpsSettings)
2211 Q_PROPERTY(AnytoneRoamingSettingsExtension* roamingSettings READ roamingSettings)
2213 Q_PROPERTY(AnytoneBluetoothSettingsExtension* bluetoothSettings READ bluetoothSettings)
2214
2215 Q_CLASSINFO("simplexRepeaterSettingsDescription",
2216 "Configuration for the DMR-6X2UV simplex-repeater feature.")
2218 Q_PROPERTY(AnytoneRepeaterSettingsExtension * repeaterSettings READ repeaterSettings)
2219
2220 Q_CLASSINFO("satelliteSettingsDescription",
2221 "Some settings of for satellite mode.")
2222 Q_PROPERTY(AnytoneSatelliteSettingsExtension * satelliteSettings READ satelliteSettings)
2223
2224public:
2226 enum class VFOScanType {
2227 Time = 0, Carrier = 1, Stop = 2
2228 };
2229 Q_ENUM(VFOScanType)
2230
2231
2232 enum class VFOMode {
2233 Memory = 0, VFO = 1
2234 };
2235 Q_ENUM(VFOMode)
2236
2237
2238 enum class VFO {
2239 A = 0, B = 1
2240 };
2241 Q_ENUM(VFO)
2242
2243
2244 enum class STEType {
2245 Off = 0, Silent = 1, Deg120 = 2, Deg180 = 3, Deg240 = 4
2246 };
2247 Q_ENUM(STEType)
2248
2249 enum class FanControl {
2250 PTT, Temperature, Both
2251 };
2252 Q_ENUM(FanControl)
2253
2254
2255public:
2257 Q_INVOKABLE explicit AnytoneSettingsExtension(QObject *parent=nullptr);
2258
2259 ConfigItem *clone() const;
2260
2262 AnytoneBootSettingsExtension *bootSettings() const;
2264 AnytonePowerSaveSettingsExtension *powerSaveSettings() const;
2266 AnytoneKeySettingsExtension *keySettings() const;
2268 AnytoneToneSettingsExtension *toneSettings() const;
2270 AnytoneDisplaySettingsExtension *displaySettings() const;
2272 AnytoneAudioSettingsExtension *audioSettings() const;
2274 AnytoneMenuSettingsExtension *menuSettings() const;
2276 AnytoneAutoRepeaterSettingsExtension *autoRepeaterSettings() const;
2278 AnytoneDMRSettingsExtension *dmrSettings() const;
2280 AnytoneGPSSettingsExtension *gpsSettings() const;
2282 AnytoneRoamingSettingsExtension *roamingSettings() const;
2284 AnytoneBluetoothSettingsExtension *bluetoothSettings() const;
2286 AnytoneRepeaterSettingsExtension *repeaterSettings() const;
2288 AnytoneSatelliteSettingsExtension *satelliteSettings() const;
2289
2291 VFOScanType vfoScanType() const;
2293 void setVFOScanType(VFOScanType type);
2294
2296 VFOMode modeA() const;
2298 void setModeA(VFOMode mode);
2300 VFOMode modeB() const;
2302 void setModeB(VFOMode mode);
2303
2307 const ZoneReference *zoneA() const;
2311 const ZoneReference *zoneB() const;
2312
2314 VFO selectedVFO() const;
2316 void setSelectedVFO(VFO vfo);
2317
2319 bool subChannelEnabled() const;
2321 void enableSubChannel(bool enable);
2322
2324 Frequency minVFOScanFrequencyUHF() const;
2326 void setMinVFOScanFrequencyUHF(Frequency hz);
2328 Frequency maxVFOScanFrequencyUHF() const;
2330 void setMaxVFOScanFrequencyUHF(Frequency hz);
2331
2333 Frequency minVFOScanFrequencyVHF() const;
2335 void setMinVFOScanFrequencyVHF(Frequency hz);
2337 Frequency maxVFOScanFrequencyVHF() const;
2339 void setMaxVFOScanFrequencyVHF(Frequency hz);
2340
2342 bool keepLastCallerEnabled() const;
2344 void enableKeepLastCaller(bool enable);
2345
2347 Frequency vfoStep() const;
2349 void setVFOStep(Frequency step);
2350
2352 STEType steType() const;
2354 void setSTEType(STEType type);
2357 double steFrequency() const;
2360 void setSTEFrequency(double freq);
2362 Interval steDuration() const;
2364 void setSTEDuration(Interval intv);
2365
2367 Frequency tbstFrequency() const;
2369 void setTBSTFrequency(Frequency Hz);
2370
2372 bool proModeEnabled() const;
2374 void enableProMode(bool enable);
2375
2377 bool maintainCallChannelEnabled() const;
2379 void enableMaintainCallChannel(bool enable);
2380
2382 FanControl fan() const;
2384 void setFan(FanControl ctlr);
2385
2387 //Channel::Power satPower();
2388
2389protected:
2418
2438 FanControl _fan;
2439};
2440
2441
2442
2443#endif // ANYTONE_SETTINGSEXTENSION_H
Implements the audio settings extension of AnyTone devices.
Definition anytone_settingsextension.hh:885
bool _recording
Recording enabled.
Definition anytone_settingsextension.hh:1010
Interval _voxDelay
VOX delay in ms.
Definition anytone_settingsextension.hh:1009
VoxSource
Source for the VOX.
Definition anytone_settingsextension.hh:921
HandsetSpeakerSource
Possible handset speaker sources.
Definition anytone_settingsextension.hh:933
HandsetType _handsetType
Handset type.
Definition anytone_settingsextension.hh:1020
bool _enhanceAudio
Enhance audio.
Definition anytone_settingsextension.hh:1014
HandsetType
Specifies possible handset types.
Definition anytone_settingsextension.hh:939
unsigned int _maxVolume
The maximum volume.
Definition anytone_settingsextension.hh:1012
bool _enableAnalogMicGain
Enables separate analog mic gain.
Definition anytone_settingsextension.hh:1016
HandsetSpeakerSource _handsetSpeaker
Specifies the handset speaker source.
Definition anytone_settingsextension.hh:1019
Interval _muteDelay
Mute delay in minutes.
Definition anytone_settingsextension.hh:1015
unsigned int _maxHeadPhoneVolume
The maximum head-phone volume.
Definition anytone_settingsextension.hh:1013
VoxSource _voxSource
The VOX source.
Definition anytone_settingsextension.hh:1011
Speaker
Possible speaker settings.
Definition anytone_settingsextension.hh:927
unsigned int _analogMicGain
The FM mic gain.
Definition anytone_settingsextension.hh:1017
Speaker _speaker
Specifies which speaker are enabled.
Definition anytone_settingsextension.hh:1018
Represents a list of auto-repeater offsets.
Definition anytone_settingsextension.hh:1109
Represents a reference to a repeater offset.
Definition anytone_settingsextension.hh:1097
Implements the config representation of a repeater offset.
Definition anytone_settingsextension.hh:1065
Implements the auto-repeater settings extension of AnyTone devices.
Definition anytone_settingsextension.hh:1125
Frequency _minUHF2
Minimum frequency of the second UHF auto-repeater range.
Definition anytone_settingsextension.hh:1282
Frequency _maxUHF2
Maximum frequency of the second UHF auto-repeater range.
Definition anytone_settingsextension.hh:1284
Frequency _maxVHF
Maximum frequency of the VHF auto-repeater range.
Definition anytone_settingsextension.hh:1268
Direction _directionA
The auto-repeater direction for VFO A.
Definition anytone_settingsextension.hh:1262
Frequency _minVHF
Minimum frequency of the VHF auto-repeater range.
Definition anytone_settingsextension.hh:1266
AnytoneAutoRepeaterOffsetRef * _uhf2Offset
A reference to the second UHF offset frequency.
Definition anytone_settingsextension.hh:1288
Direction _directionB
The auto-repeater direction for VFO B.
Definition anytone_settingsextension.hh:1264
Direction
Encodes the auto-repeater offset sign.
Definition anytone_settingsextension.hh:1191
AnytoneAutoRepeaterOffsetRef * _vhfOffset
A reference to the VHF offset frequency.
Definition anytone_settingsextension.hh:1274
Frequency _maxVHF2
Maximum frequency of the second VHF auto-repeater range.
Definition anytone_settingsextension.hh:1280
AnytoneAutoRepeaterOffsetRef * _uhfOffset
A reference to the UHF offset frequency.
Definition anytone_settingsextension.hh:1276
Frequency _minUHF
Minimum frequency of the UHF auto-repeater range.
Definition anytone_settingsextension.hh:1270
AnytoneAutoRepeaterOffsetList * _offsets
The list of repeater offsets.
Definition anytone_settingsextension.hh:1290
Frequency _maxUHF
Maximum frequency of the UHF auto-repeater range.
Definition anytone_settingsextension.hh:1272
Frequency _minVHF2
Minimum frequency of the second VHF auto-repeater range.
Definition anytone_settingsextension.hh:1278
AnytoneAutoRepeaterOffsetRef * _vhf2Offset
A reference to the second VHF offset frequency.
Definition anytone_settingsextension.hh:1286
Implements the bluetooth handset settings for AnyTone devices.
Definition anytone_settingsextension.hh:1730
AnytoneKeySettingsExtension::KeyFunction _funcKeyBLong
Function key B long press function.
Definition anytone_settingsextension.hh:1870
unsigned int _voxLevel
Specifies the VOX level.
Definition anytone_settingsextension.hh:1859
unsigned int _volumeLevelB
Specifies the volume level for VFO B.
Definition anytone_settingsextension.hh:1855
AnytoneKeySettingsExtension::KeyFunction _funcKeyCLong
Function key B long press function.
Definition anytone_settingsextension.hh:1872
unsigned int _volumeLevelA
Specifies the volume level for VFO A.
Definition anytone_settingsextension.hh:1854
unsigned int _txNoiseReduction
Specifies the transmit noise reduction level.
Definition anytone_settingsextension.hh:1858
unsigned int _squelch
Specifies the squelch level.
Definition anytone_settingsextension.hh:1857
AnytoneKeySettingsExtension::KeyFunction _funcKeyCShort
Function key B short press function.
Definition anytone_settingsextension.hh:1866
bool _shutdown
Shut the handset down along with the radio.
Definition anytone_settingsextension.hh:1853
AnytoneKeySettingsExtension::KeyFunction _funcKeyALong
Function key A long press function.
Definition anytone_settingsextension.hh:1868
Interval _voxDelay
Specifies the VOX delay.
Definition anytone_settingsextension.hh:1860
AnytoneKeySettingsExtension::KeyFunction _funcKeyAShort
Function key A short press function.
Definition anytone_settingsextension.hh:1862
AnytoneKeySettingsExtension::KeyFunction _funcKeyBShort
Function key B short press function.
Definition anytone_settingsextension.hh:1864
AnytoneKeySettingsExtension::KeyFunction _funcKeyBVeryLong
Function key B very long press function.
Definition anytone_settingsextension.hh:1876
AnytoneKeySettingsExtension::KeyFunction _funcKeyCVeryLong
Function key B very long press function.
Definition anytone_settingsextension.hh:1878
Interval _backlight
Backlight duration.
Definition anytone_settingsextension.hh:1879
unsigned int _micGain
Specifies the mic gain.
Definition anytone_settingsextension.hh:1856
AnytoneKeySettingsExtension::KeyFunction _funcKeyAVeryLong
Function key A very long press function.
Definition anytone_settingsextension.hh:1874
Implements the bluetooth settings for some AnyTone devices.
Definition anytone_settingsextension.hh:1889
Implements the boot settings extension of AnyTone devices.
Definition anytone_settingsextension.hh:20
void enableBootPassword(bool enable)
Enables the boot password.
Definition anytone_settingsextension.cc:900
bool resetEnabled() const
Returns true if the MCU is reset on boot.
Definition anytone_settingsextension.cc:970
bool _reset
Enables MCU reset on boot.
Definition anytone_settingsextension.hh:120
bool defaultChannel
If enabled, the default channels are selected at boot.
Definition anytone_settingsextension.hh:32
ChannelReference * channelA
The default channel for VFO A.
Definition anytone_settingsextension.hh:38
ChannelReference * _channelB
Default channel for VFO B, must be member of zone for VFO B.
Definition anytone_settingsextension.hh:116
ZoneReference * priorityZoneB
The priority zone for VFO B.
Definition anytone_settingsextension.hh:48
bool _bootPasswordEnabled
If true, the boot password is enabled.
Definition anytone_settingsextension.hh:110
ZoneReference * zoneB
The current zone for VFO B.
Definition anytone_settingsextension.hh:41
BootDisplay _bootDisplay
The boot display property.
Definition anytone_settingsextension.hh:109
void enableReset(bool enable)
Enables/disables MCU reset on boot.
Definition anytone_settingsextension.cc:974
ConfigItem * clone() const
Clones this item.
Definition anytone_settingsextension.cc:874
ZoneReference * _priorityZoneA
Priority zone for VFO A.
Definition anytone_settingsextension.hh:117
bool _defaultChannel
Change to the default channel on boot.
Definition anytone_settingsextension.hh:112
QString bootPassword
Holds the boot password.
Definition anytone_settingsextension.hh:28
void enableDefaultChannel(bool enable)
Enables/disables boot default channel.
Definition anytone_settingsextension.cc:924
bool bootPasswordEnabled
If true, the boot password is enabled.
Definition anytone_settingsextension.hh:26
bool gpsCheckEnabled() const
Returns true if the GPS check is enabled.
Definition anytone_settingsextension.cc:958
bool _gpsCheck
Enables GPS check.
Definition anytone_settingsextension.hh:119
ZoneReference * _zoneA
Default zone for VFO A.
Definition anytone_settingsextension.hh:113
ChannelReference * channelB
The default channel for VFO B.
Definition anytone_settingsextension.hh:44
ZoneReference * zoneA
The default zone for VFO A.
Definition anytone_settingsextension.hh:35
ZoneReference * _priorityZoneB
Priority zone for VFO B.
Definition anytone_settingsextension.hh:118
void enableGPSCheck(bool enable)
Enables/disables the GPS check.
Definition anytone_settingsextension.cc:962
bool defaultChannelEnabled() const
If true, the radio switches to the default channel at boot.
Definition anytone_settingsextension.cc:920
BootDisplay
What to display during boot.
Definition anytone_settingsextension.hh:57
void setBootDisplay(BootDisplay mode)
Sets the boot display.
Definition anytone_settingsextension.cc:888
bool reset
Enables the MCU reset on boot.
Definition anytone_settingsextension.hh:53
BootDisplay bootDisplay
The boot display setting.
Definition anytone_settingsextension.hh:24
void setBootPassword(const QString &pass)
Sets the boot password.
Definition anytone_settingsextension.cc:912
bool gpsCheck
Enables the GPS check.
Definition anytone_settingsextension.hh:51
ZoneReference * _zoneB
Default zone for VFO B.
Definition anytone_settingsextension.hh:115
ChannelReference * _channelA
Default channel for VFO A, must be member of zone for VFO A.
Definition anytone_settingsextension.hh:114
QString _bootPassword
The boot password.
Definition anytone_settingsextension.hh:111
ZoneReference * priorityZoneA
The priority zone for VFO A.
Definition anytone_settingsextension.hh:46
Implements the DMR settings extension of AnyTone devices.
Definition anytone_settingsextension.hh:1299
SMSFormat _smsFormat
Sets the SMS format.
Definition anytone_settingsextension.hh:1481
Interval _preWaveDelay
Pre-wave time in ms, should be 100ms.
Definition anytone_settingsextension.hh:1474
bool _monitorColorCodeMatch
Enables CC match for DMR monitor.
Definition anytone_settingsextension.hh:1478
bool _monitorIDMatch
Enables ID match for DMR monitor.
Definition anytone_settingsextension.hh:1479
EncryptionType _encryption
DMR encryption type.
Definition anytone_settingsextension.hh:1485
bool _monitorTimeSlotHold
Enables the time-slot hold for the DMR monitor.
Definition anytone_settingsextension.hh:1480
Interval _manualGroupCallHangTime
Hang-time for manual dialed group-calls in seconds.
Definition anytone_settingsextension.hh:1471
bool _filterOwnID
If enabled, the own ID is not shown in call lists.
Definition anytone_settingsextension.hh:1476
TalkerAliasEncoding _talkerAliasEncoding
Encoding for the talker alias.
Definition anytone_settingsextension.hh:1484
Interval _privateCallHangTime
Hang-time for private-calls in seconds.
Definition anytone_settingsextension.hh:1472
bool _sendTalkerAlias
Enables sending talker alias.
Definition anytone_settingsextension.hh:1482
Interval _groupCallHangTime
Hang-time for group-calls in seconds.
Definition anytone_settingsextension.hh:1470
SlotMatch _monitorSlotMatch
Slot-match mode for DMR monitor.
Definition anytone_settingsextension.hh:1477
Interval _wakeHeadPeriod
Wake head-period in ms, should be 100ms.
Definition anytone_settingsextension.hh:1475
TalkerAliasSource _talkerAliasSource
Source for the talker alias.
Definition anytone_settingsextension.hh:1483
Interval _manualPrivateCallHangTime
Hang-time for manual dialed private-calls in seconds.
Definition anytone_settingsextension.hh:1473
Implements the display settings extension of AnyTone devices.
Definition anytone_settingsextension.hh:613
Color _zoneNameColor
Color of zone name.
Definition anytone_settingsextension.hh:875
bool _callEndPrompt
Call-end prompt enabled.
Definition anytone_settingsextension.hh:853
bool _showLastHeard
Shows the last caller.
Definition anytone_settingsextension.hh:868
bool _showTimeSlot
Show time slot.
Definition anytone_settingsextension.hh:863
LastCallerDisplayMode _lastCallerDisplay
Last-caller display mode.
Definition anytone_settingsextension.hh:854
bool _showColorCode
Show color code.
Definition anytone_settingsextension.hh:862
bool _showContact
Enables showing the contact.
Definition anytone_settingsextension.hh:865
Color _callColor
Color of call.
Definition anytone_settingsextension.hh:857
bool _customChannelBackground
Custom channel background enabled.
Definition anytone_settingsextension.hh:872
Color _channelNameColor
Color of channel name.
Definition anytone_settingsextension.hh:873
unsigned int _brightness
The display brightness.
Definition anytone_settingsextension.hh:851
Color _zoneBNameColor
Color of zone name for VFO B.
Definition anytone_settingsextension.hh:876
Color _standbyBackgroundColor
Standby background color.
Definition anytone_settingsextension.hh:867
Interval _backlightDuration
Backlight duration.
Definition anytone_settingsextension.hh:869
Color _standbyTextColor
Standby text color.
Definition anytone_settingsextension.hh:866
bool _volumeChangePrompt
Volume-change prompt enabled.
Definition anytone_settingsextension.hh:852
bool _showChannelNumber
Show channel number.
Definition anytone_settingsextension.hh:860
Interval _backlightDurationTX
Backlight duration during TX (0=off).
Definition anytone_settingsextension.hh:870
bool _showGlobalChannelNumber
Show global channel number.
Definition anytone_settingsextension.hh:861
bool _showClock
Display clock.
Definition anytone_settingsextension.hh:855
bool _showCall
Display call.
Definition anytone_settingsextension.hh:856
bool _displayFrequency
Display frequency property.
Definition anytone_settingsextension.hh:850
Language _language
UI language.
Definition anytone_settingsextension.hh:858
DateFormat _dateFormat
The date format.
Definition anytone_settingsextension.hh:859
bool _showChannelType
Show channel type.
Definition anytone_settingsextension.hh:864
Interval _backlightDurationRX
Backlight duration during RX.
Definition anytone_settingsextension.hh:871
Color _channelBNameColor
Color of channel name for VFO B.
Definition anytone_settingsextension.hh:874
Implements the GPS settings extension of AnyTone devices.
Definition anytone_settingsextension.hh:1494
bool _gpsRangeReporting
Enables GPS range reporting.
Definition anytone_settingsextension.hh:1567
Units _gpsUnits
The GPS units.
Definition anytone_settingsextension.hh:1565
QTimeZone _timeZone
The time zone.
Definition anytone_settingsextension.hh:1566
GPSMode _mode
The GPS mode (GPS, Baidu, both).
Definition anytone_settingsextension.hh:1569
Interval _gpsRangingInterval
The GPS ranging interval in seconds.
Definition anytone_settingsextension.hh:1568
GPSMode
Possible GPS modes.
Definition anytone_settingsextension.hh:1524
Units
Possible unit systems.
Definition anytone_settingsextension.hh:1518
Implements the key settings extension of AnyTone devices.
Definition anytone_settingsextension.hh:193
KeyFunction _funcKey6Short
Function of the function key 6, short press.
Definition anytone_settingsextension.hh:433
KeyFunction _funcKey3Short
Function of the function key 3, short press.
Definition anytone_settingsextension.hh:427
void setFuncKeyBLong(KeyFunction func)
Sets the key function for a long press on the function key B.
Definition anytone_settingsextension.cc:1261
KeyFunction funcKey6Short
Function key 6 (P6 next to screen, D578UV only), short press function.
Definition anytone_settingsextension.hh:217
KeyFunction funcKeyCLong
Function key C (PF3 on top or B on mic), long press function.
Definition anytone_settingsextension.hh:231
void setFuncKeyCLong(KeyFunction func)
Sets the key function for a long press on the function key C.
Definition anytone_settingsextension.cc:1284
void setFuncKey5Short(KeyFunction func)
Sets the key function for a short press on the programmable function key 5.
Definition anytone_settingsextension.cc:1181
void enableKeypadLock(bool enable)
Enables/disables the key-pad lock.
Definition anytone_settingsextension.cc:1397
KeyFunction _funcKey1Long
Function of the function key 1, long press.
Definition anytone_settingsextension.hh:424
bool sideKeysLockEnabled() const
Returns true if the side-keys gets locked too.
Definition anytone_settingsextension.cc:1404
bool autoKeyLock
The auto key-lock property.
Definition anytone_settingsextension.hh:247
KeyFunction _funcKeyAShort
Function of the function key A, short press.
Definition anytone_settingsextension.hh:435
void setFuncKey2Short(KeyFunction func)
Sets the key function for a short press on the programmable function key 2.
Definition anytone_settingsextension.cc:1112
KeyFunction funcKey1Short
Function key 1 (P1 below or next to screen), short press function.
Definition anytone_settingsextension.hh:197
KeyFunction _funcKeyBShort
Function of the function key B, short press.
Definition anytone_settingsextension.hh:437
KeyFunction funcKey3Long
Function key 3 (P3 next to screen, D578UV only), long press function.
Definition anytone_settingsextension.hh:207
KeyFunction funcKey2Short
Function key 2 (P2 below or next to screen), short press function.
Definition anytone_settingsextension.hh:201
KeyFunction funcKey6Long
Function key 6 (P6 next to screen, D578UV only), long press function.
Definition anytone_settingsextension.hh:219
void enableKnobLock(bool enable)
Enables/disables the knob lock.
Definition anytone_settingsextension.cc:1386
bool _sideKeysLock
Side-keys are locked.
Definition anytone_settingsextension.hh:450
KeyFunction funcKey2Long
Function key 2 (P2 below or next to screen), long press function.
Definition anytone_settingsextension.hh:203
KeyFunction _funcKey5Long
Function of the function key 5, long press.
Definition anytone_settingsextension.hh:432
void setFuncKeyDLong(KeyFunction func)
Sets the key function for a long press on the function key D.
Definition anytone_settingsextension.cc:1307
KeyFunction funcKey1Long
Function key 1 (P1 below or next to screen), long press function.
Definition anytone_settingsextension.hh:199
KeyFunction _funcKey2Long
Function of the function key 2, long press.
Definition anytone_settingsextension.hh:426
KeyFunction funcKeyCShort
Function key C (PF3 on top or C on mic), short press function.
Definition anytone_settingsextension.hh:229
KeyFunction _funcKeyALong
Function of the function key A, long press.
Definition anytone_settingsextension.hh:436
KeyFunction _funcKey2Short
Function of the function key 2, short press.
Definition anytone_settingsextension.hh:425
KeyFunction
All possible key functions.
Definition anytone_settingsextension.hh:267
void setLongPressDuration(Interval ms)
Sets the long-press duration in ms.
Definition anytone_settingsextension.cc:1347
void setFuncKey4Short(KeyFunction func)
Sets the key function for a short press on the programmable function key 4.
Definition anytone_settingsextension.cc:1158
KeyFunction _funcKnobLong
Function of the knob, long press.
Definition anytone_settingsextension.hh:444
void setUpDownKeyFunction(UpDownKeyFunction func)
Sets the up/down key function.
Definition anytone_settingsextension.cc:1361
void setFuncKeyDShort(KeyFunction func)
Sets the key function for a short press on the function key D.
Definition anytone_settingsextension.cc:1296
void setFuncKeyAShort(KeyFunction func)
Sets the key function for a short press on the function key A.
Definition anytone_settingsextension.cc:1227
KeyFunction funcKeyBShort
Function key B (PF2 second below PTT or B on mic), short press function.
Definition anytone_settingsextension.hh:225
KeyFunction funcKey5Long
Function key 5 (P5 next to screen, D578UV only), long press function.
Definition anytone_settingsextension.hh:215
KeyFunction funcKeyAShort
Function key A (PF1 below PTT or A on mic), short press function.
Definition anytone_settingsextension.hh:221
KeyFunction _funcKeyDShort
Function of the function key D, short press.
Definition anytone_settingsextension.hh:441
void setFuncKey3Short(KeyFunction func)
Sets the key function for a short press on the programmable function key 3.
Definition anytone_settingsextension.cc:1135
bool knobLockEnabled() const
Returns true if the knob gets locked too.
Definition anytone_settingsextension.cc:1382
Interval _longPressDuration
The long-press duration in ms.
Definition anytone_settingsextension.hh:445
KeyFunction funcKeyDShort
Function key D (D on mic, D578UV only), short press function.
Definition anytone_settingsextension.hh:233
bool autoKeyLockEnabled() const
Returns true, if the automatic key-lock feature is enabled.
Definition anytone_settingsextension.cc:1370
UpDownKeyFunction upDownKeyFunction() const
Returns the up/down key function.
Definition anytone_settingsextension.cc:1356
void setFuncKnobLong(KeyFunction func)
Sets the key function for a long press on the knob.
Definition anytone_settingsextension.cc:1334
void setFuncKey1Short(KeyFunction func)
Sets the key function for a short press on the function key 1.
Definition anytone_settingsextension.cc:1089
KeyFunction _funcKey4Long
Function of the function key 4, long press.
Definition anytone_settingsextension.hh:430
void setFuncKey4Long(KeyFunction func)
Sets the key function for a long press on the programmable function key 4.
Definition anytone_settingsextension.cc:1169
void setFuncKeyALong(KeyFunction func)
Sets the key function for a long press on the function key A.
Definition anytone_settingsextension.cc:1238
bool forcedKeyLock
If true, the key-lock is forced.
Definition anytone_settingsextension.hh:263
KeyFunction funcKey5Short
Function key 5 (P5 next to screen, D578UV only), short press function.
Definition anytone_settingsextension.hh:213
bool _forcedKeyLock
Forced key-lock.
Definition anytone_settingsextension.hh:451
KeyFunction funcKnobShort
Function knob (channel/frequency knob, D578UV only), short press function.
Definition anytone_settingsextension.hh:237
void setFuncKeyBShort(KeyFunction func)
Sets the key function for a short press on the function key B.
Definition anytone_settingsextension.cc:1250
void enableAutoKeyLock(bool enabled)
Enables/disables auto key-lock.
Definition anytone_settingsextension.cc:1374
KeyFunction _funcKey5Short
Function of the function key 5, short press.
Definition anytone_settingsextension.hh:431
void setFuncKey2Long(KeyFunction func)
Sets the key function for a long press on the programmable function key 2.
Definition anytone_settingsextension.cc:1123
KeyFunction _funcKeyCLong
Function of the function key C, long press.
Definition anytone_settingsextension.hh:440
KeyFunction funcKey4Short
Function key 4 (P4 next to screen, D578UV only), short press function.
Definition anytone_settingsextension.hh:209
void setFuncKey3Long(KeyFunction func)
Sets the key function for a long press on the programmable function key 3.
Definition anytone_settingsextension.cc:1146
KeyFunction _funcKey1Short
Function of the function key 1, short press.
Definition anytone_settingsextension.hh:423
KeyFunction funcKey3Short
Function key 3 (P3 next to screen, D578UV only), short press function.
Definition anytone_settingsextension.hh:205
bool keypadLockEnabled() const
Returns true if the key-pad gets locked too.
Definition anytone_settingsextension.cc:1393
KeyFunction _funcKnobShort
Function of the knob, short press.
Definition anytone_settingsextension.hh:443
void setFuncKnobShort(KeyFunction func)
Sets the key function for a short press on the knob.
Definition anytone_settingsextension.cc:1321
ConfigItem * clone() const
Clones this item.
Definition anytone_settingsextension.cc:1075
Interval longPressDuration
The long press duration in ms.
Definition anytone_settingsextension.hh:241
KeyFunction _funcKeyDLong
Function of the function key D, long press.
Definition anytone_settingsextension.hh:442
KeyFunction funcKeyBLong
Function key B (PF2 second below PTT or B on mic), long press function.
Definition anytone_settingsextension.hh:227
bool sideKeysLock
If true, the side-keys get locked too.
Definition anytone_settingsextension.hh:259
void setFuncKey5Long(KeyFunction func)
Sets the key function for a long press on the programmable function key 5.
Definition anytone_settingsextension.cc:1192
UpDownKeyFunction upDownKeys
Up/down key functions (D578UV only).
Definition anytone_settingsextension.hh:244
KeyFunction _funcKeyBLong
Function of the function key B, long press.
Definition anytone_settingsextension.hh:438
KeyFunction funcKeyDLong
Function key D (D on mic, D578UV only), long press function.
Definition anytone_settingsextension.hh:235
bool _autoKeyLock
Auto key-lock property.
Definition anytone_settingsextension.hh:447
KeyFunction _funcKey4Short
Function of the function key 4, short press.
Definition anytone_settingsextension.hh:429
UpDownKeyFunction
Possible up/down key functions.
Definition anytone_settingsextension.hh:280
bool _knobLock
Knob locked too.
Definition anytone_settingsextension.hh:448
KeyFunction _funcKey3Long
Function of the function key 3, long press.
Definition anytone_settingsextension.hh:428
bool forcedKeyLockEnabled() const
Returns true if the key-lock is forced.
Definition anytone_settingsextension.cc:1415
KeyFunction _funcKeyCShort
Function of the function key C, short press.
Definition anytone_settingsextension.hh:439
UpDownKeyFunction _upDownFunction
The up/down key function.
Definition anytone_settingsextension.hh:446
KeyFunction funcKeyALong
Function key A (PF1 below PTT or A on mic), long press function.
Definition anytone_settingsextension.hh:223
void enableForcedKeyLock(bool enable)
Enables/disables the forced key-lock.
Definition anytone_settingsextension.cc:1419
bool knobLock
If true, the knob gets locked too.
Definition anytone_settingsextension.hh:251
KeyFunction funcKey4Long
Function key 4 (P4 next to screen, D578UV only), long press function.
Definition anytone_settingsextension.hh:211
void setFuncKey1Long(KeyFunction func)
Sets the key function for a long press on the function key 1.
Definition anytone_settingsextension.cc:1100
KeyFunction _funcKey6Long
Function of the function key 6, long press.
Definition anytone_settingsextension.hh:434
bool keypadLock
If true, the key-pad gets locked too.
Definition anytone_settingsextension.hh:255
void enableSideKeysLock(bool enable)
Enables/disables the side-keys lock.
Definition anytone_settingsextension.cc:1408
void setFuncKey6Short(KeyFunction func)
Sets the key function for a short press on the programmable function key 6.
Definition anytone_settingsextension.cc:1204
KeyFunction funcKnobLong
Function knob (channel/frequency knob, D578UV only), long press function.
Definition anytone_settingsextension.hh:239
void setFuncKey6Long(KeyFunction func)
Sets the key function for a long press on the programmable function key 6.
Definition anytone_settingsextension.cc:1215
void setFuncKeyCShort(KeyFunction func)
Sets the key function for a short press on the function key C.
Definition anytone_settingsextension.cc:1273
bool _keypadLock
Key-pad is locked.
Definition anytone_settingsextension.hh:449
Implements the menu settings extension of AnyTone devices.
Definition anytone_settingsextension.hh:1029
Implements the power-save settings for AnyTone devices.
Definition anytone_settingsextension.hh:129
PowerSave powerSave() const
Returns the power-save mode.
Definition anytone_settingsextension.cc:1027
void setAutoShutdown(Interval min)
Sets the auto shut-down delay.
Definition anytone_settingsextension.cc:1007
bool resetAutoShutdownOnCall
Resets the auto shut-down timer on every call.
Definition anytone_settingsextension.hh:137
Interval _autoShutDownDelay
The auto shut-down delay in minutes.
Definition anytone_settingsextension.hh:181
ConfigItem * clone() const
Clones this item.
Definition anytone_settingsextension.cc:993
void enableResetAutoShutdownOnCall(bool enable)
Enables/disables reset of auto shut-down timer on every call.
Definition anytone_settingsextension.cc:1019
Interval autoShutdown
The auto shut-down delay in minutes.
Definition anytone_settingsextension.hh:134
bool atpc() const
Returns true if the adaptive transmission power control is enabled.
Definition anytone_settingsextension.cc:1039
PowerSave _powerSave
Power save mode property.
Definition anytone_settingsextension.hh:183
bool _resetAutoShutdownOnCall
Enables reset of auto shut-down timer on every call.
Definition anytone_settingsextension.hh:182
void enableATPC(bool enable)
Enables/disables the adaptive transmission power control.
Definition anytone_settingsextension.cc:1043
bool _atpc
Adaptive Transmission Power Control.
Definition anytone_settingsextension.hh:184
void setPowerSave(PowerSave mode)
Sets the power-save mode.
Definition anytone_settingsextension.cc:1031
Implements the repeater settings for the BTECH DMR-6X2UV and AT-D578UV.
Definition anytone_settingsextension.hh:1990
TimeSlot _timeSlot
The primary channel time-slot.
Definition anytone_settingsextension.hh:2059
TimeSlot _secTimeSlot
The secondary channel time-slot.
Definition anytone_settingsextension.hh:2060
TimeSlot
Possible repeater time-slots.
Definition anytone_settingsextension.hh:2014
bool _monitor
If enabled, the radio will monitor the channel.
Definition anytone_settingsextension.hh:2058
ColorCode
Possible color code settings.
Definition anytone_settingsextension.hh:2020
ColorCode _colorCode
The color code match mode.
Definition anytone_settingsextension.hh:2061
bool _enabled
If true, the simplex repeater is enabled.
Definition anytone_settingsextension.hh:2057
Implements the ranging/roaming settings extension of AnyTone devices.
Definition anytone_settingsextension.hh:1578
Interval _repeaterCheckInterval
The repeater check interval in seconds.
Definition anytone_settingsextension.hh:1712
RoamingZoneReference * _defaultRoamingZone
The default roaming zone.
Definition anytone_settingsextension.hh:1720
RoamStart _roamingReturnCondition
Auto-roaming return condition.
Definition anytone_settingsextension.hh:1716
unsigned int _notificationCount
Number of notifications.
Definition anytone_settingsextension.hh:1718
bool _notification
Repeater check notification.
Definition anytone_settingsextension.hh:1717
RoamStart _roamingStartCondition
Auto-roaming start condition.
Definition anytone_settingsextension.hh:1715
RoamStart
Possible roaming start conditions.
Definition anytone_settingsextension.hh:1633
Interval _autoRoamDelay
The auto-roam delay in seconds.
Definition anytone_settingsextension.hh:1710
Interval _autoRoamPeriod
The auto-roam period in minutes.
Definition anytone_settingsextension.hh:1709
bool _autoRoam
Enables auto roaming.
Definition anytone_settingsextension.hh:1708
bool _gpsRoaming
Enables GPS roaming.
Definition anytone_settingsextension.hh:1719
OutOfRangeAlert _outOfRangeAlert
Type of the out-out-range alert.
Definition anytone_settingsextension.hh:1714
OutOfRangeAlert
Possible repeater out-of-range alerts.
Definition anytone_settingsextension.hh:1639
unsigned int _repeaterRangeCheckCount
Number of range checks before giving up.
Definition anytone_settingsextension.hh:1713
bool _repeaterRangeCheck
Enables the repeater range-check.
Definition anytone_settingsextension.hh:1711
Implements the satellite mode settings for the BTECH DMR-6X2UV PRO.
Definition anytone_settingsextension.hh:2071
Implements the device specific extension for the general settings of AnyTone devices.
Definition anytone_settingsextension.hh:2114
AnytoneToneSettingsExtension * _toneSettings
The tone settings.
Definition anytone_settingsextension.hh:2397
Frequency _maxVFOScanFrequencyVHF
The maximum VHF VFO-scan frequency in Hz.
Definition anytone_settingsextension.hh:2429
VFOMode
Possible VFO modes.
Definition anytone_settingsextension.hh:2232
STEType
All possible STE (squelch tail eliminate) types.
Definition anytone_settingsextension.hh:2244
ZoneReference _zoneB
The current zone for VFO B.
Definition anytone_settingsextension.hh:2423
AnytoneKeySettingsExtension * _keySettings
The key settings.
Definition anytone_settingsextension.hh:2395
ZoneReference * zoneB()
Returns a reference to the current zone for VFO B.
bool _proMode
The "pro mode" flag.
Definition anytone_settingsextension.hh:2436
bool _maintainCallChannel
Maintains the call channel.
Definition anytone_settingsextension.hh:2437
ZoneReference _zoneA
The current zone for VFO A.
Definition anytone_settingsextension.hh:2422
VFOScanType
Encodes the possible VFO scan types.
Definition anytone_settingsextension.hh:2226
AnytonePowerSaveSettingsExtension * _powerSaveSettings
The power-save settings.
Definition anytone_settingsextension.hh:2393
AnytoneBootSettingsExtension * _bootSettings
Returns power setting for satellite mode.
Definition anytone_settingsextension.hh:2391
VFO
Possible VFOs.
Definition anytone_settingsextension.hh:2238
AnytoneAutoRepeaterSettingsExtension * _autoRepeaterSettings
The auto-repeater settings.
Definition anytone_settingsextension.hh:2405
bool _subChannel
If true, the sub-channel is enabled.
Definition anytone_settingsextension.hh:2425
VFOScanType _vfoScanType
The VFO scan-type property.
Definition anytone_settingsextension.hh:2419
AnytoneAudioSettingsExtension * _audioSettings
The audio settings.
Definition anytone_settingsextension.hh:2401
AnytoneMenuSettingsExtension * _menuSettings
The menu settings.
Definition anytone_settingsextension.hh:2403
bool _keepLastCaller
If true, the last caller is kept on channel switch.
Definition anytone_settingsextension.hh:2430
AnytoneGPSSettingsExtension * _gpsSettings
The GSP settings.
Definition anytone_settingsextension.hh:2409
AnytoneRepeaterSettingsExtension * _repeaterSettings
The repeater settings.
Definition anytone_settingsextension.hh:2415
Interval _steDuration
STE duration.
Definition anytone_settingsextension.hh:2434
AnytoneRoamingSettingsExtension * _roamingSettings
The roaming settings.
Definition anytone_settingsextension.hh:2411
AnytoneBluetoothSettingsExtension * _bluetoothSettings
The bluetooth settings.
Definition anytone_settingsextension.hh:2413
Frequency _vfoStep
The VFO tuning step in kHz.
Definition anytone_settingsextension.hh:2431
VFOMode _modeB
Mode of VFO B.
Definition anytone_settingsextension.hh:2421
AnytoneDMRSettingsExtension * _dmrSettings
The DMR settings.
Definition anytone_settingsextension.hh:2407
Frequency _maxVFOScanFrequencyUHF
The maximum UHF VFO-scan frequency in Hz.
Definition anytone_settingsextension.hh:2427
VFO _selectedVFO
The current VFO.
Definition anytone_settingsextension.hh:2424
Frequency _minVFOScanFrequencyUHF
The minimum UHF VFO-scan frequency in Hz.
Definition anytone_settingsextension.hh:2426
Frequency _minVFOScanFrequencyVHF
The minimum VHF VFO-scan frequency in Hz.
Definition anytone_settingsextension.hh:2428
STEType _steType
The STE type.
Definition anytone_settingsextension.hh:2432
AnytoneSatelliteSettingsExtension * _satelliteSettings
The satellite settings.
Definition anytone_settingsextension.hh:2417
AnytoneDisplaySettingsExtension * _displaySettings
The display settings.
Definition anytone_settingsextension.hh:2399
ZoneReference * zoneA()
Returns a reference to the current zone for VFO A.
double _steFrequency
STE frequency in Hz.
Definition anytone_settingsextension.hh:2433
VFOMode _modeA
Mode of VFO A.
Definition anytone_settingsextension.hh:2420
Frequency _tbstFrequency
The TBST frequency in Hz.
Definition anytone_settingsextension.hh:2435
Implements the tone settings extension of AnyTone devices.
Definition anytone_settingsextension.hh:460
bool startupToneEnabled() const
Returns true if the startup tone is enabled.
Definition anytone_settingsextension.cc:1552
bool startup
If true, the startup tone is enabled.
Definition anytone_settingsextension.hh:497
unsigned int keyToneLevel
The key tone level setting.
Definition anytone_settingsextension.hh:470
bool _talkPermitDigital
DMR talk permit tone.
Definition anytone_settingsextension.hh:591
bool _totNotification
TOT notification enabled.
Definition anytone_settingsextension.hh:597
void enableFMIdleChannelTone(bool enable)
Enables/disables the idle FM channel tone.
Definition anytone_settingsextension.cc:1544
bool callAlertEnabled() const
Returns true if call alert is enabled.
Definition anytone_settingsextension.cc:1480
Melody * _callMelody
Call melody.
Definition anytone_settingsextension.hh:599
bool _callAlert
Call alert tone enabled.
Definition anytone_settingsextension.hh:590
bool dmrIdle
If true, the idle tone is enabled for DMR channels.
Definition anytone_settingsextension.hh:493
bool wxAlarm
Enables weather alarm tone.
Definition anytone_settingsextension.hh:501
bool dmrIdleChannelToneEnabled() const
Returns true if the idle channel tone is enabled for DMR channel.
Definition anytone_settingsextension.cc:1528
Melody * idleMelody
The idle melody.
Definition anytone_settingsextension.hh:506
bool _talkPermitAnalog
FM talk permit tone.
Definition anytone_settingsextension.hh:592
void enableDigitalResetTone(bool enable)
Enables/disables the reset tone for digital calls.
Definition anytone_settingsextension.cc:1520
Melody * callEndMelody
The call-end melody.
Definition anytone_settingsextension.hh:510
bool keyTone
The key tone setting.
Definition anytone_settingsextension.hh:466
bool fmIdle
If true, the idle tone is enabled for FM channels.
Definition anytone_settingsextension.hh:495
unsigned int _keyToneLevel
The level of key-tones, 0=user adjustable.
Definition anytone_settingsextension.hh:603
Melody * _callEndMelody
Call end melody.
Definition anytone_settingsextension.hh:602
bool talkPermitDigitalEnabled() const
Returns true if the talk permit tone is enabled for digital channels.
Definition anytone_settingsextension.cc:1492
bool tot
Enables transmit timeout notification (5s before TOT).
Definition anytone_settingsextension.hh:499
bool smsAlert
If true, the SMS alert tone is enabled.
Definition anytone_settingsextension.hh:474
bool smsAlertEnabled() const
Returns true if SMS alert is enabled.
Definition anytone_settingsextension.cc:1468
void enableCallAlert(bool enable)
Enables/disables call alert.
Definition anytone_settingsextension.cc:1484
bool _wxAlarm
Weather alarm.
Definition anytone_settingsextension.hh:598
bool keyToneEnabled() const
Returns true if the key tone is enabled.
Definition anytone_settingsextension.cc:1456
void enableTOTNotification(bool enable)
Enables/disables the transmit timeout notification (5s before TOT).
Definition anytone_settingsextension.cc:1568
bool talkPermitAnalogEnabled() const
Returns true if the talk permit tone is enabled for digital channels.
Definition anytone_settingsextension.cc:1504
void setKeyToneLevel(unsigned int level)
Sets the key-tone level.
Definition anytone_settingsextension.cc:1609
void enableDMRIdleChannelTone(bool enable)
Enables/disables the idle DMR channel tone.
Definition anytone_settingsextension.cc:1532
Melody * callMelody
The call melody.
Definition anytone_settingsextension.hh:504
Melody * _idleMelody
Idle melody.
Definition anytone_settingsextension.hh:600
bool _smsAlert
SMS alert tone enabled.
Definition anytone_settingsextension.hh:589
bool _dmrIdleChannelTone
Idle channel tone (DMR).
Definition anytone_settingsextension.hh:594
bool digitalResetToneEnabled() const
Returns true if the reset tone is enabled for digital calls.
Definition anytone_settingsextension.cc:1516
Melody * resetMelody
The reset melody.
Definition anytone_settingsextension.hh:508
ConfigItem * clone() const
Clones this item.
Definition anytone_settingsextension.cc:1446
void enableTalkPermitDigital(bool enable)
Enables/disables the talk permit tone for digital channels.
Definition anytone_settingsextension.cc:1496
void enableWXAlarm(bool enable)
Enables/disables weather alarm.
Definition anytone_settingsextension.cc:1580
bool dmrTalkPermit
If true, the DMR talk permit tone is enabled.
Definition anytone_settingsextension.hh:482
bool totNotification() const
Returns true if the transmit timeout notification is enabled (5s before TOT).
Definition anytone_settingsextension.cc:1564
bool _startupTone
Startup tone enabled.
Definition anytone_settingsextension.hh:596
void enableTalkPermitAnalog(bool enable)
Enables/disables the talk permit tone for analog channels.
Definition anytone_settingsextension.cc:1508
void enableStartupTone(bool enable)
Enables/disables the startup tone.
Definition anytone_settingsextension.cc:1556
bool fmIdleChannelToneEnabled() const
Returns true if the idle channel tone is enabled for FM channel.
Definition anytone_settingsextension.cc:1540
bool _resetToneDigital
DMR reset tone.
Definition anytone_settingsextension.hh:593
bool fmTalkPermit
If true, the FM talk permit tone is enabled.
Definition anytone_settingsextension.hh:490
void enableKeyTone(bool enable)
Enables/disables the key tone.
Definition anytone_settingsextension.cc:1460
bool _fmIdleChannelTone
Idle channel tone (FM).
Definition anytone_settingsextension.hh:595
bool callAlert
If true, the call alert tone is enabled.
Definition anytone_settingsextension.hh:478
bool _keyTone
Key tone property.
Definition anytone_settingsextension.hh:588
Melody * _resetMelody
Reset melody.
Definition anytone_settingsextension.hh:601
void enableSMSAlert(bool enable)
Enables/disables SMS alert.
Definition anytone_settingsextension.cc:1472
bool dmrReset
If true, the DMR reset tone is enabled.
Definition anytone_settingsextension.hh:486
Represents a reference to a channel.
Definition configreference.hh:123
The base class of all channels (analog and digital) of a codeplug configuration.
Definition channel.hh:34
Base class of all device/vendor specific configuration extensions.
Definition configobject.hh:241
Parse context for config objects.
Definition configobject.hh:43
Base class for all configuration objects (channels, zones, contacts, etc).
Definition configobject.hh:35
bool is() const
Returns true if this object is of class Object.
Definition configobject.hh:142
List class for config objects.
Definition configobject.hh:344
Implements a reference to a config object.
Definition configreference.hh:17
Base class of all labeled and named objects.
Definition configobject.hh:194
Implements an interface to Anytone AT-D578UV VHF/UHF 50W DMR (Tier I & II) radios.
Definition d578uv.hh:19
Implements an interface to Anytone AT-D878UV VHF/UHF 7W DMR (Tier I & II) radios.
Definition d878uv.hh:36
Implements a stack of error messages to provide a pretty formatted error traceback.
Definition errorstack.hh:43
Represents a time interval.
Definition interval.hh:11
A config item that encodes a melody.
Definition melody.hh:20
Base class for all Radio objects.
Definition radio.hh:32
Implements a reference to a roaming zone.
Definition configreference.hh:273
Implements a reference to a zone.
Definition configreference.hh:295
Represents a zone within the generic configuration.
Definition zone.hh:15
Helper type to encode frequencies without any rounding error.
Definition frequency.hh:107