libdrmconf 0.15.1
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
27
29 Q_PROPERTY(bool gpsCheck READ gpsCheckEnabled WRITE enableGPSCheck)
30
31public:
33 explicit AnytoneBootSettingsExtension(QObject *parent=nullptr);
34
35 ConfigItem *clone() const;
36
41
43 bool gpsCheckEnabled() const;
45 void enableGPSCheck(bool enable);
46
47protected:
50 bool _gpsCheck;
51};
52
53
59{
60 Q_OBJECT
61
62 Q_CLASSINFO("autoShutDownDelayDescription", "The auto shut-down delay in minutes.")
65
68
69 Q_CLASSINFO("powerSaveDescription", "Specifies the power save mode. "
70 "D686UV, D878UV(2) and DMR-6X2UV only.")
72 Q_PROPERTY(PowerSave powerSave READ powerSave WRITE setPowerSave)
73
75 Q_PROPERTY(bool atpc READ atpc WRITE enableATPC)
76
77public:
79 enum class PowerSave {
80 Off = 0, Save50 = 1, Save66 = 2
81 };
82 Q_ENUM(PowerSave)
83
84public:
86 explicit AnytonePowerSaveSettingsExtension(QObject *parent=nullptr);
87
88 ConfigItem *clone() const;
89
91 Interval autoShutdown() const;
93 void setAutoShutdown(Interval min);
94
96 bool resetAutoShutdownOnCall() const;
98 void enableResetAutoShutdownOnCall(bool enable);
99
101 PowerSave powerSave() const;
103 void setPowerSave(PowerSave mode);
104
106 bool atpc() const;
108 void enableATPC(bool enable);
109
110protected:
113 PowerSave _powerSave;
114 bool _atpc;
115};
116
117
123{
124 Q_OBJECT
125
176
179
182
183 Q_CLASSINFO("knobLockDescription", "If enabled, the knob gets locked too.")
185 Q_PROPERTY(bool knobLock READ knobLockEnabled WRITE enableKnobLock)
186
187 Q_CLASSINFO("keypadLockDescription", "If enabled, the key-pad gets locked.")
190
191 Q_CLASSINFO("sideKeysLockDescription", "If enabled, the side-keys get locked.")
194
195 Q_CLASSINFO("forcedKeyLockDescription", "If enabled, the key-lock is forced.")
198
199public:
201 enum class KeyFunction {
202 Off, Voltage, Power, Repeater, Reverse, Encryption, Call, VOX, ToggleVFO, SubPTT,
203 Scan, WFM, Alarm, RecordSwitch, Record, SMS, Dial, GPSInformation, Monitor, ToggleMainChannel,
204 HotKey1, HotKey2, HotKey3, HotKey4, HotKey5, HotKey6, WorkAlone, SkipChannel, DMRMonitor,
205 SubChannel, PriorityZone, VFOScan, MICSoundQuality, LastCallReply, ChannelType, Ranging,
206 Roaming, ChannelRanging, MaxVolume, Slot, APRSTypeSwitch, Zone, ZoneUp, ZoneDown, Exit, Menu,
207 RoamingSet, APRSSet, Mute, MuteA, MuteB, CtcssDcsSet, TBSTSend, Bluetooth, GPS, ChannelName,
208 CDTScan, APRSSend, APRSInfo, Speaker, XBandRepeater, SimplexRepeater, GPSRoaming, Squelch,
209 NoiseReductionTX, DIMShut, SatPredict, ChannelSettings, WXAlarm
210 };
211 Q_ENUM(KeyFunction)
212
213
214 enum class UpDownKeyFunction {
215 Channel, Volume
216 };
217 Q_ENUM(UpDownKeyFunction)
218
219public:
221 explicit AnytoneKeySettingsExtension(QObject *parent=nullptr);
222
223 ConfigItem *clone() const;
224
226 KeyFunction funcKey1Short() const;
228 void setFuncKey1Short(KeyFunction func);
230 KeyFunction funcKey1Long() const;
232 void setFuncKey1Long(KeyFunction func);
233
235 KeyFunction funcKey2Short() const;
237 void setFuncKey2Short(KeyFunction func);
239 KeyFunction funcKey2Long() const;
241 void setFuncKey2Long(KeyFunction func);
242
244 KeyFunction funcKey3Short() const;
246 void setFuncKey3Short(KeyFunction func);
248 KeyFunction funcKey3Long() const;
250 void setFuncKey3Long(KeyFunction func);
251
253 KeyFunction funcKey4Short() const;
255 void setFuncKey4Short(KeyFunction func);
257 KeyFunction funcKey4Long() const;
259 void setFuncKey4Long(KeyFunction func);
260
262 KeyFunction funcKey5Short() const;
264 void setFuncKey5Short(KeyFunction func);
266 KeyFunction funcKey5Long() const;
268 void setFuncKey5Long(KeyFunction func);
269
271 KeyFunction funcKey6Short() const;
273 void setFuncKey6Short(KeyFunction func);
275 KeyFunction funcKey6Long() const;
277 void setFuncKey6Long(KeyFunction func);
278
280 KeyFunction funcKeyAShort() const;
282 void setFuncKeyAShort(KeyFunction func);
284 KeyFunction funcKeyALong() const;
286 void setFuncKeyALong(KeyFunction func);
288 KeyFunction funcKeyAVeryLong() const;
290 void setFuncKeyAVeryLong(KeyFunction func);
291
293 KeyFunction funcKeyBShort() const;
295 void setFuncKeyBShort(KeyFunction func);
297 KeyFunction funcKeyBLong() const;
299 void setFuncKeyBLong(KeyFunction func);
301 KeyFunction funcKeyBVeryLong() const;
303 void setFuncKeyBVeryLong(KeyFunction func);
304
306 KeyFunction funcKeyCShort() const;
308 void setFuncKeyCShort(KeyFunction func);
310 KeyFunction funcKeyCLong() const;
312 void setFuncKeyCLong(KeyFunction func);
313
315 KeyFunction funcKeyDShort() const;
317 void setFuncKeyDShort(KeyFunction func);
319 KeyFunction funcKeyDLong() const;
321 void setFuncKeyDLong(KeyFunction func);
322
324 KeyFunction funcKnobShort() const;
326 void setFuncKnobShort(KeyFunction func);
328 KeyFunction funcKnobLong() const;
330 void setFuncKnobLong(KeyFunction func);
331
333 Interval longPressDuration() const;
335 void setLongPressDuration(Interval ms);
336
338 UpDownKeyFunction upDownKeyFunction() const;
340 void setUpDownKeyFunction(UpDownKeyFunction func);
341
343 bool autoKeyLockEnabled() const;
345 void enableAutoKeyLock(bool enabled);
346
348 bool knobLockEnabled() const;
350 void enableKnobLock(bool enable);
352 bool keypadLockEnabled() const;
354 void enableKeypadLock(bool enable);
356 bool sideKeysLockEnabled() const;
358 void enableSideKeysLock(bool enable);
360 bool forcedKeyLockEnabled() const;
362 void enableForcedKeyLock(bool enable);
363
364protected:
396};
397
398
404{
405 Q_OBJECT
406 Q_CLASSINFO("description", "Tone settings for AnyTone devices.")
407
408
409 Q_PROPERTY(bool tot READ totNotification WRITE enableTOTNotification)
411 Q_PROPERTY(bool wxAlarm READ wxAlarm WRITE enableWXAlarm)
412
413
414public:
416 explicit AnytoneToneSettingsExtension(QObject *parent=nullptr);
417
418 ConfigItem *clone() const;
419
421 bool totNotification() const;
423 void enableTOTNotification(bool enable);
424
426 bool wxAlarm() const;
428 void enableWXAlarm(bool enable);
429
430protected:
432 bool _wxAlarm;
433};
434
435
441{
442 Q_OBJECT
443
447 Q_PROPERTY(unsigned int brightness READ brightness WRITE setBrightness)
448
449 Q_CLASSINFO("backlightDuration", "The duration in seconds, the backlight keeps lit after any action. ")
452
453 Q_CLASSINFO("backlightDurationTX", "The duration in seconds, the backlight is lit during TX. "
454 "A value of 0 means off.")
457
458 Q_CLASSINFO("backlightDurationRX", "The duration in seconds, the backlight is lit during RX.")
461
464
466 Q_PROPERTY(bool volumeChangePrompt READ volumeChangePromptEnabled WRITE enableVolumeChangePrompt)
468 Q_PROPERTY(bool callEndPrompt READ callEndPromptEnabled WRITE enableCallEndPrompt)
469
471 Q_PROPERTY(bool showClock READ showClockEnabled WRITE enableShowClock)
473 Q_PROPERTY(bool showCall READ showCallEnabled WRITE enableShowCall)
475 Q_PROPERTY(bool showContact READ showContact WRITE enableShowContact)
477 Q_PROPERTY(bool showChannelNumber READ showChannelNumberEnabled WRITE enableShowChannelNumber)
479 Q_PROPERTY(bool showGLobalChannelNumber READ showGlobalChannelNumber WRITE enableShowGlobalChannelNumber)
481 Q_PROPERTY(bool showColorCode READ showColorCode WRITE enableShowColorCode)
483 Q_PROPERTY(bool showTimeSlot READ showTimeSlot WRITE enableShowTimeSlot)
485 Q_PROPERTY(bool showChannelType READ showChannelType WRITE enableShowChannelType)
487 Q_PROPERTY(bool showLastHeard READ showLastHeardEnabled WRITE enableShowLastHeard)
489 Q_PROPERTY(LastCallerDisplayMode lastCallerDisplay READ lastCallerDisplay WRITE setLastCallerDisplay)
490
492 Q_PROPERTY(Color callColor READ callColor WRITE setCallColor)
494 Q_PROPERTY(Color standbyTextColor READ standbyTextColor WRITE setStandbyTextColor)
497
498 Q_CLASSINFO("channelNameColorDescription", "Specifies the color of the channel name.")
500 Q_PROPERTY(Color channelNameColor READ channelNameColor WRITE setChannelNameColor)
501 Q_CLASSINFO("channelBNameColorDescription", "Specifies the color of the channel name for VFO B.")
503 Q_PROPERTY(Color channelBNameColor READ channelBNameColor WRITE setChannelBNameColor)
504
505 Q_CLASSINFO("zoneNameColorDescription", "Specifies the color of the zone name.")
507 Q_PROPERTY(Color zoneNameColor READ zoneNameColor WRITE setZoneNameColor)
508 Q_CLASSINFO("zoneBNameColorDescription", "Specifies the color of the zone name for VFO B.")
510 Q_PROPERTY(Color zoneBNameColor READ zoneBNameColor WRITE setZoneBNameColor)
511
513 Q_PROPERTY(Language language READ language WRITE setLanguage)
515 Q_PROPERTY(DateFormat dateFormat READ dateFormat WRITE setDateFormat)
516
517public:
519 enum class LastCallerDisplayMode {
520 Off = 0, ID = 1, Call = 2, Both = 3
521 };
522 Q_ENUM(LastCallerDisplayMode)
523
524
525 enum class Color {
526 White = 0, Black = 1, Orange=2, Red=3, Yellow=4, Green=5, Turquoise=6, Blue=7
527 };
528 Q_ENUM(Color)
529
530
531 enum class Language {
532 English = 0,
533 German = 1
534 };
535 Q_ENUM(Language)
536
537
538 enum class DateFormat {
539 YearFirst = 0,
540 DayFirst = 1
541 };
542 Q_ENUM(DateFormat)
543
544public:
546 explicit AnytoneDisplaySettingsExtension(QObject *parent=nullptr);
547
548 ConfigItem *clone() const;
549
551 bool displayFrequencyEnabled() const;
553 void enableDisplayFrequency(bool enable);
554
556 unsigned int brightness() const;
558 void setBrightness(unsigned int level);
559
561 bool volumeChangePromptEnabled() const;
563 void enableVolumeChangePrompt(bool enable);
564
566 bool callEndPromptEnabled() const;
568 void enableCallEndPrompt(bool enable);
569
571 LastCallerDisplayMode lastCallerDisplay() const;
573 void setLastCallerDisplay(LastCallerDisplayMode mode);
574
576 bool showClockEnabled() const;
578 void enableShowClock(bool enable);
579
581 bool showCallEnabled() const;
583 void enableShowCall(bool enable);
584
586 Color callColor() const;
588 void setCallColor(Color color);
589
591 Language language() const;
593 void setLanguage(Language lang);
595 DateFormat dateFormat() const;
597 void setDateFormat(DateFormat format);
598
600 bool showChannelNumberEnabled() const;
602 void enableShowChannelNumber(bool enable);
605 bool showGlobalChannelNumber() const;
607 void enableShowGlobalChannelNumber(bool enable);
609 bool showColorCode() const;
611 void enableShowColorCode(bool enable);
613 bool showTimeSlot() const;
615 void enableShowTimeSlot(bool enable);
617 bool showChannelType() const;
619 void enableShowChannelType(bool enable);
620
622 bool showContact() const;
624 void enableShowContact(bool enable);
625
627 Color standbyTextColor() const;
629 void setStandbyTextColor(Color color);
631 Color standbyBackgroundColor() const;
633 void setStandbyBackgroundColor(Color color);
634
636 bool showLastHeardEnabled() const;
638 void enableShowLastHeard(bool enable);
639
641 Interval backlightDuration() const;
643 void setBacklightDuration(Interval sec);
644
646 Interval backlightDurationTX() const;
648 void setBacklightDurationTX(Interval sec);
649
651 Color channelNameColor() const;
653 void setChannelNameColor(Color color);
655 Color channelBNameColor() const;
657 void setChannelBNameColor(Color color);
658
660 Color zoneNameColor() const;
662 void setZoneNameColor(Color color);
664 Color zoneBNameColor() const;
666 void setZoneBNameColor(Color color);
667
669 Interval backlightDurationRX() const;
671 void setBacklightDurationRX(Interval sec);
673 bool customChannelBackground() const;
675 void enableCustomChannelBackground(bool enable);
676
677protected:
679 unsigned int _brightness;
682 LastCallerDisplayMode _lastCallerDisplay;
686 Language _language;
687 DateFormat _dateFormat;
705};
706
707
713{
714 Q_OBJECT
715
718
719
720 Q_PROPERTY(bool recording READ recordingEnabled WRITE enableRecording)
721
724
727
729 Q_PROPERTY(Speaker speaker READ speaker WRITE setSpeaker)
734
735public:
737 enum class VoxSource {
738 Internal = 0, External = 1, Both = 2
739 };
740 Q_ENUM(VoxSource)
741
742
743 enum class Speaker {
744 Handset, Radio, Both
745 };
746 Q_ENUM(Speaker);
747
750 MainChannel, SubChannel
751 };
752 Q_ENUM(HandsetSpeakerSource)
753
754
755 enum class HandsetType {
756 Anytone, Generic
757 };
758 Q_ENUM(HandsetType)
759
760public:
762 explicit AnytoneAudioSettingsExtension(QObject *parent=nullptr);
763
764 ConfigItem *clone() const;
765
767 VoxSource voxSource() const;
769 void setVOXSource(VoxSource source);
770
772 bool recordingEnabled() const;
774 void enableRecording(bool enable);
775
777 bool enhanceAudioEnabled() const;
779 void enableEnhanceAudio(bool enable);
780
782 Interval muteDelay() const;
784 void setMuteDelay(Interval intv);
785
787 Speaker speaker() const;
789 void setSpeaker(Speaker speaker);
790
792 HandsetSpeakerSource handsetSpeaker() const;
794 void setHandsetSpeaker(HandsetSpeakerSource src);
795
796 /* Returns the handset type. */
797 HandsetType handsetType() const;
799 void setHandsetType(HandsetType type);
800
801protected:
810};
811
812
818{
819 Q_OBJECT
820
821 Q_CLASSINFO("durationDescription", "The time in seconds, the menu is shown.")
823 Q_PROPERTY(Interval duration READ duration WRITE setDuration)
824
825 Q_CLASSINFO("separatorDescription", "If enabled, the menu items are separated by a line.")
827 Q_PROPERTY(bool separator READ separatorEnabled WRITE enableSeparator)
828
829public:
831 explicit AnytoneMenuSettingsExtension(QObject *parent=nullptr);
832
833 ConfigItem *clone() const;
834
836 Interval duration() const;
838 void setDuration(Interval sec);
840 bool separatorEnabled() const;
842 void enableSeparator(bool enable);
843
844protected:
847};
848
849
854{
855 Q_OBJECT
856 Q_CLASSINFO("IdPrefix", "off")
857
858 Q_CLASSINFO("offsetDecription",
859 "Transmit-frequency offset in Hz.")
860 Q_CLASSINFO("offsetLongDecription",
861 "The transmit-frequency offset is specified as a positive integer in Hz. The offset "
862 "direction is specified for each VFO separately.")
864 Q_PROPERTY(Frequency offset READ offset WRITE setOffset)
865
866public:
868 explicit Q_INVOKABLE AnytoneAutoRepeaterOffset(QObject *parent=nullptr);
869
870 ConfigItem *clone() const;
871
873 Frequency offset() const;
876
877protected:
880};
881
882
886{
887 Q_OBJECT
888
889public:
891 explicit AnytoneAutoRepeaterOffsetRef(QObject *parent=nullptr);
892};
893
894
898{
899 Q_OBJECT
900
901public:
903 explicit AnytoneAutoRepeaterOffsetList(QObject *parent=nullptr);
904
905 ConfigItem *allocateChild(const YAML::Node &node, ConfigItem::Context &ctx, const ErrorStack &err);
906};
907
908
914{
915 Q_OBJECT
916 Q_CLASSINFO("description", "Auto-repeater settings for AnyTone devices.")
917
918 Q_CLASSINFO("directionADescription", "Auto-repeater transmit-frequency offset direction for VFO A.")
921
922 Q_CLASSINFO("directionBDescription", "Auto-repeater transmit-frequency offset direction for VFO B.")
925
926 Q_CLASSINFO("vhfMin", "The minimum frequency in Hz of the VHF auto-repeater frequency range.")
928 Q_PROPERTY(Frequency vhfMin READ vhfMin WRITE setVHFMin)
929
930 Q_CLASSINFO("vhfMax", "The maximum frequency in Hz of the VHF auto-repeater frequency range.")
932 Q_PROPERTY(Frequency vhfMax READ vhfMax WRITE setVHFMax)
933
934 Q_CLASSINFO("uhfMin", "The minimum frequency in Hz of the UHF auto-repeater frequency range.")
936 Q_PROPERTY(Frequency uhfMin READ uhfMin WRITE setUHFMin)
937
938 Q_CLASSINFO("uhfMax", "The maximum frequency in Hz of the UHF auto-repeater frequency range.")
940 Q_PROPERTY(Frequency uhfMax READ uhfMax WRITE setUHFMax)
941
942 Q_CLASSINFO("vhfDescription", "A reference to an offset frequency for the VHF band.")
945
946 Q_CLASSINFO("uhfDescription", "A reference to an offset frequency for the UHF band.")
949
950 Q_CLASSINFO("vhf2Min", "The minimum frequency in Hz of the second VHF auto-repeater frequency range.")
952 Q_PROPERTY(Frequency vhf2Min READ vhf2Min WRITE setVHF2Min)
953
954 Q_CLASSINFO("vhf2Max", "The maximum frequency in Hz of the second VHF auto-repeater frequency range.")
956 Q_PROPERTY(Frequency vhf2Max READ vhf2Max WRITE setVHF2Max)
957
958 Q_CLASSINFO("uhf2Min", "The minimum frequency in Hz of the second UHF auto-repeater frequency range.")
960 Q_PROPERTY(Frequency uhf2Min READ uhf2Min WRITE setUHF2Min)
961
962 Q_CLASSINFO("uhf2Max", "The maximum frequency in Hz of the second UHF auto-repeater frequency range.")
964 Q_PROPERTY(Frequency uhf2Max READ uhf2Max WRITE setUHF2Max)
965
966 Q_CLASSINFO("vhf2Description", "A reference to an offset frequency for the second VHF band.")
969
970 Q_CLASSINFO("uhf2Description", "A reference to an offset frequency for the second UHF band.")
973
974 Q_CLASSINFO("offsetDescription", "The lists of offset frequencies.")
977
978public:
980 enum class Direction {
981 Off = 0,
982 Positive = 1,
983 Negative = 2
984 };
985 Q_ENUM(Direction)
986
987public:
989 explicit AnytoneAutoRepeaterSettingsExtension(QObject *parent=nullptr);
990
991 ConfigItem *clone() const;
992
994 Direction directionA() const;
996 void setDirectionA(Direction dir);
998 Direction directionB() const;
1000 void setDirectionB(Direction dir);
1001
1003 Frequency vhfMin() const;
1005 void setVHFMin(Frequency Hz);
1007 Frequency vhfMax() const;
1009 void setVHFMax(Frequency Hz);
1011 Frequency uhfMin() const;
1013 void setUHFMin(Frequency Hz);
1015 Frequency uhfMax() const;
1017 void setUHFMax(Frequency Hz);
1018
1020 AnytoneAutoRepeaterOffsetRef *uhfRef() const;
1022 AnytoneAutoRepeaterOffsetRef *vhfRef() const;
1023
1025 Frequency vhf2Min() const;
1027 void setVHF2Min(Frequency Hz);
1029 Frequency vhf2Max() const;
1031 void setVHF2Max(Frequency Hz);
1033 Frequency uhf2Min() const;
1035 void setUHF2Min(Frequency Hz);
1037 Frequency uhf2Max() const;
1039 void setUHF2Max(Frequency Hz);
1040
1042 AnytoneAutoRepeaterOffsetRef *uhf2Ref() const;
1044 AnytoneAutoRepeaterOffsetRef *vhf2Ref() const;
1045
1047 AnytoneAutoRepeaterOffsetList *offsets() const;
1048
1049protected:
1080};
1081
1082
1088{
1089 Q_OBJECT
1090
1095
1096 Q_CLASSINFO("wakeHeadPeriod", "Sets the wake head-period in ms. Should be set to 100ms.")
1099
1100 Q_CLASSINFO("filterOwnIDDescription", "If enabled, own ID is not shown in call lists.")
1103
1104 Q_CLASSINFO("monitorSlotMatchDescription", "Time-slot match-mode for DMR monitor.")
1107
1108 Q_CLASSINFO("monitorColorCodeMatchDescription", "If enabled, the DMR monitor will only open for "
1109 "matching color-codes.")
1111 Q_PROPERTY(bool monitorColorCodeMatch READ monitorColorCodeMatchEnabled WRITE enableMonitorColorCodeMatch)
1112
1113 Q_CLASSINFO("monitorIDMatchDescription", "If enabled, the DMR monitor will only open for matching IDs.")
1115 Q_PROPERTY(bool monitorIDMatch READ monitorIDMatchEnabled WRITE enableMonitorIDMatch)
1116
1117 Q_CLASSINFO("monitorTimeSlotHold", "Whether the DMR monitor holds the time-slot.")
1119 Q_PROPERTY(bool monitorTimeSlotHold READ monitorTimeSlotHoldEnabled WRITE enableMonitorTimeSlotHold)
1120
1122 Q_PROPERTY(TalkerAliasSource talkerAliasSource READ talkerAliasSource WRITE setTalkerAliasSource)
1123
1125 Q_PROPERTY(EncryptionType encryption READ encryption WRITE setEncryption)
1126
1127
1128public:
1130 enum class SlotMatch {
1131 Off = 0, Single = 1, Both = 2
1132 };
1133 Q_ENUM(SlotMatch)
1134
1135
1136 enum class TalkerAliasSource {
1137 Off = 0, UserDB = 1, Air = 2
1138 };
1139 Q_ENUM(TalkerAliasSource)
1140
1141
1142 enum class EncryptionType {
1143 AES=0, DMR=1
1144 };
1145 Q_ENUM(EncryptionType)
1146
1147public:
1149 explicit AnytoneDMRSettingsExtension(QObject *parent = nullptr);
1150
1151 ConfigItem *clone() const;
1152
1154 Interval manualGroupCallHangTime() const;
1156 void setManualGroupCallHangTime(Interval sec);
1158 Interval manualPrivateCallHangTime() const;
1160 void setManualPrivateCallHangTime(Interval sec);
1161
1163 Interval wakeHeadPeriod() const;
1165 void setWakeHeadPeriod(Interval ms);
1166
1168 bool filterOwnIDEnabled() const;
1170 void enableFilterOwnID(bool enable);
1171
1173 SlotMatch monitorSlotMatch() const;
1175 void setMonitorSlotMatch(SlotMatch match);
1177 bool monitorColorCodeMatchEnabled() const;
1179 void enableMonitorColorCodeMatch(bool enable);
1181 bool monitorIDMatchEnabled() const;
1183 void enableMonitorIDMatch(bool enable);
1185 bool monitorTimeSlotHoldEnabled() const;
1187 void enableMonitorTimeSlotHold(bool enable);
1188
1190 TalkerAliasSource talkerAliasSource() const;
1192 void setTalkerAliasSource(TalkerAliasSource mode);
1193
1195 EncryptionType encryption() const;
1197 void setEncryption(EncryptionType type);
1198
1199protected:
1208 TalkerAliasSource _talkerAliasSource;
1209 EncryptionType _encryption;
1210};
1211
1212
1218{
1219 Q_OBJECT
1220
1221 Q_CLASSINFO("timeZoneDescription", "Specifies the GPS time-zone (IANA name).")
1223 Q_PROPERTY(QString timeZone READ ianaTimeZone WRITE setIANATimeZone)
1224
1225 Q_CLASSINFO("positionReportingDescription", "Enables GPS range reporting.")
1228
1229 Q_CLASSINFO("updatePeriodDescription", "Specifies the GPS reporting interval in seconds.")
1232
1233public:
1235 explicit AnytoneGPSSettingsExtension(QObject *parent=nullptr);
1236
1237 ConfigItem *clone() const;
1238
1240 QString ianaTimeZone() const;
1242 QTimeZone timeZone() const;
1244 void setIANATimeZone(const QString &id);
1246 void setTimeZone(const QTimeZone &zone);
1247
1249 bool positionReportingEnabled() const;
1251 void enablePositionReporting(bool enable);
1252
1254 Interval updatePeriod() const;
1256 void setUpdatePeriod(Interval sec);
1257
1258protected:
1259 QTimeZone _timeZone;
1262};
1263
1264
1270{
1271 Q_OBJECT
1272
1273 Q_CLASSINFO("Description", "Collects all ranging/roaming settings for AnyTone devices.")
1274
1275
1276 Q_PROPERTY(bool autoRoam READ autoRoam WRITE enableAutoRoam)
1277
1278 Q_CLASSINFO("autoRoamPeriodDescription", "Specifies the auto-roaming period in minutes.")
1281
1282 Q_CLASSINFO("autoRoamDelayDescription", "A delay in seconds before starting the auto-roaming.")
1285
1286 Q_CLASSINFO("roamStart", "Start condition for auto-roaming.")
1289
1290 Q_CLASSINFO("roamReturn", "Condition to return to the original repeater.")
1293
1294 Q_CLASSINFO("rangeCheckDescription", "Repeater range check.")
1297
1298 Q_CLASSINFO("checkIntervalDescription", "Repeater range check interval in seconds.")
1301
1302 Q_CLASSINFO("retryCount", "Number of retries to connect to a repeater before giving up.")
1305
1308
1309 Q_CLASSINFO("notificationDescription", "Enables the repeater-check notification.")
1312
1313 Q_CLASSINFO("notificationCountDescription", "The number of repeater-check notifications.")
1316
1319
1321 Q_PROPERTY(bool gpsRoaming READ gpsRoaming WRITE enableGPSRoaming)
1322
1323public:
1325 enum class RoamStart {
1326 Periodic=0, OutOfRange=1
1327 };
1328 Q_ENUM(RoamStart)
1329
1330
1331 enum class OutOfRangeAlert {
1332 None = 0x00, Bell = 0x01, Voice = 0x02
1333 };
1334 Q_ENUM(OutOfRangeAlert)
1335
1336public:
1338 explicit AnytoneRoamingSettingsExtension(QObject *parent=nullptr);
1339
1340 ConfigItem *clone() const;
1341
1343 bool autoRoam() const;
1345 void enableAutoRoam(bool enable);
1346
1348 Interval autoRoamPeriod() const;
1350 void setAutoRoamPeriod(Interval min);
1352 Interval autoRoamDelay() const;
1354 void setAutoRoamDelay(Interval sec);
1355
1357 bool repeaterRangeCheckEnabled() const;
1359 void enableRepeaterRangeCheck(bool enable);
1361 Interval repeaterCheckInterval() const;
1363 void setRepeaterCheckInterval(Interval sec);
1365 unsigned int repeaterRangeCheckCount() const;
1367 void setRepeaterRangeCheckCount(unsigned int count);
1369 OutOfRangeAlert outOfRangeAlert() const;
1371 void setOutOfRangeAlert(OutOfRangeAlert type);
1372
1374 RoamStart roamingStartCondition() const;
1376 void setRoamingStartCondition(RoamStart start);
1378 RoamStart roamingReturnCondition() const;
1380 void setRoamingReturnCondition(RoamStart start);
1381
1383 bool notificationEnabled() const;
1385 void enableNotification(bool enable);
1387 unsigned int notificationCount() const;
1389 void setNotificationCount(unsigned int n);
1390
1392 bool gpsRoaming() const;
1394 void enableGPSRoaming(bool enable);
1395
1397 RoamingZoneReference *defaultZone() const;
1398
1399protected:
1410 unsigned int _notificationCount;
1413};
1414
1415
1416
1422{
1423 Q_OBJECT
1424
1425 Q_CLASSINFO("Description", "Collects all bluetooth handset settings for AnyTone devices.")
1426
1427 Q_CLASSINFO("shutdownDescription", "Shuts the handset off too, when the radio is turned off.")
1428 Q_PROPERTY(bool shutdown READ shutdownEnabled WRITE enableShutdown)
1429
1430 Q_CLASSINFO("volumeLevelADescription", "Sets the volume level for VFO A.")
1431 Q_PROPERTY(unsigned int volumeLevelA READ volumeLevelA WRITE setVolumeLevelA)
1432 Q_CLASSINFO("volumeLevelBDescription", "Sets the volume level for VFO B.")
1433 Q_PROPERTY(unsigned int volumeLevelB READ volumeLevelB WRITE setVolumeLevelB)
1434
1435 Q_CLASSINFO("micGainDescription", "Specifies the microphone gain.")
1436 Q_PROPERTY(unsigned int micGain READ micGain WRITE setMicGain)
1437
1438 Q_PROPERTY(unsigned int squelch READ squelch WRITE setSquelch)
1439
1440 Q_PROPERTY(unsigned int txNoiseReduction READ txNoiseReduction WRITE setTxNoiseReduction)
1441
1442 Q_PROPERTY(unsigned int voxLevel READ voxLevel WRITE setVoxLevel)
1443 Q_PROPERTY(Interval voxDelay READ voxDelay WRITE setVoxDelay)
1444
1445 Q_PROPERTY(AnytoneKeySettingsExtension::KeyFunction funcKeyAShort READ funcKeyAShort WRITE setFuncKeyAShort)
1446 Q_PROPERTY(AnytoneKeySettingsExtension::KeyFunction funcKeyBShort READ funcKeyBShort WRITE setFuncKeyBShort)
1447 Q_PROPERTY(AnytoneKeySettingsExtension::KeyFunction funcKeyCShort READ funcKeyCShort WRITE setFuncKeyCShort)
1448 Q_PROPERTY(AnytoneKeySettingsExtension::KeyFunction funcKeyALong READ funcKeyALong WRITE setFuncKeyALong)
1449 Q_PROPERTY(AnytoneKeySettingsExtension::KeyFunction funcKeyBLong READ funcKeyBLong WRITE setFuncKeyBLong)
1450 Q_PROPERTY(AnytoneKeySettingsExtension::KeyFunction funcKeyCLong READ funcKeyCLong WRITE setFuncKeyCLong)
1451 Q_PROPERTY(AnytoneKeySettingsExtension::KeyFunction funcKeyAVeryLong READ funcKeyAVeryLong WRITE setFuncKeyAVeryLong)
1452 Q_PROPERTY(AnytoneKeySettingsExtension::KeyFunction funcKeyBVeryLong READ funcKeyBVeryLong WRITE setFuncKeyBVeryLong)
1453 Q_PROPERTY(AnytoneKeySettingsExtension::KeyFunction funcKeyCVeryLong READ funcKeyCVeryLong WRITE setFuncKeyCVeryLong)
1454
1455 Q_PROPERTY(Interval backlight READ backlight WRITE setBacklight)
1456
1457public:
1459 explicit AnytoneBluetoothHandsetSettingsExtension(QObject *parent=nullptr);
1460
1461 ConfigItem *clone() const override;
1462
1464 bool shutdownEnabled() const;
1466 void enableShutdown(bool enable);
1467
1469 unsigned int volumeLevelA() const;
1471 void setVolumeLevelA(unsigned int level);
1473 unsigned int volumeLevelB() const;
1475 void setVolumeLevelB(unsigned int level);
1476
1478 unsigned int micGain() const;
1480 void setMicGain(unsigned int gain);
1481
1483 unsigned int squelch() const;
1485 void setSquelch(unsigned int level);
1486
1488 unsigned int txNoiseReduction() const;
1490 void setTxNoiseReduction(unsigned int level);
1491
1493 unsigned int voxLevel() const;
1495 void setVoxLevel(unsigned int level);
1496
1498 Interval voxDelay() const;
1500 void setVoxDelay(Interval delay);
1501
1503 AnytoneKeySettingsExtension::KeyFunction funcKeyAShort() const;
1507 AnytoneKeySettingsExtension::KeyFunction funcKeyBShort() const;
1511 AnytoneKeySettingsExtension::KeyFunction funcKeyCShort() const;
1515 AnytoneKeySettingsExtension::KeyFunction funcKeyALong() const;
1519 AnytoneKeySettingsExtension::KeyFunction funcKeyBLong() const;
1523 AnytoneKeySettingsExtension::KeyFunction funcKeyCLong() const;
1527 AnytoneKeySettingsExtension::KeyFunction funcKeyAVeryLong() const;
1531 AnytoneKeySettingsExtension::KeyFunction funcKeyBVeryLong() const;
1535 AnytoneKeySettingsExtension::KeyFunction funcKeyCVeryLong() const;
1538
1540 Interval backlight() const;
1542 void setBacklight(Interval dur);
1543
1544protected:
1546 unsigned int _volumeLevelA;
1547 unsigned int _volumeLevelB;
1548 unsigned int _micGain;
1549 unsigned int _squelch;
1550 unsigned int _txNoiseReduction;
1551 unsigned int _voxLevel;
1572};
1573
1574
1575
1581{
1582 Q_OBJECT
1583
1584 Q_CLASSINFO("Description", "Collects all bluetooth settings for AnyTone devices.")
1585
1586
1587 Q_PROPERTY(bool enabled READ bluetoothEnabled WRITE enableBluetooth)
1589 Q_PROPERTY(bool pttLatch READ pttLatch WRITE enablePTTLatch)
1597 Q_PROPERTY(unsigned int micGain READ micGain WRITE setMicGain);
1599 Q_PROPERTY(unsigned int speakerGain READ speakerGain WRITE setSpeakerGain);
1606
1607public:
1609 explicit AnytoneBluetoothSettingsExtension(QObject *parent=nullptr);
1610
1611 ConfigItem *clone() const;
1612
1615
1617 bool bluetoothEnabled() const;
1619 void enableBluetooth(bool enable);
1620
1622 bool pttLatch() const;
1624 void enablePTTLatch(bool enable);
1625
1627 Interval pttSleepTimer() const;
1629 void setPTTSleepTimer(Interval intv);
1630
1632 bool internalMicEnabled() const;
1634 void enableInternalMic(bool enable);
1635
1637 bool internalSpeakerEnabled() const;
1639 void enableInternalSpeaker(bool enable);
1640
1642 unsigned int micGain() const;
1644 void setMicGain(unsigned int gain);
1645
1647 unsigned int speakerGain() const;
1649 void setSpeakerGain(unsigned int gain);
1650
1652 const Interval &holdDuration() const;
1654 void setHoldDuration(const Interval &dur);
1655
1657 const Interval &holdDelay() const;
1659 void setHoldDelay(const Interval &dur);
1660
1661protected:
1669 unsigned int _micGain;
1670 unsigned int _speakerGain;
1673};
1674
1675
1676
1682{
1683 Q_OBJECT
1684
1685 Q_CLASSINFO("enabledDescription", "If true, the repeater feature is enabled.")
1687 Q_PROPERTY(bool enabled READ enabled WRITE enable)
1688
1689 Q_CLASSINFO("monitorDescription", "If true, the repeater-monitoring is enabled.")
1691 Q_PROPERTY(bool monitor READ monitorEnabled WRITE enableMonitor)
1692
1693 Q_CLASSINFO("timeSlotDescription", "Specifies the time-slot of the primary repeater channel.")
1695 Q_PROPERTY(TimeSlot timeSlot READ timeSlot WRITE setTimeSlot)
1696
1697 Q_CLASSINFO("secTimeSlotDescription", "Specifies the time-slot of the secondary repeater channel.")
1700
1701 Q_CLASSINFO("colorCodeDescription", "Specifies the repeater color code.")
1702 Q_PROPERTY(ColorCode colorCode READ colorCode WRITE setColorCode)
1703
1704public:
1706 enum class TimeSlot {
1707 Any, TS1, TS2, Channel
1708 };
1709 Q_ENUM(TimeSlot)
1710
1711
1712 enum class ColorCode {
1713 Ignored, VFOA, VFOB
1714 };
1715 Q_ENUM(ColorCode)
1716
1717public:
1719 explicit AnytoneRepeaterSettingsExtension(QObject *parent=nullptr);
1720
1721 ConfigItem *clone() const;
1722
1724 bool enabled() const;
1726 void enable(bool enable);
1727
1729 bool monitorEnabled() const;
1731 void enableMonitor(bool enable);
1732
1734 TimeSlot timeSlot() const;
1736 void setTimeSlot(TimeSlot ts);
1737
1739 TimeSlot secTimeSlot() const;
1741 void setSecTimeSlot(TimeSlot ts);
1742
1744 ColorCode colorCode() const;
1746 void setColorCode(ColorCode code);
1747
1748protected:
1754};
1755
1756
1757
1763{
1764 Q_OBJECT
1765
1766 Q_CLASSINFO("powerDescription", "Specifies the transmit power in satellite mode.")
1768 Q_PROPERTY(Channel::Power power READ power WRITE setPower)
1769
1770 Q_CLASSINFO("squelchDescription", "Specifies FM squelch level in satellite mode.")
1772 Q_PROPERTY(unsigned int squelch READ squelch WRITE setSquelch)
1773
1774public:
1776 explicit AnytoneSatelliteSettingsExtension(QObject *parent=nullptr);
1777
1778 ConfigItem *clone() const;
1779
1781 Channel::Power power() const;
1783 void setPower(Channel::Power power);
1784
1786 unsigned int squelch() const;
1788 void setSquelch(unsigned int squelch);
1789
1790protected:
1794 unsigned int _squelch;
1795};
1796
1797
1798
1806{
1807 Q_OBJECT
1808
1809 Q_CLASSINFO("description", "Device specific settings for AnyTone devices.")
1810
1811 Q_CLASSINFO("subChannelDescription", "Enables/disables the sub-channel.")
1814
1815 Q_CLASSINFO("selectedVFODecription", "Specifies the currently selected VFO (A or B).")
1818
1819 Q_CLASSINFO("modeADescription", "Specifies the mode (memory or VFO) for VFO A.")
1820 Q_CLASSINFO("modeBDescription", "Specifies the mode (memory or VFO) for VFO B.")
1822 Q_PROPERTY(VFOMode modeA READ modeA WRITE setModeA)
1824 Q_PROPERTY(VFOMode modeB READ modeB WRITE setModeB)
1825
1826 Q_CLASSINFO("zoneADescription", "Specifies the current zone for VFO A.")
1827 Q_CLASSINFO("zoneBDescription", "Specifies the current zone for VFO B.")
1829 Q_PROPERTY(ZoneReference* zoneA READ zoneA)
1831 Q_PROPERTY(ZoneReference* zoneB READ zoneB)
1832
1843
1844 Q_CLASSINFO("keepLastCallerDescription", "Keeps the last caller on channel switch")
1847
1848 Q_CLASSINFO("vfoStepDescription", "Specifies the VFO tuning steps in kHz.")
1850 Q_PROPERTY(Frequency vfoStep READ vfoStep WRITE setVFOStep)
1851
1852 Q_CLASSINFO("steTypeDescription", "Specifies the STE (squelch tail elimination) type.")
1853 Q_CLASSINFO("steTypeLongDescription", "Can also be used to disable the STE entirely.")
1855 Q_PROPERTY(STEType steType READ steType WRITE setSTEType)
1856
1857 Q_CLASSINFO("steFrequencyDescription", "Specifies the STE (squelch tail elimination) frequency in Hz.")
1859 Q_PROPERTY(double steFrequency READ steFrequency WRITE setSTEFrequency)
1860
1861 Q_CLASSINFO("steDurationDescription", "Specifies the duration of the STE (squelch tail elimination) tone.")
1862 Q_CLASSINFO("steDurationLongDescription", "Valid values are usually in the range between 10 and 1000ms.")
1865
1866 Q_CLASSINFO("tbstFrequencyDescription", "Specifies the TBST frequency in Hz.")
1867 Q_CLASSINFO("tbstFrequencyDescription", "Should be one of 1000, 1450, 1750 and 2100 Hz. "
1868 "D878UV(2), D578UV and DMR-6X2UV only.")
1871
1872 Q_CLASSINFO("proModeDescription", "Enables 'professional' mode. This limits the option reachable via the menu.")
1874 Q_PROPERTY(bool proMode READ proModeEnabled WRITE enableProMode)
1875
1877 Q_PROPERTY(bool maintainCallChannel READ maintainCallChannelEnabled WRITE enableMaintainCallChannel)
1878
1880 Q_PROPERTY(FanControl fan READ fan WRITE setFan);
1881
1906
1907 Q_CLASSINFO("simplexRepeaterSettingsDescription",
1908 "Configuration for the DMR-6X2UV simplex-repeater feature.")
1911
1912 Q_CLASSINFO("satelliteSettingsDescription",
1913 "Some settings of for satellite mode.")
1914 Q_PROPERTY(AnytoneSatelliteSettingsExtension * satelliteSettings READ satelliteSettings)
1915
1916public:
1918 enum class VFOScanType {
1919 Time = 0, Carrier = 1, Stop = 2
1920 };
1921 Q_ENUM(VFOScanType)
1922
1923
1924 enum class VFOMode {
1925 Memory = 0, VFO = 1
1926 };
1927 Q_ENUM(VFOMode)
1928
1929
1930 enum class VFO {
1931 A = 0, B = 1
1932 };
1933 Q_ENUM(VFO)
1934
1935
1936 enum class STEType {
1937 Off = 0, Silent = 1, Deg120 = 2, Deg180 = 3, Deg240 = 4
1938 };
1939 Q_ENUM(STEType)
1940
1941 enum class FanControl {
1942 PTT, Temperature, Both
1943 };
1944 Q_ENUM(FanControl)
1945
1946
1947public:
1949 Q_INVOKABLE explicit AnytoneSettingsExtension(QObject *parent=nullptr);
1950
1951 ConfigItem *clone() const;
1952
1954 AnytoneBootSettingsExtension *bootSettings() const;
1956 AnytonePowerSaveSettingsExtension *powerSaveSettings() const;
1958 AnytoneKeySettingsExtension *keySettings() const;
1960 AnytoneToneSettingsExtension *toneSettings() const;
1962 AnytoneDisplaySettingsExtension *displaySettings() const;
1964 AnytoneAudioSettingsExtension *audioSettings() const;
1966 AnytoneMenuSettingsExtension *menuSettings() const;
1968 AnytoneAutoRepeaterSettingsExtension *autoRepeaterSettings() const;
1970 AnytoneDMRSettingsExtension *dmrSettings() const;
1972 AnytoneGPSSettingsExtension *gpsSettings() const;
1974 AnytoneRoamingSettingsExtension *roamingSettings() const;
1976 AnytoneBluetoothSettingsExtension *bluetoothSettings() const;
1978 AnytoneRepeaterSettingsExtension *repeaterSettings() const;
1980 AnytoneSatelliteSettingsExtension *satelliteSettings() const;
1981
1983 VFOScanType vfoScanType() const;
1985 void setVFOScanType(VFOScanType type);
1986
1988 VFOMode modeA() const;
1990 void setModeA(VFOMode mode);
1992 VFOMode modeB() const;
1994 void setModeB(VFOMode mode);
1995
1999 const ZoneReference *zoneA() const;
2003 const ZoneReference *zoneB() const;
2004
2006 VFO selectedVFO() const;
2008 void setSelectedVFO(VFO vfo);
2009
2011 bool subChannelEnabled() const;
2013 void enableSubChannel(bool enable);
2014
2023
2032
2034 bool keepLastCallerEnabled() const;
2036 void enableKeepLastCaller(bool enable);
2037
2039 Frequency vfoStep() const;
2041 void setVFOStep(Frequency step);
2042
2044 STEType steType() const;
2046 void setSTEType(STEType type);
2049 double steFrequency() const;
2052 void setSTEFrequency(double freq);
2054 Interval steDuration() const;
2056 void setSTEDuration(Interval intv);
2057
2059 Frequency tbstFrequency() const;
2061 void setTBSTFrequency(Frequency Hz);
2062
2064 bool proModeEnabled() const;
2066 void enableProMode(bool enable);
2067
2069 bool maintainCallChannelEnabled() const;
2071 void enableMaintainCallChannel(bool enable);
2072
2074 FanControl fan() const;
2076 void setFan(FanControl ctlr);
2077
2079 //Channel::Power satPower();
2080
2081protected:
2110
2130 FanControl _fan;
2131};
2132
2133
2134
2135#endif // ANYTONE_SETTINGSEXTENSION_H
Implements the audio settings extension of AnyTone devices.
Definition anytone_settingsextension.hh:713
HandsetSpeakerSource handsetSpeaker
The source for the handset speaker.
Definition anytone_settingsextension.hh:731
bool _recording
Recording enabled.
Definition anytone_settingsextension.hh:803
void setHandsetType(HandsetType type)
Sets the handset type.
Definition anytone_settingsextension.cc:1807
void enableRecording(bool enable)
Enables/disables recording.
Definition anytone_settingsextension.cc:1729
void enableEnhanceAudio(bool enable)
Enables/disables enhanced audio.
Definition anytone_settingsextension.cc:1753
Interval muteDelay
The mute delay in minutes.
Definition anytone_settingsextension.hh:726
bool enhance
If true, the audio is "enhanced".
Definition anytone_settingsextension.hh:723
AnytoneAudioSettingsExtension(QObject *parent=nullptr)
Default constructor.
Definition anytone_settingsextension.cc:1705
bool recording
If true, recording is enabled.
Definition anytone_settingsextension.hh:720
HandsetType handsetType
The handset type.
Definition anytone_settingsextension.hh:733
Interval _voxDelay
VOX delay in ms.
Definition anytone_settingsextension.hh:802
Speaker speaker
The enables speakers.
Definition anytone_settingsextension.hh:729
VoxSource
Source for the VOX.
Definition anytone_settingsextension.hh:737
HandsetSpeakerSource
Possible handset speaker sources.
Definition anytone_settingsextension.hh:749
HandsetType _handsetType
Handset type.
Definition anytone_settingsextension.hh:809
void setHandsetSpeaker(HandsetSpeakerSource src)
Sets the handset speaker source.
Definition anytone_settingsextension.cc:1793
bool _enhanceAudio
Enhance audio.
Definition anytone_settingsextension.hh:805
void setVOXSource(VoxSource source)
Sets the VOX source.
Definition anytone_settingsextension.cc:1741
bool recordingEnabled() const
Returns true if recording is enabled.
Definition anytone_settingsextension.cc:1725
HandsetType
Specifies possible handset types.
Definition anytone_settingsextension.hh:755
VoxSource voxSource
The VOX source.
Definition anytone_settingsextension.hh:717
HandsetSpeakerSource _handsetSpeaker
Specifies the handset speaker source.
Definition anytone_settingsextension.hh:808
bool enhanceAudioEnabled() const
Returns true if the audio is "enhanced".
Definition anytone_settingsextension.cc:1749
void setSpeaker(Speaker speaker)
Sets, which speacker are enabled.
Definition anytone_settingsextension.cc:1779
void setMuteDelay(Interval intv)
Sets the mute delay.
Definition anytone_settingsextension.cc:1765
Interval _muteDelay
Mute delay in minutes.
Definition anytone_settingsextension.hh:806
VoxSource _voxSource
The VOX source.
Definition anytone_settingsextension.hh:804
Speaker
Possible speaker settings.
Definition anytone_settingsextension.hh:743
Speaker _speaker
Specifies which speaker are enabled.
Definition anytone_settingsextension.hh:807
Represents a list of auto-repeater offsets.
Definition anytone_settingsextension.hh:898
ConfigItem * allocateChild(const YAML::Node &node, ConfigItem::Context &ctx, const ErrorStack &err)
Allocates a member objects for the given YAML node.
Definition anytone_settingsextension.cc:2059
AnytoneAutoRepeaterOffsetList(QObject *parent=nullptr)
Empty constructor.
Definition anytone_settingsextension.cc:2076
Represents a reference to a repeater offset.
Definition anytone_settingsextension.hh:886
AnytoneAutoRepeaterOffsetRef(QObject *parent=nullptr)
Default constructor.
Definition anytone_settingsextension.cc:2067
Q_INVOKABLE AnytoneAutoRepeaterOffset(QObject *parent=nullptr)
Default constructor.
Definition anytone_settingsextension.cc:2030
separatelyFrequency offset
The offset frequency.
Definition anytone_settingsextension.hh:864
Frequency _offset
The transmit frequency offset in Hz.
Definition anytone_settingsextension.hh:879
void setOffset(Frequency offset)
Sets the transmit frequency offset in Hz.
Definition anytone_settingsextension.cc:2051
ConfigItem * clone() const
Clones this item.
Definition anytone_settingsextension.cc:2037
Implements the auto-repeater settings extension of AnyTone devices.
Definition anytone_settingsextension.hh:914
Direction directionA
Specifies the auto-repeater transmit-frequency offset direction for VFO A.
Definition anytone_settingsextension.hh:920
Frequency uhfMin
The minimum frequency in Hz of the UHF auto-repeater frequency range.
Definition anytone_settingsextension.hh:936
AnytoneAutoRepeaterOffsetRef * uhf
A reference to the auto-repeater frequency for UHF.
Definition anytone_settingsextension.hh:948
AnytoneAutoRepeaterSettingsExtension(QObject *parent=nullptr)
Default constructor.
Definition anytone_settingsextension.cc:1863
Frequency _minUHF2
Minimum frequency of the second UHF auto-repeater range.
Definition anytone_settingsextension.hh:1071
AnytoneAutoRepeaterOffsetRef * vhf2
A reference to the auto-repeater frequency for the second VHF band.
Definition anytone_settingsextension.hh:968
void setVHFMax(Frequency Hz)
Sets the maximum frequency (in Hz) of the auto-repeater frequency range in the VHF band.
Definition anytone_settingsextension.cc:1927
AnytoneAutoRepeaterOffsetRef * uhfRef() const
Returns the reference for the UHF offset freuqency.
Definition anytone_settingsextension.cc:1962
void setUHF2Min(Frequency Hz)
Sets the minimum frequency (in Hz) of the auto-repeater frequency range in the second UHF band.
Definition anytone_settingsextension.cc:1993
AnytoneAutoRepeaterOffsetRef * vhf
A reference to the auto-repeater frequency for VHF.
Definition anytone_settingsextension.hh:944
AnytoneAutoRepeaterOffsetRef * uhf2
A reference to the auto-repeater frequency for the second UHF band.
Definition anytone_settingsextension.hh:972
Frequency _maxUHF2
Maximum frequency of the second UHF auto-repeater range.
Definition anytone_settingsextension.hh:1073
Frequency _maxVHF
Maximum frequency of the VHF auto-repeater range.
Definition anytone_settingsextension.hh:1057
Direction _directionA
The auto-repeater direction for VFO A.
Definition anytone_settingsextension.hh:1051
AnytoneAutoRepeaterOffsetList * offsets
The repeater transmit offset frequencies.
Definition anytone_settingsextension.hh:976
Frequency _minVHF
Minimum frequency of the VHF auto-repeater range.
Definition anytone_settingsextension.hh:1055
AnytoneAutoRepeaterOffsetRef * _uhf2Offset
A reference to the second UHF offset frequency.
Definition anytone_settingsextension.hh:1077
Frequency vhf2Max
The maximum frequency in Hz of the second VHF auto-repeater frequency range.
Definition anytone_settingsextension.hh:956
void setVHF2Min(Frequency Hz)
Sets the minimum frequency (in Hz) of the auto-repeater frequency range in the second VHF band.
Definition anytone_settingsextension.cc:1971
Direction directionB
Specifies the auto-repeater transmit-frequency offset direction for VFO B.
Definition anytone_settingsextension.hh:924
void setVHFMin(Frequency Hz)
Sets the minimum frequency (in Hz) of the auto-repeater frequency range in the VHF band.
Definition anytone_settingsextension.cc:1916
AnytoneAutoRepeaterOffsetRef * vhfRef() const
Returns the reference for the VHF offset freuqency.
Definition anytone_settingsextension.cc:1957
Direction _directionB
The auto-repeater direction for VFO B.
Definition anytone_settingsextension.hh:1053
void setVHF2Max(Frequency Hz)
Sets the maximum frequency (in Hz) of the auto-repeater frequency range in the second VHF band.
Definition anytone_settingsextension.cc:1982
void setUHF2Max(Frequency Hz)
Sets the maximum frequency (in Hz) of the auto-repeater frequency range in the second UHF band.
Definition anytone_settingsextension.cc:2004
void setDirectionB(Direction dir)
Set the auto-repeater offset direction for VFO V.
Definition anytone_settingsextension.cc:1904
Frequency uhfMax
The maximum frequency in Hz of the UHF auto-repeater frequency range.
Definition anytone_settingsextension.hh:940
AnytoneAutoRepeaterOffsetRef * vhf2Ref() const
Returns the reference for the second VHF offset freuqency.
Definition anytone_settingsextension.cc:2012
Direction
Encodes the auto-repeater offset sign.
Definition anytone_settingsextension.hh:980
AnytoneAutoRepeaterOffsetRef * _vhfOffset
A reference to the VHF offset frequency.
Definition anytone_settingsextension.hh:1063
void setDirectionA(Direction dir)
Set the auto-repeater offset direction for VFO A.
Definition anytone_settingsextension.cc:1893
Frequency _maxVHF2
Maximum frequency of the second VHF auto-repeater range.
Definition anytone_settingsextension.hh:1069
void setUHFMin(Frequency Hz)
Sets the minimum frequency (in Hz) of the auto-repeater frequency range in the UHF band.
Definition anytone_settingsextension.cc:1938
AnytoneAutoRepeaterOffsetRef * uhf2Ref() const
Returns the reference for the second UHF offset freuqency.
Definition anytone_settingsextension.cc:2017
AnytoneAutoRepeaterOffsetRef * _uhfOffset
A reference to the UHF offset frequency.
Definition anytone_settingsextension.hh:1065
Frequency vhf2Min
The minimum frequency in Hz of the second VHF auto-repeater frequency range.
Definition anytone_settingsextension.hh:952
Frequency uhf2Min
The minimum frequency in Hz of the second UHF auto-repeater frequency range.
Definition anytone_settingsextension.hh:960
void setUHFMax(Frequency Hz)
Sets the maximum frequency (in Hz) of the auto-repeater frequency range in the UHF band.
Definition anytone_settingsextension.cc:1949
Frequency vhfMin
The minimum frequency in Hz of the VHF auto-repeater frequency range.
Definition anytone_settingsextension.hh:928
Frequency _minUHF
Minimum frequency of the UHF auto-repeater range.
Definition anytone_settingsextension.hh:1059
Frequency uhf2Max
The maximum frequency in Hz of the second UHF auto-repeater frequency range.
Definition anytone_settingsextension.hh:964
AnytoneAutoRepeaterOffsetList * _offsets
The list of repeater offsets.
Definition anytone_settingsextension.hh:1079
Frequency _maxUHF
Maximum frequency of the UHF auto-repeater range.
Definition anytone_settingsextension.hh:1061
Frequency _minVHF2
Minimum frequency of the second VHF auto-repeater range.
Definition anytone_settingsextension.hh:1067
AnytoneAutoRepeaterOffsetRef * _vhf2Offset
A reference to the second VHF offset frequency.
Definition anytone_settingsextension.hh:1075
Frequency vhfMax
The maximum frequency in Hz of the VHF auto-repeater frequency range.
Definition anytone_settingsextension.hh:932
Implements the bluetooth handset settings for AnyTone devices.
Definition anytone_settingsextension.hh:1422
void setVoxDelay(Interval delay)
Sets the VOX delay.
Definition anytone_settingsextension.cc:2226
void setFuncKeyALong(AnytoneKeySettingsExtension::KeyFunction func)
Set function key A long press function.
Definition anytone_settingsextension.cc:2279
AnytoneKeySettingsExtension::KeyFunction _funcKeyBLong
Function key B long press function.
Definition anytone_settingsextension.hh:1562
void setMicGain(unsigned int gain)
Sets the mic gain.
Definition anytone_settingsextension.cc:2166
ConfigItem * clone() const override
Clones this item.
Definition anytone_settingsextension.cc:2106
unsigned int _voxLevel
Specifies the VOX level.
Definition anytone_settingsextension.hh:1551
unsigned int _volumeLevelB
Specifies the volume level for VFO B.
Definition anytone_settingsextension.hh:1547
void setVolumeLevelB(unsigned int level)
Sets the volume level for VFO B.
Definition anytone_settingsextension.cc:2151
AnytoneKeySettingsExtension::KeyFunction _funcKeyCLong
Function key B long press function.
Definition anytone_settingsextension.hh:1564
unsigned int _volumeLevelA
Specifies the volume level for VFO A.
Definition anytone_settingsextension.hh:1546
void setFuncKeyCVeryLong(AnytoneKeySettingsExtension::KeyFunction func)
Set function key C very long press function.
Definition anytone_settingsextension.cc:2344
void setBacklight(Interval dur)
Sets the backlight duration.
Definition anytone_settingsextension.cc:2357
void setFuncKeyAVeryLong(AnytoneKeySettingsExtension::KeyFunction func)
Set function key A very long press function.
Definition anytone_settingsextension.cc:2318
unsigned int _txNoiseReduction
Specifies the transmit noise reduction level.
Definition anytone_settingsextension.hh:1550
unsigned int _squelch
Specifies the squelch level.
Definition anytone_settingsextension.hh:1549
void setTxNoiseReduction(unsigned int level)
Sets the transmit noise reduction level.
Definition anytone_settingsextension.cc:2196
void setFuncKeyCShort(AnytoneKeySettingsExtension::KeyFunction func)
Set function key C short press function.
Definition anytone_settingsextension.cc:2266
AnytoneKeySettingsExtension::KeyFunction _funcKeyCShort
Function key B short press function.
Definition anytone_settingsextension.hh:1558
void setFuncKeyAShort(AnytoneKeySettingsExtension::KeyFunction func)
Set function key A short press function.
Definition anytone_settingsextension.cc:2240
bool shutdownEnabled() const
Returns true, if the handset is shutdown along with the radio.
Definition anytone_settingsextension.cc:2117
void setFuncKeyBLong(AnytoneKeySettingsExtension::KeyFunction func)
Set function key B long press function.
Definition anytone_settingsextension.cc:2292
bool _shutdown
Shut the handset down along with the radio.
Definition anytone_settingsextension.hh:1545
AnytoneKeySettingsExtension::KeyFunction _funcKeyALong
Function key A long press function.
Definition anytone_settingsextension.hh:1560
Interval _voxDelay
Specifies the VOX delay.
Definition anytone_settingsextension.hh:1552
void enableShutdown(bool enable)
Enables/disables shutting the handset down along with the radio.
Definition anytone_settingsextension.cc:2122
AnytoneKeySettingsExtension::KeyFunction _funcKeyAShort
Function key A short press function.
Definition anytone_settingsextension.hh:1554
void setVoxLevel(unsigned int level)
Set the VOX level.
Definition anytone_settingsextension.cc:2211
void setVolumeLevelA(unsigned int level)
Sets the volume level for VFO A.
Definition anytone_settingsextension.cc:2136
void setFuncKeyBVeryLong(AnytoneKeySettingsExtension::KeyFunction func)
Set function key B very long press function.
Definition anytone_settingsextension.cc:2331
AnytoneKeySettingsExtension::KeyFunction _funcKeyBShort
Function key B short press function.
Definition anytone_settingsextension.hh:1556
AnytoneKeySettingsExtension::KeyFunction _funcKeyBVeryLong
Function key B very long press function.
Definition anytone_settingsextension.hh:1568
void setFuncKeyCLong(AnytoneKeySettingsExtension::KeyFunction func)
Set function key C long press function.
Definition anytone_settingsextension.cc:2305
AnytoneKeySettingsExtension::KeyFunction _funcKeyCVeryLong
Function key B very long press function.
Definition anytone_settingsextension.hh:1570
Interval _backlight
Backlight duration.
Definition anytone_settingsextension.hh:1571
void setFuncKeyBShort(AnytoneKeySettingsExtension::KeyFunction func)
Set function key B short press function.
Definition anytone_settingsextension.cc:2253
AnytoneBluetoothHandsetSettingsExtension(QObject *parent=nullptr)
Default constructor.
Definition anytone_settingsextension.cc:2087
unsigned int _micGain
Specifies the mic gain.
Definition anytone_settingsextension.hh:1548
AnytoneKeySettingsExtension::KeyFunction _funcKeyAVeryLong
Function key A very long press function.
Definition anytone_settingsextension.hh:1566
void setSquelch(unsigned int level)
Sets the squelch level.
Definition anytone_settingsextension.cc:2181
Implements the bluetooth settings for some AnyTone devices.
Definition anytone_settingsextension.hh:1581
Interval _pttSleep
PTT sleep timer, 0 is off.
Definition anytone_settingsextension.hh:1666
unsigned int micGain
The bluetooth mic gain.
Definition anytone_settingsextension.hh:1597
void setPTTSleepTimer(Interval intv)
Sets the PTT sleep timeout, 0 means off.
Definition anytone_settingsextension.cc:2425
Interval _holdDelay
What ever.
Definition anytone_settingsextension.hh:1672
bool enabled
If true, bluetooth is enabled.
Definition anytone_settingsextension.hh:1587
AnytoneBluetoothSettingsExtension(QObject *parent=nullptr)
Default constructor.
Definition anytone_settingsextension.cc:2369
bool internalSpeaker
If true, the internal speaker is enabled additionally to the bluetooth output.
Definition anytone_settingsextension.hh:1595
bool _pttLatch
PTT latch flag.
Definition anytone_settingsextension.hh:1665
unsigned int speakerGain
The bluetooth speaker gain.
Definition anytone_settingsextension.hh:1599
void setMicGain(unsigned int gain)
Sets the bluetooth mic gain.
Definition anytone_settingsextension.cc:2464
Interval holdDelay
The bluetooth hold delay.
Definition anytone_settingsextension.hh:1603
bool _internalMic
Additionally enables internal mic.
Definition anytone_settingsextension.hh:1667
bool internalMicEnabled() const
Returns true if the internal mic is enabled additionally to the bluetooth input.
Definition anytone_settingsextension.cc:2433
void enableInternalMic(bool enable)
Enables/disables internal mic additionally to the bluetooth input.
Definition anytone_settingsextension.cc:2438
void setSpeakerGain(unsigned int gain)
Sets the bluetooth speaker gain.
Definition anytone_settingsextension.cc:2477
bool _bluetoothEnabled
Enables bluetooth.
Definition anytone_settingsextension.hh:1664
void enableInternalSpeaker(bool enable)
Enables/disables internal speaker additionally to the bluetooth output.
Definition anytone_settingsextension.cc:2451
const Interval & holdDuration() const
Returns the bluetooth hold duration.
Definition anytone_settingsextension.cc:2485
void enablePTTLatch(bool enable)
Enables/disables the PTT latch.
Definition anytone_settingsextension.cc:2395
void enableBluetooth(bool enable)
Enables/disables bluetooth.
Definition anytone_settingsextension.cc:2413
AnytoneBluetoothHandsetSettingsExtension * _handset
Handset settings.
Definition anytone_settingsextension.hh:1663
unsigned int _speakerGain
The bluetooth speaker gain.
Definition anytone_settingsextension.hh:1670
unsigned int _micGain
The bluetooth mic gain.
Definition anytone_settingsextension.hh:1669
Interval hold
The bluetooth hold duration.
Definition anytone_settingsextension.hh:1601
bool internalSpeakerEnabled() const
Returns true if the internal speaker is enabled additionally to the bluetooth output.
Definition anytone_settingsextension.cc:2446
ConfigItem * clone() const
Clones this item.
Definition anytone_settingsextension.cc:2381
AnytoneBluetoothHandsetSettingsExtension * handset
The handset settings.
Definition anytone_settingsextension.hh:1605
Interval _holdDuration
What ever.
Definition anytone_settingsextension.hh:1671
bool pttLatch
If true, the PTT latch is enabled.
Definition anytone_settingsextension.hh:1589
void setHoldDelay(const Interval &dur)
Sets the bluetooth hold delay.
Definition anytone_settingsextension.cc:2503
bool _internalSpeaker
Additionally enables internal speaker.
Definition anytone_settingsextension.hh:1668
void setHoldDuration(const Interval &dur)
Sets the bluetooth hold duration.
Definition anytone_settingsextension.cc:2490
Interval pttSleepTimer
The sleep timeout of the PTT button.
Definition anytone_settingsextension.hh:1591
bool internalMic
If true, the internal mic is enabled additionally to the bluetooth input.
Definition anytone_settingsextension.hh:1593
bool bluetoothEnabled() const
Returns true if bluetooth is enabled.
Definition anytone_settingsextension.cc:2408
Implements the boot settings extension of AnyTone devices.
Definition anytone_settingsextension.hh:20
ZoneReference * priorityZoneB
The priority zone for VFO B.
Definition anytone_settingsextension.hh:26
AnytoneBootSettingsExtension(QObject *parent=nullptr)
Constructor.
Definition anytone_settingsextension.cc:777
ConfigItem * clone() const
Clones this item.
Definition anytone_settingsextension.cc:786
ZoneReference * _priorityZoneA
Priority zone for VFO A.
Definition anytone_settingsextension.hh:48
bool gpsCheckEnabled() const
Returns true if the GPS check is enabled.
Definition anytone_settingsextension.cc:806
bool _gpsCheck
Enables GPS check.
Definition anytone_settingsextension.hh:50
ZoneReference * _priorityZoneB
Priority zone for VFO B.
Definition anytone_settingsextension.hh:49
void enableGPSCheck(bool enable)
Enables/disables the GPS check.
Definition anytone_settingsextension.cc:810
bool gpsCheck
Enables the GPS check.
Definition anytone_settingsextension.hh:29
ZoneReference * priorityZoneA
The priority zone for VFO A.
Definition anytone_settingsextension.hh:24
Implements the DMR settings extension of AnyTone devices.
Definition anytone_settingsextension.hh:1088
void enableMonitorColorCodeMatch(bool enable)
Enables/disables the CC match for the DMR monitor.
Definition anytone_settingsextension.cc:98
TalkerAliasSource talkerAliasSource() const
Returns the talker alias source.
Definition anytone_settingsextension.cc:131
bool monitorTimeSlotHoldEnabled() const
Returns true if the time-slot is held by the DMR monitor.
Definition anytone_settingsextension.cc:118
bool _monitorColorCodeMatch
Enables CC match for DMR monitor.
Definition anytone_settingsextension.hh:1205
void enableMonitorIDMatch(bool enable)
Enables/disables ID match for the DMR monitor.
Definition anytone_settingsextension.cc:110
Interval wakeHeadPeriod
Wake head-period in ms.
Definition anytone_settingsextension.hh:1098
bool _monitorIDMatch
Enables ID match for DMR monitor.
Definition anytone_settingsextension.hh:1206
void setManualGroupCallHangTime(Interval sec)
Sets the manual dialed group-call hang-time in seconds.
Definition anytone_settingsextension.cc:36
void setTalkerAliasSource(TalkerAliasSource mode)
Sets the talker alias source.
Definition anytone_settingsextension.cc:135
Interval manualPrivateCallHangTime
Manual dialed private-call hang-time in seconds.
Definition anytone_settingsextension.hh:1094
SlotMatch monitorSlotMatch
Slot-match mode for DMR monitor.
Definition anytone_settingsextension.hh:1106
EncryptionType _encryption
DMR encryption type.
Definition anytone_settingsextension.hh:1209
bool _monitorTimeSlotHold
Enables the time-slot hold for the DMR monitor.
Definition anytone_settingsextension.hh:1207
Interval _manualGroupCallHangTime
Hang-time for manual dialed group-calls in seconds.
Definition anytone_settingsextension.hh:1200
void enableMonitorTimeSlotHold(bool enable)
Enables/disables the time-slot hold for the DMR monitor.
Definition anytone_settingsextension.cc:122
bool filterOwnIDEnabled() const
If true, the own ID is not shown in call lists.
Definition anytone_settingsextension.cc:70
bool _filterOwnID
If enabled, the own ID is not shown in call lists.
Definition anytone_settingsextension.hh:1203
AnytoneDMRSettingsExtension(QObject *parent=nullptr)
Constructor.
Definition anytone_settingsextension.cc:9
void enableFilterOwnID(bool enable)
Enables/disables filtering of own ID.
Definition anytone_settingsextension.cc:74
void setManualPrivateCallHangTime(Interval sec)
Sets the manual dialed private-call hang-time in seconds.
Definition anytone_settingsextension.cc:49
bool monitorColorCodeMatchEnabled() const
Returns true if the CC match is enabled for the DMR monitor.
Definition anytone_settingsextension.cc:94
Interval manualGroupCallHangTime
Manual dialed group-call hang-time in seconds.
Definition anytone_settingsextension.hh:1092
bool filterOwnID
Filter own ID from call lists.
Definition anytone_settingsextension.hh:1102
void setEncryption(EncryptionType type)
Sets the encryption type.
Definition anytone_settingsextension.cc:148
void setMonitorSlotMatch(SlotMatch match)
Sets the slot-match mode for the DMR monitor.
Definition anytone_settingsextension.cc:86
EncryptionType encryption() const
Returns the encryption type.
Definition anytone_settingsextension.cc:144
SlotMatch _monitorSlotMatch
Slot-match mode for DMR monitor.
Definition anytone_settingsextension.hh:1204
void setWakeHeadPeriod(Interval ms)
Sets the wake head-period in ms.
Definition anytone_settingsextension.cc:62
bool monitorIDMatchEnabled() const
Returns true if the ID match is enabled for the DMR monitor.
Definition anytone_settingsextension.cc:106
Interval _wakeHeadPeriod
Wake head-period in ms, should be 100ms.
Definition anytone_settingsextension.hh:1202
TalkerAliasSource _talkerAliasSource
Source for the talker alias.
Definition anytone_settingsextension.hh:1208
Interval _manualPrivateCallHangTime
Hang-time for manual dialed private-calls in seconds.
Definition anytone_settingsextension.hh:1201
Implements the display settings extension of AnyTone devices.
Definition anytone_settingsextension.hh:441
Language language() const
Returns the UI language.
Definition anytone_settingsextension.cc:1468
bool showCallEnabled() const
Returns true if the call is shown.
Definition anytone_settingsextension.cc:1444
void setZoneBNameColor(Color color)
Sets the zone name color for VFO B.
Definition anytone_settingsextension.cc:1669
void setDateFormat(DateFormat format)
Sets the date format.
Definition anytone_settingsextension.cc:1484
void setChannelNameColor(Color color)
Sets the color of the channel name.
Definition anytone_settingsextension.cc:1633
void enableShowGlobalChannelNumber(bool enable)
Enables/disables showing the global channel number.
Definition anytone_settingsextension.cc:1508
bool showChannelType() const
Returns true if the channel type is shown.
Definition anytone_settingsextension.cc:1540
Color _zoneNameColor
Color of zone name.
Definition anytone_settingsextension.hh:703
bool showLastHeardEnabled() const
Shows the last caller.
Definition anytone_settingsextension.cc:1564
bool _callEndPrompt
Call-end prompt enabled.
Definition anytone_settingsextension.hh:681
bool _showLastHeard
Shows the last caller.
Definition anytone_settingsextension.hh:696
bool _showTimeSlot
Show time slot.
Definition anytone_settingsextension.hh:691
LastCallerDisplayMode _lastCallerDisplay
Last-caller display mode.
Definition anytone_settingsextension.hh:682
bool _showColorCode
Show color code.
Definition anytone_settingsextension.hh:690
bool _showContact
Enables showing the contact.
Definition anytone_settingsextension.hh:693
void enableCallEndPrompt(bool enable)
Enables/disables the call-end prompt.
Definition anytone_settingsextension.cc:1412
bool displayFrequencyEnabled() const
Returns true, if the frequency is displayed instead of the channel name.
Definition anytone_settingsextension.cc:1384
Color _callColor
Color of call.
Definition anytone_settingsextension.hh:685
void enableDisplayFrequency(bool enable)
Enables/disables display of frequency.
Definition anytone_settingsextension.cc:1388
bool showGlobalChannelNumber() const
Returns true, if the global channel number is shown.
Definition anytone_settingsextension.cc:1504
bool showTimeSlot() const
Returns true if the time slot is shown.
Definition anytone_settingsextension.cc:1528
void setStandbyTextColor(Color color)
Sets the standby text color.
Definition anytone_settingsextension.cc:1580
bool _customChannelBackground
Custom channel background enabled.
Definition anytone_settingsextension.hh:700
AnytoneDisplaySettingsExtension(QObject *parent=nullptr)
Constructor.
Definition anytone_settingsextension.cc:1345
bool showClockEnabled() const
Returns true if the clock is shown.
Definition anytone_settingsextension.cc:1432
void enableShowTimeSlot(bool enable)
Shows/hides time slot.
Definition anytone_settingsextension.cc:1532
void enableShowColorCode(bool enable)
Shows/hides color code.
Definition anytone_settingsextension.cc:1520
unsigned int brightness
The display brightness [1-10].
Definition anytone_settingsextension.hh:447
Color _channelNameColor
Color of channel name.
Definition anytone_settingsextension.hh:701
bool customChannelBackground() const
Returns true if the custom channel background is enabled.
Definition anytone_settingsextension.cc:1689
Color callColor() const
Returns the color of the call.
Definition anytone_settingsextension.cc:1456
void setLastCallerDisplay(LastCallerDisplayMode mode)
Sets the last caller display mode.
Definition anytone_settingsextension.cc:1424
void enableShowChannelNumber(bool enable)
Enables/disables the display of the channel number.
Definition anytone_settingsextension.cc:1496
unsigned int _brightness
The display brightness.
Definition anytone_settingsextension.hh:679
Color _zoneBNameColor
Color of zone name for VFO B.
Definition anytone_settingsextension.hh:704
Color zoneNameColor() const
Returns the color of the zone name.
Definition anytone_settingsextension.cc:1653
Color _standbyBackgroundColor
Standby background color.
Definition anytone_settingsextension.hh:695
void setStandbyBackgroundColor(Color color)
Sets the standby background color.
Definition anytone_settingsextension.cc:1592
bool callEndPromptEnabled() const
Returns true if the call-end prompt is shown.
Definition anytone_settingsextension.cc:1408
Interval _backlightDuration
Backlight duration.
Definition anytone_settingsextension.hh:697
void enableShowChannelType(bool enable)
Shows/hides channel type.
Definition anytone_settingsextension.cc:1544
bool displayFrequency
The display frequency setting.
Definition anytone_settingsextension.hh:445
bool showColorCode() const
Returns true if the color code is shown.
Definition anytone_settingsextension.cc:1516
Color _standbyTextColor
Standby text color.
Definition anytone_settingsextension.hh:694
bool _volumeChangePrompt
Volume-change prompt enabled.
Definition anytone_settingsextension.hh:680
bool _showChannelNumber
Show channel number.
Definition anytone_settingsextension.hh:688
Interval _backlightDurationTX
Backlight duration during TX (0=off).
Definition anytone_settingsextension.hh:698
bool _showGlobalChannelNumber
Show global channel number.
Definition anytone_settingsextension.hh:689
void setBacklightDuration(Interval sec)
Sets the backlight duration in seconds.
Definition anytone_settingsextension.cc:1606
Color channelNameColor() const
Returns the color of the channel name.
Definition anytone_settingsextension.cc:1629
void setBacklightDurationTX(Interval sec)
Sets the backlight duration during TX in seconds.
Definition anytone_settingsextension.cc:1620
bool showChannelNumberEnabled() const
Returns true if the channel number is shown.
Definition anytone_settingsextension.cc:1492
void enableShowLastHeard(bool enable)
Enables/disables display of last caller.
Definition anytone_settingsextension.cc:1568
DateFormat dateFormat() const
Returns the date format.
Definition anytone_settingsextension.cc:1480
bool _showClock
Display clock.
Definition anytone_settingsextension.hh:683
bool _showCall
Display call.
Definition anytone_settingsextension.hh:684
Interval backlightDurationTX() const
Returns backlight duration during TX.
Definition anytone_settingsextension.cc:1615
bool _displayFrequency
Display frequency property.
Definition anytone_settingsextension.hh:678
bool volumeChangePromptEnabled() const
Returns true if the volume-change prompt is shown.
Definition anytone_settingsextension.cc:1396
void setBacklightDurationRX(Interval sec)
Sets the backlight duration during RX in seconds.
Definition anytone_settingsextension.cc:1681
void enableCustomChannelBackground(bool enable)
Enables/disables the custom channel background.
Definition anytone_settingsextension.cc:1693
void setCallColor(Color color)
Sets the color of the call.
Definition anytone_settingsextension.cc:1460
bool showContact() const
Returns true if the contact is shown.
Definition anytone_settingsextension.cc:1552
void enableShowCall(bool enable)
Enables/disables display of call.
Definition anytone_settingsextension.cc:1448
void enableShowClock(bool enable)
Enables/disables clock.
Definition anytone_settingsextension.cc:1436
void setZoneNameColor(Color color)
Sets the color of the zone name.
Definition anytone_settingsextension.cc:1657
Color standbyTextColor() const
Returns the standby text color.
Definition anytone_settingsextension.cc:1576
Language _language
UI language.
Definition anytone_settingsextension.hh:686
void setLanguage(Language lang)
Sets the UI language.
Definition anytone_settingsextension.cc:1472
void setChannelBNameColor(Color color)
Sets the channel name color for VFO B.
Definition anytone_settingsextension.cc:1645
Color zoneBNameColor() const
Returns the color of the zone name for VFO B.
Definition anytone_settingsextension.cc:1665
Interval backlightDurationRX() const
Returns backlight duration during RX.
Definition anytone_settingsextension.cc:1677
void setBrightness(unsigned int level)
Sets the display brightness [1-10].
Definition anytone_settingsextension.cc:1376
LastCallerDisplayMode lastCallerDisplay() const
Returns the last caller display mode.
Definition anytone_settingsextension.cc:1420
DateFormat _dateFormat
The date format.
Definition anytone_settingsextension.hh:687
Color channelBNameColor() const
Returns the color of the channel name for VFO B.
Definition anytone_settingsextension.cc:1641
Interval backlightDuration
Backlight duration.
Definition anytone_settingsextension.hh:451
bool _showChannelType
Show channel type.
Definition anytone_settingsextension.hh:692
void enableVolumeChangePrompt(bool enable)
Enables/disables the volume-change prompt.
Definition anytone_settingsextension.cc:1400
Color standbyBackgroundColor() const
Returns the standby background color.
Definition anytone_settingsextension.cc:1588
Interval _backlightDurationRX
Backlight duration during RX.
Definition anytone_settingsextension.hh:699
void enableShowContact(bool enable)
Enables/disables the display of calling contact.
Definition anytone_settingsextension.cc:1556
Color _channelBNameColor
Color of channel name for VFO B.
Definition anytone_settingsextension.hh:702
Implements the GPS settings extension of AnyTone devices.
Definition anytone_settingsextension.hh:1218
Interval updatePeriod
GPS ranging interval in seconds.
Definition anytone_settingsextension.hh:1231
QString timeZone
The time-zone IANA Id.
Definition anytone_settingsextension.hh:1223
void enablePositionReporting(bool enable)
Enables/disables the GPS range reporting.
Definition anytone_settingsextension.cc:207
bool _gpsRangeReporting
Enables GPS range reporting.
Definition anytone_settingsextension.hh:1260
AnytoneGPSSettingsExtension(QObject *parent=nullptr)
Constructor.
Definition anytone_settingsextension.cc:159
QString ianaTimeZone() const
Returns the IANA ID of the time zone.
Definition anytone_settingsextension.cc:183
void setIANATimeZone(const QString &id)
Sets the time zone by IANA ID.
Definition anytone_settingsextension.cc:196
bool reportPosition
Enables GPS range reporting.
Definition anytone_settingsextension.hh:1227
ConfigItem * clone() const
Clones this item.
Definition anytone_settingsextension.cc:167
QTimeZone _timeZone
The time zone.
Definition anytone_settingsextension.hh:1259
Interval _gpsRangingInterval
The GPS ranging interval in seconds.
Definition anytone_settingsextension.hh:1261
void setUpdatePeriod(Interval sec)
Sets the GPS ranging interval in seconds.
Definition anytone_settingsextension.cc:221
bool positionReportingEnabled() const
Returns true if the GPS range reporting is enabled.
Definition anytone_settingsextension.cc:202
void setTimeZone(const QTimeZone &zone)
Sets the time zone.
Definition anytone_settingsextension.cc:188
Implements the key settings extension of AnyTone devices.
Definition anytone_settingsextension.hh:123
KeyFunction _funcKey6Short
Function of the function key 6, short press.
Definition anytone_settingsextension.hh:375
KeyFunction _funcKey3Short
Function of the function key 3, short press.
Definition anytone_settingsextension.hh:369
void setFuncKeyBLong(KeyFunction func)
Sets the key function for a long press on the function key B.
Definition anytone_settingsextension.cc:1114
KeyFunction funcKey6Short
Function key 6 (P6 next to screen, D578UV only), short press function.
Definition anytone_settingsextension.hh:147
KeyFunction funcKeyCLong
Function key C (PF3 on top or B on mic), long press function.
Definition anytone_settingsextension.hh:165
void setFuncKeyCLong(KeyFunction func)
Sets the key function for a long press on the function key C.
Definition anytone_settingsextension.cc:1151
void setFuncKey5Short(KeyFunction func)
Sets the key function for a short press on the programmable function key 5.
Definition anytone_settingsextension.cc:1019
void enableKeypadLock(bool enable)
Enables/disables the key-pad lock.
Definition anytone_settingsextension.cc:1264
KeyFunction _funcKey1Long
Function of the function key 1, long press.
Definition anytone_settingsextension.hh:366
bool sideKeysLockEnabled() const
Returns true if the side-keys gets locked too.
Definition anytone_settingsextension.cc:1271
bool autoKeyLock
The auto key-lock property.
Definition anytone_settingsextension.hh:181
KeyFunction _funcKeyAShort
Function of the function key A, short press.
Definition anytone_settingsextension.hh:377
void setFuncKey2Short(KeyFunction func)
Sets the key function for a short press on the programmable function key 2.
Definition anytone_settingsextension.cc:950
KeyFunction funcKey1Short
Function key 1 (P1 below or next to screen), short press function.
Definition anytone_settingsextension.hh:127
KeyFunction _funcKeyBVeryLong
Function of the function key B, very long press.
Definition anytone_settingsextension.hh:382
KeyFunction _funcKeyBShort
Function of the function key B, short press.
Definition anytone_settingsextension.hh:380
KeyFunction funcKey3Long
Function key 3 (P3 next to screen, D578UV only), long press function.
Definition anytone_settingsextension.hh:137
KeyFunction funcKey2Short
Function key 2 (P2 below or next to screen), short press function.
Definition anytone_settingsextension.hh:131
KeyFunction funcKey6Long
Function key 6 (P6 next to screen, D578UV only), long press function.
Definition anytone_settingsextension.hh:149
void enableKnobLock(bool enable)
Enables/disables the knob lock.
Definition anytone_settingsextension.cc:1253
bool _sideKeysLock
Side-keys are locked.
Definition anytone_settingsextension.hh:394
KeyFunction funcKey2Long
Function key 2 (P2 below or next to screen), long press function.
Definition anytone_settingsextension.hh:133
KeyFunction _funcKey5Long
Function of the function key 5, long press.
Definition anytone_settingsextension.hh:374
void setFuncKeyDLong(KeyFunction func)
Sets the key function for a long press on the function key D.
Definition anytone_settingsextension.cc:1174
KeyFunction funcKey1Long
Function key 1 (P1 below or next to screen), long press function.
Definition anytone_settingsextension.hh:129
KeyFunction _funcKey2Long
Function of the function key 2, long press.
Definition anytone_settingsextension.hh:368
KeyFunction funcKeyCShort
Function key C (PF3 on top or C on mic), short press function.
Definition anytone_settingsextension.hh:163
KeyFunction _funcKeyALong
Function of the function key A, long press.
Definition anytone_settingsextension.hh:378
KeyFunction _funcKey2Short
Function of the function key 2, short press.
Definition anytone_settingsextension.hh:367
KeyFunction
All possible key functions.
Definition anytone_settingsextension.hh:201
void setLongPressDuration(Interval ms)
Sets the long-press duration in ms.
Definition anytone_settingsextension.cc:1214
AnytoneKeySettingsExtension(QObject *parent=nullptr)
Empty constructor.
Definition anytone_settingsextension.cc:890
void setFuncKey4Short(KeyFunction func)
Sets the key function for a short press on the programmable function key 4.
Definition anytone_settingsextension.cc:996
KeyFunction _funcKnobLong
Function of the knob, long press.
Definition anytone_settingsextension.hh:388
void setUpDownKeyFunction(UpDownKeyFunction func)
Sets the up/down key function.
Definition anytone_settingsextension.cc:1228
void setFuncKeyDShort(KeyFunction func)
Sets the key function for a short press on the function key D.
Definition anytone_settingsextension.cc:1163
void setFuncKeyAShort(KeyFunction func)
Sets the key function for a short press on the function key A.
Definition anytone_settingsextension.cc:1065
KeyFunction funcKeyBShort
Function key B (PF2 second below PTT or B on mic), short press function.
Definition anytone_settingsextension.hh:157
KeyFunction funcKey5Long
Function key 5 (P5 next to screen, D578UV only), long press function.
Definition anytone_settingsextension.hh:145
KeyFunction funcKeyAShort
Function key A (PF1 below PTT or A on mic), short press function.
Definition anytone_settingsextension.hh:151
KeyFunction funcKeyAVeryLong
Function key A (PF1 below PTT or A on mic), very-long press function.
Definition anytone_settingsextension.hh:155
KeyFunction _funcKeyDShort
Function of the function key D, short press.
Definition anytone_settingsextension.hh:385
void setFuncKey3Short(KeyFunction func)
Sets the key function for a short press on the programmable function key 3.
Definition anytone_settingsextension.cc:973
bool knobLockEnabled() const
Returns true if the knob gets locked too.
Definition anytone_settingsextension.cc:1249
Interval _longPressDuration
The long-press duration in ms.
Definition anytone_settingsextension.hh:389
KeyFunction funcKeyDShort
Function key D (D on mic, D578UV only), short press function.
Definition anytone_settingsextension.hh:167
bool autoKeyLockEnabled() const
Returns true, if the automatic key-lock feature is enabled.
Definition anytone_settingsextension.cc:1237
UpDownKeyFunction upDownKeyFunction() const
Returns the up/down key function.
Definition anytone_settingsextension.cc:1223
void setFuncKnobLong(KeyFunction func)
Sets the key function for a long press on the knob.
Definition anytone_settingsextension.cc:1201
void setFuncKey1Short(KeyFunction func)
Sets the key function for a short press on the function key 1.
Definition anytone_settingsextension.cc:927
KeyFunction _funcKey4Long
Function of the function key 4, long press.
Definition anytone_settingsextension.hh:372
void setFuncKey4Long(KeyFunction func)
Sets the key function for a long press on the programmable function key 4.
Definition anytone_settingsextension.cc:1007
void setFuncKeyALong(KeyFunction func)
Sets the key function for a long press on the function key A.
Definition anytone_settingsextension.cc:1076
bool forcedKeyLock
If true, the key-lock is forced.
Definition anytone_settingsextension.hh:197
KeyFunction funcKeyBVeryLong
Function key B (PF2 second below PTT or B on mic), very-long press function.
Definition anytone_settingsextension.hh:161
KeyFunction funcKey5Short
Function key 5 (P5 next to screen, D578UV only), short press function.
Definition anytone_settingsextension.hh:143
bool _forcedKeyLock
Forced key-lock.
Definition anytone_settingsextension.hh:395
KeyFunction funcKnobShort
Function knob (channel/frequency knob, D578UV only), short press function.
Definition anytone_settingsextension.hh:171
void setFuncKeyBShort(KeyFunction func)
Sets the key function for a short press on the function key B.
Definition anytone_settingsextension.cc:1103
void enableAutoKeyLock(bool enabled)
Enables/disables auto key-lock.
Definition anytone_settingsextension.cc:1241
KeyFunction _funcKey5Short
Function of the function key 5, short press.
Definition anytone_settingsextension.hh:373
void setFuncKey2Long(KeyFunction func)
Sets the key function for a long press on the programmable function key 2.
Definition anytone_settingsextension.cc:961
KeyFunction _funcKeyCLong
Function of the function key C, long press.
Definition anytone_settingsextension.hh:384
KeyFunction funcKey4Short
Function key 4 (P4 next to screen, D578UV only), short press function.
Definition anytone_settingsextension.hh:139
void setFuncKey3Long(KeyFunction func)
Sets the key function for a long press on the programmable function key 3.
Definition anytone_settingsextension.cc:984
KeyFunction _funcKey1Short
Function of the function key 1, short press.
Definition anytone_settingsextension.hh:365
KeyFunction funcKey3Short
Function key 3 (P3 next to screen, D578UV only), short press function.
Definition anytone_settingsextension.hh:135
bool keypadLockEnabled() const
Returns true if the key-pad gets locked too.
Definition anytone_settingsextension.cc:1260
KeyFunction _funcKnobShort
Function of the knob, short press.
Definition anytone_settingsextension.hh:387
void setFuncKnobShort(KeyFunction func)
Sets the key function for a short press on the knob.
Definition anytone_settingsextension.cc:1188
Interval longPressDuration
The long press duration in ms.
Definition anytone_settingsextension.hh:175
KeyFunction _funcKeyDLong
Function of the function key D, long press.
Definition anytone_settingsextension.hh:386
KeyFunction funcKeyBLong
Function key B (PF2 second below PTT or B on mic), long press function.
Definition anytone_settingsextension.hh:159
bool sideKeysLock
If true, the side-keys get locked too.
Definition anytone_settingsextension.hh:193
void setFuncKey5Long(KeyFunction func)
Sets the key function for a long press on the programmable function key 5.
Definition anytone_settingsextension.cc:1030
UpDownKeyFunction upDownKeys
Up/down key functions (D578UV only).
Definition anytone_settingsextension.hh:178
KeyFunction _funcKeyBLong
Function of the function key B, long press.
Definition anytone_settingsextension.hh:381
KeyFunction funcKeyDLong
Function key D (D on mic, D578UV only), long press function.
Definition anytone_settingsextension.hh:169
void setFuncKeyBVeryLong(KeyFunction func)
Sets the key function for a very-long press on the function key B.
Definition anytone_settingsextension.cc:1127
bool _autoKeyLock
Auto key-lock property.
Definition anytone_settingsextension.hh:391
KeyFunction _funcKey4Short
Function of the function key 4, short press.
Definition anytone_settingsextension.hh:371
void setFuncKeyAVeryLong(KeyFunction func)
Sets the key function for a very-long press on the function key A.
Definition anytone_settingsextension.cc:1090
KeyFunction _funcKeyAVeryLong
Function of the function key A, very long press.
Definition anytone_settingsextension.hh:379
UpDownKeyFunction
Possible up/down key functions.
Definition anytone_settingsextension.hh:214
bool _knobLock
Knob locked too.
Definition anytone_settingsextension.hh:392
KeyFunction _funcKey3Long
Function of the function key 3, long press.
Definition anytone_settingsextension.hh:370
bool forcedKeyLockEnabled() const
Returns true if the key-lock is forced.
Definition anytone_settingsextension.cc:1282
KeyFunction _funcKeyCShort
Function of the function key C, short press.
Definition anytone_settingsextension.hh:383
UpDownKeyFunction _upDownFunction
The up/down key function.
Definition anytone_settingsextension.hh:390
KeyFunction funcKeyALong
Function key A (PF1 below PTT or A on mic), long press function.
Definition anytone_settingsextension.hh:153
void enableForcedKeyLock(bool enable)
Enables/disables the forced key-lock.
Definition anytone_settingsextension.cc:1286
bool knobLock
If true, the knob gets locked too.
Definition anytone_settingsextension.hh:185
KeyFunction funcKey4Long
Function key 4 (P4 next to screen, D578UV only), long press function.
Definition anytone_settingsextension.hh:141
void setFuncKey1Long(KeyFunction func)
Sets the key function for a long press on the function key 1.
Definition anytone_settingsextension.cc:938
KeyFunction _funcKey6Long
Function of the function key 6, long press.
Definition anytone_settingsextension.hh:376
bool keypadLock
If true, the key-pad gets locked too.
Definition anytone_settingsextension.hh:189
void enableSideKeysLock(bool enable)
Enables/disables the side-keys lock.
Definition anytone_settingsextension.cc:1275
void setFuncKey6Short(KeyFunction func)
Sets the key function for a short press on the programmable function key 6.
Definition anytone_settingsextension.cc:1042
KeyFunction funcKnobLong
Function knob (channel/frequency knob, D578UV only), long press function.
Definition anytone_settingsextension.hh:173
void setFuncKey6Long(KeyFunction func)
Sets the key function for a long press on the programmable function key 6.
Definition anytone_settingsextension.cc:1053
void setFuncKeyCShort(KeyFunction func)
Sets the key function for a short press on the function key C.
Definition anytone_settingsextension.cc:1140
bool _keypadLock
Key-pad is locked.
Definition anytone_settingsextension.hh:393
Implements the menu settings extension of AnyTone devices.
Definition anytone_settingsextension.hh:818
Interval duration
Menu exit time in seconds.
Definition anytone_settingsextension.hh:823
void setDuration(Interval sec)
Sets the menu duration in seconds.
Definition anytone_settingsextension.cc:1840
bool _showSeparator
Show menu separator lines.
Definition anytone_settingsextension.hh:846
void enableSeparator(bool enable)
Enables/disables the menu separator lines.
Definition anytone_settingsextension.cc:1852
AnytoneMenuSettingsExtension(QObject *parent=nullptr)
Default constructor.
Definition anytone_settingsextension.cc:1819
bool separator
Menu separator.
Definition anytone_settingsextension.hh:827
Interval _menuDuration
Menu display duration in seconds.
Definition anytone_settingsextension.hh:845
ConfigItem * clone() const
Clones this item.
Definition anytone_settingsextension.cc:1826
bool separatorEnabled() const
Returns true, if the menu separator lines are shown.
Definition anytone_settingsextension.cc:1848
Implements the power-save settings for AnyTone devices.
Definition anytone_settingsextension.hh:59
PowerSave powerSave() const
Returns the power-save mode.
Definition anytone_settingsextension.cc:863
void setAutoShutdown(Interval min)
Sets the auto shut-down delay.
Definition anytone_settingsextension.cc:843
bool resetAutoShutdownOnCall
Resets the auto shut-down timer on every call.
Definition anytone_settingsextension.hh:67
Interval _autoShutDownDelay
The auto shut-down delay in minutes.
Definition anytone_settingsextension.hh:111
AnytonePowerSaveSettingsExtension(QObject *parent=nullptr)
The power-save mode.
Definition anytone_settingsextension.cc:821
void enableResetAutoShutdownOnCall(bool enable)
Enables/disables reset of auto shut-down timer on every call.
Definition anytone_settingsextension.cc:855
Interval autoShutdown
The auto shut-down delay in minutes.
Definition anytone_settingsextension.hh:64
bool atpc() const
Returns true if the adaptive transmission power control is enabled.
Definition anytone_settingsextension.cc:875
PowerSave _powerSave
Power save mode property.
Definition anytone_settingsextension.hh:113
bool _resetAutoShutdownOnCall
Enables reset of auto shut-down timer on every call.
Definition anytone_settingsextension.hh:112
void enableATPC(bool enable)
Enables/disables the adaptive transmission power control.
Definition anytone_settingsextension.cc:879
bool _atpc
Adaptive Transmission Power Control.
Definition anytone_settingsextension.hh:114
void setPowerSave(PowerSave mode)
Sets the power-save mode.
Definition anytone_settingsextension.cc:867
Implements the repeater settings for the BTECH DMR-6X2UV and AT-D578UV.
Definition anytone_settingsextension.hh:1682
TimeSlot _timeSlot
The primary channel time-slot.
Definition anytone_settingsextension.hh:1751
void setColorCode(ColorCode code)
Sets the color code match mode.
Definition anytone_settingsextension.cc:2587
bool enabled
Enables/disables the repeater feature.
Definition anytone_settingsextension.hh:1687
TimeSlot _secTimeSlot
The secondary channel time-slot.
Definition anytone_settingsextension.hh:1752
TimeSlot
Possible repeater time-slots.
Definition anytone_settingsextension.hh:1706
TimeSlot timeSlot
Time-slot of the primary repeater channel.
Definition anytone_settingsextension.hh:1695
void enable(bool enable)
Enables/disables the simplex repeater.
Definition anytone_settingsextension.cc:2536
bool _monitor
If enabled, the radio will monitor the channel.
Definition anytone_settingsextension.hh:1750
TimeSlot secTimeSlot
Time-slot of the secondary repeater channel.
Definition anytone_settingsextension.hh:1699
void setSecTimeSlot(TimeSlot ts)
Sets the secondary channel time-slot.
Definition anytone_settingsextension.cc:2573
bool monitor
Enables/disables the repeater monitor.
Definition anytone_settingsextension.hh:1691
ColorCode
Possible color code settings.
Definition anytone_settingsextension.hh:1712
bool monitorEnabled() const
If true, repeater monitoring is enabled.
Definition anytone_settingsextension.cc:2544
void setTimeSlot(TimeSlot ts)
Sets the primary (simplex) channel time-slot.
Definition anytone_settingsextension.cc:2560
void enableMonitor(bool enable)
Enables/disables repeater monitoring.
Definition anytone_settingsextension.cc:2548
ColorCode _colorCode
The color code match mode.
Definition anytone_settingsextension.hh:1753
bool _enabled
If true, the simplex repeater is enabled.
Definition anytone_settingsextension.hh:1749
AnytoneRepeaterSettingsExtension(QObject *parent=nullptr)
Default constructor.
Definition anytone_settingsextension.cc:2514
Implements the ranging/roaming settings extension of AnyTone devices.
Definition anytone_settingsextension.hh:1270
RoamStart roamStart
Auto-roaming start condition.
Definition anytone_settingsextension.hh:1288
Interval _repeaterCheckInterval
The repeater check interval in seconds.
Definition anytone_settingsextension.hh:1404
void setAutoRoamPeriod(Interval min)
Sets the auto-roam period in minutes.
Definition anytone_settingsextension.cc:272
RoamingZoneReference * _defaultRoamingZone
The default roaming zone.
Definition anytone_settingsextension.hh:1412
unsigned int notificationCount
Repeater-check notification count.
Definition anytone_settingsextension.hh:1315
bool autoRoam
Enables auto-roaming.
Definition anytone_settingsextension.hh:1276
RoamStart _roamingReturnCondition
Auto-roaming return condition.
Definition anytone_settingsextension.hh:1408
bool repeaterRangeCheckEnabled() const
Returns true if the repeater range check is enabled.
Definition anytone_settingsextension.cc:292
RoamStart roamReturn
Auto-roaming end/return condition.
Definition anytone_settingsextension.hh:1292
void setRoamingReturnCondition(RoamStart start)
Sets the auto-roaming return condition.
Definition anytone_settingsextension.cc:355
bool rangeCheck
Repeater range check.
Definition anytone_settingsextension.hh:1296
unsigned int _notificationCount
Number of notifications.
Definition anytone_settingsextension.hh:1410
Interval checkInterval
Repeater range check interval in seconds.
Definition anytone_settingsextension.hh:1300
AnytoneRoamingSettingsExtension(QObject *parent=nullptr)
Constructor.
Definition anytone_settingsextension.cc:233
bool _notification
Repeater check notification.
Definition anytone_settingsextension.hh:1409
RoamStart _roamingStartCondition
Auto-roaming start condition.
Definition anytone_settingsextension.hh:1407
RoamStart
Possible roaming start conditions.
Definition anytone_settingsextension.hh:1325
Interval _autoRoamDelay
The auto-roam delay in seconds.
Definition anytone_settingsextension.hh:1402
void setRoamingStartCondition(RoamStart start)
Sets the auto-roaming start condition.
Definition anytone_settingsextension.cc:343
void setRepeaterRangeCheckCount(unsigned int count)
Sets the number of retries before giving up.
Definition anytone_settingsextension.cc:319
void setRepeaterCheckInterval(Interval sec)
Sets the repeater check interval in seconds.
Definition anytone_settingsextension.cc:307
Interval repeaterCheckInterval() const
Returns the repeater check interval in seconds.
Definition anytone_settingsextension.cc:303
Interval _autoRoamPeriod
The auto-roam period in minutes.
Definition anytone_settingsextension.hh:1401
void setOutOfRangeAlert(OutOfRangeAlert type)
Sets the repeater out-of-range alert type.
Definition anytone_settingsextension.cc:331
bool _autoRoam
Enables auto roaming.
Definition anytone_settingsextension.hh:1400
void setNotificationCount(unsigned int n)
Sets the number of repeater-check notifications.
Definition anytone_settingsextension.cc:378
unsigned int retryCount
Retry count.
Definition anytone_settingsextension.hh:1304
Interval autoRoamPeriod
The auto-roaming period in minutes.
Definition anytone_settingsextension.hh:1280
bool _gpsRoaming
Enables GPS roaming.
Definition anytone_settingsextension.hh:1411
OutOfRangeAlert outOfRangeAlert
Repeater out-of-range alert type.
Definition anytone_settingsextension.hh:1307
bool notificationEnabled() const
Returns true, if the repeater check notification is enabled.
Definition anytone_settingsextension.cc:363
void enableAutoRoam(bool enable)
Enables/disables auto-roaming.
Definition anytone_settingsextension.cc:260
bool gpsRoaming
GPS roaming enabled.
Definition anytone_settingsextension.hh:1321
OutOfRangeAlert _outOfRangeAlert
Type of the out-out-range alert.
Definition anytone_settingsextension.hh:1406
RoamingZoneReference * defaultZone
The default roaming zone.
Definition anytone_settingsextension.hh:1318
void enableRepeaterRangeCheck(bool enable)
Enables/disables repeater range check.
Definition anytone_settingsextension.cc:296
unsigned int repeaterRangeCheckCount() const
Number of retries before givnig up.
Definition anytone_settingsextension.cc:315
OutOfRangeAlert
Possible repeater out-of-range alerts.
Definition anytone_settingsextension.hh:1331
RoamStart roamingReturnCondition() const
Returns the auto-roaming return condition.
Definition anytone_settingsextension.cc:351
Interval autoRoamDelay
The auto-roam delay.
Definition anytone_settingsextension.hh:1284
RoamStart roamingStartCondition() const
Returns the auto-roaming start condition.
Definition anytone_settingsextension.cc:339
void enableGPSRoaming(bool enable)
Enables/disables GPS roaming.
Definition anytone_settingsextension.cc:390
void enableNotification(bool enable)
Enables/disables the repeater-check notification.
Definition anytone_settingsextension.cc:367
bool notification
Repeater-check notification.
Definition anytone_settingsextension.hh:1311
void setAutoRoamDelay(Interval sec)
Sets the auto-roam delay in seconds.
Definition anytone_settingsextension.cc:284
unsigned int _repeaterRangeCheckCount
Number of range checks before giving up.
Definition anytone_settingsextension.hh:1405
bool _repeaterRangeCheck
Enables the repeater range-check.
Definition anytone_settingsextension.hh:1403
Implements the satellite mode settings for the BTECH DMR-6X2UV PRO.
Definition anytone_settingsextension.hh:1763
void setPower(Channel::Power power)
Sets transmit power in satellite mode.
Definition anytone_settingsextension.cc:2622
AnytoneSatelliteSettingsExtension(QObject *parent=nullptr)
Default constructor.
Definition anytone_settingsextension.cc:2599
unsigned int squelch
Enables/disables the repeater monitor.
Definition anytone_settingsextension.hh:1772
void setSquelch(unsigned int squelch)
Sets squelch in satellite mode.
Definition anytone_settingsextension.cc:2636
Channel::Power power
Transmit power in satellite mode.
Definition anytone_settingsextension.hh:1768
ConfigItem * clone() const
Clones this item.
Definition anytone_settingsextension.cc:2606
Channel::Power _power
Transmit power in satellite mode.
Definition anytone_settingsextension.hh:1792
unsigned int _squelch
FM squelch in satellite mode.
Definition anytone_settingsextension.hh:1794
AnytoneToneSettingsExtension * _toneSettings
The tone settings.
Definition anytone_settingsextension.hh:2089
Frequency _maxVFOScanFrequencyVHF
The maximum VHF VFO-scan frequency in Hz.
Definition anytone_settingsextension.hh:2121
void setMaxVFOScanFrequencyVHF(Frequency hz)
Sets the maximum VFO scan frequency for the VHF band in Hz.
Definition anytone_settingsextension.cc:652
VFOMode
Possible VFO modes.
Definition anytone_settingsextension.hh:1924
void setVFOStep(Frequency step)
Sets the VFO tuning step in kHz.
Definition anytone_settingsextension.cc:676
FanControl fan() const
Returns the fan control setting.
Definition anytone_settingsextension.cc:760
Frequency maxVFOScanFrequencyUHF
The maximum UHF VFO-scan frequency in Hz.
Definition anytone_settingsextension.hh:1838
STEType
All possible STE (squelch tail eliminate) types.
Definition anytone_settingsextension.hh:1936
AnytonePowerSaveSettingsExtension * powerSaveSettings
The power-save settings.
Definition anytone_settingsextension.hh:1885
Frequency minVFOScanFrequencyUHF
The minimum UHF VFO-scan frequency in Hz.
Definition anytone_settingsextension.hh:1836
AnytoneAudioSettingsExtension * audioSettings
The audio settings.
Definition anytone_settingsextension.hh:1893
Frequency vfoStep
The VFO tuning step-size in kHz.
Definition anytone_settingsextension.hh:1850
ZoneReference _zoneB
The current zone for VFO B.
Definition anytone_settingsextension.hh:2115
AnytoneKeySettingsExtension * _keySettings
The key settings.
Definition anytone_settingsextension.hh:2087
ZoneReference * zoneB()
Returns a reference to the current zone for VFO B.
bool _proMode
The "pro mode" flag.
Definition anytone_settingsextension.hh:2128
bool _maintainCallChannel
Maintains the call channel.
Definition anytone_settingsextension.hh:2129
ZoneReference * zoneB
The current zone for VFO B.
Definition anytone_settingsextension.hh:1831
ZoneReference _zoneA
The current zone for VFO A.
Definition anytone_settingsextension.hh:2114
void setMinVFOScanFrequencyVHF(Frequency hz)
Sets the minimum VFO scan frequency for the VHF band in Hz.
Definition anytone_settingsextension.cc:641
VFOScanType
Encodes the possible VFO scan types.
Definition anytone_settingsextension.hh:1918
AnytonePowerSaveSettingsExtension * _powerSaveSettings
The power-save settings.
Definition anytone_settingsextension.hh:2085
Q_INVOKABLE AnytoneSettingsExtension(QObject *parent=nullptr)
Constructor.
Definition anytone_settingsextension.cc:406
AnytoneBootSettingsExtension * _bootSettings
Returns power setting for satellite mode.
Definition anytone_settingsextension.hh:2083
void enableProMode(bool enable)
Enables/disables the "pro mode".
Definition anytone_settingsextension.cc:737
VFO
Possible VFOs.
Definition anytone_settingsextension.hh:1930
AnytoneAutoRepeaterSettingsExtension * _autoRepeaterSettings
The auto-repeater settings.
Definition anytone_settingsextension.hh:2097
AnytoneGPSSettingsExtension * gpsSettings
The GPS settings.
Definition anytone_settingsextension.hh:1901
bool _subChannel
If true, the sub-channel is enabled.
Definition anytone_settingsextension.hh:2117
AnytoneDMRSettingsExtension * dmrSettings
The DMR settings.
Definition anytone_settingsextension.hh:1899
AnytoneMenuSettingsExtension * menuSettings
The menu settings.
Definition anytone_settingsextension.hh:1895
VFOScanType _vfoScanType
The VFO scan-type property.
Definition anytone_settingsextension.hh:2111
void enableSubChannel(bool enable)
Enables/disables the sub-channel.
Definition anytone_settingsextension.cc:606
VFOMode modeA
The mode of VFO A.
Definition anytone_settingsextension.hh:1822
AnytoneAudioSettingsExtension * _audioSettings
The audio settings.
Definition anytone_settingsextension.hh:2093
void setVFOScanType(VFOScanType type)
Sets the VFO scan type.
Definition anytone_settingsextension.cc:541
void enableMaintainCallChannel(bool enable)
Enables/disables maintaining the call-channel.
Definition anytone_settingsextension.cc:751
AnytoneMenuSettingsExtension * _menuSettings
The menu settings.
Definition anytone_settingsextension.hh:2095
bool subChannel
If true, the sub-channel is enabled.
Definition anytone_settingsextension.hh:1813
bool _keepLastCaller
If true, the last caller is kept on channel switch.
Definition anytone_settingsextension.hh:2122
AnytoneGPSSettingsExtension * _gpsSettings
The GSP settings.
Definition anytone_settingsextension.hh:2101
AnytoneRepeaterSettingsExtension * repeaterSettings() const
A reference to the simplex repeater settings.
Definition anytone_settingsextension.cc:526
AnytoneAutoRepeaterSettingsExtension * autoRepeaterSettings
The auto-repeater settings.
Definition anytone_settingsextension.hh:1897
AnytoneRepeaterSettingsExtension * _repeaterSettings
The repeater settings.
Definition anytone_settingsextension.hh:2107
Interval _steDuration
STE duration.
Definition anytone_settingsextension.hh:2126
AnytoneRoamingSettingsExtension * _roamingSettings
The roaming settings.
Definition anytone_settingsextension.hh:2103
AnytoneKeySettingsExtension * keySettings
The key settings.
Definition anytone_settingsextension.hh:1887
bool keepLastCallerEnabled() const
Returns true if the last caller is kept on channel switch.
Definition anytone_settingsextension.cc:660
void setTBSTFrequency(Frequency Hz)
Sets the TBST frequency in Hz.
Definition anytone_settingsextension.cc:723
void setSTEType(STEType type)
Sets the STE (squelch tail elimination) type.
Definition anytone_settingsextension.cc:688
AnytoneBootSettingsExtension * bootSettings
The boot settings.
Definition anytone_settingsextension.hh:1883
AnytoneBluetoothSettingsExtension * _bluetoothSettings
The bluetooth settings.
Definition anytone_settingsextension.hh:2105
Frequency _vfoStep
The VFO tuning step in kHz.
Definition anytone_settingsextension.hh:2123
bool subChannelEnabled() const
Returns true if the sub-channel is enabled.
Definition anytone_settingsextension.cc:602
AnytoneBluetoothSettingsExtension * bluetoothSettings
The Bluetooth settings.
Definition anytone_settingsextension.hh:1905
VFOMode _modeB
Mode of VFO B.
Definition anytone_settingsextension.hh:2113
void enableKeepLastCaller(bool enable)
Enables/disables keeping the last caller on channel switch.
Definition anytone_settingsextension.cc:664
void setModeB(VFOMode mode)
Sets the mode for VFO B.
Definition anytone_settingsextension.cc:565
AnytoneToneSettingsExtension * toneSettings
The tone settings.
Definition anytone_settingsextension.hh:1889
void setFan(FanControl ctlr)
Sets the fan control.
Definition anytone_settingsextension.cc:765
Frequency tbstFrequency() const
Returns the TBST frequency in Hz.
Definition anytone_settingsextension.cc:719
void setMinVFOScanFrequencyUHF(Frequency hz)
Sets the minimum VFO scan frequency for the UHF band in Hz.
Definition anytone_settingsextension.cc:618
AnytoneDMRSettingsExtension * _dmrSettings
The DMR settings.
Definition anytone_settingsextension.hh:2099
VFOMode modeB
The mode of VFO B.
Definition anytone_settingsextension.hh:1824
void setSelectedVFO(VFO vfo)
Sets the selected VFO.
Definition anytone_settingsextension.cc:594
Frequency _maxVFOScanFrequencyUHF
The maximum UHF VFO-scan frequency in Hz.
Definition anytone_settingsextension.hh:2119
STEType steType
The STE type.
Definition anytone_settingsextension.hh:1855
bool keepLastCaller
The keep-last-caller setting.
Definition anytone_settingsextension.hh:1846
AnytoneDisplaySettingsExtension * displaySettings
The display settings.
Definition anytone_settingsextension.hh:1891
VFOScanType vfoScanType
The VFO scan type.
Definition anytone_settingsextension.hh:1834
double steFrequency
The STE frequency in Hz.
Definition anytone_settingsextension.hh:1859
AnytoneRoamingSettingsExtension * roamingSettings
The Roaming settings.
Definition anytone_settingsextension.hh:1903
Interval steDuration
The STE duration in ms.
Definition anytone_settingsextension.hh:1864
Frequency minVFOScanFrequencyVHF
The minimum VHF VFO-scan frequency in Hz.
Definition anytone_settingsextension.hh:1840
void setSTEDuration(Interval intv)
Sets the STE duration.
Definition anytone_settingsextension.cc:711
void setModeA(VFOMode mode)
Sets the mode for VFO A.
Definition anytone_settingsextension.cc:553
void setSTEFrequency(double freq)
Sets the STE (squelch tail elimination) frequency in Hz.
Definition anytone_settingsextension.cc:699
VFO _selectedVFO
The current VFO.
Definition anytone_settingsextension.hh:2116
Frequency _minVFOScanFrequencyUHF
The minimum UHF VFO-scan frequency in Hz.
Definition anytone_settingsextension.hh:2118
void setMaxVFOScanFrequencyUHF(Frequency hz)
Sets the maximum VFO scan frequency for the UHF band in Hz.
Definition anytone_settingsextension.cc:629
Frequency _minVFOScanFrequencyVHF
The minimum VHF VFO-scan frequency in Hz.
Definition anytone_settingsextension.hh:2120
Frequency maxVFOScanFrequencyVHF
The maximum VHF VFO-scan frequency in Hz.
Definition anytone_settingsextension.hh:1842
STEType _steType
The STE type.
Definition anytone_settingsextension.hh:2124
AnytoneSatelliteSettingsExtension * _satelliteSettings
The satellite settings.
Definition anytone_settingsextension.hh:2109
AnytoneDisplaySettingsExtension * _displaySettings
The display settings.
Definition anytone_settingsextension.hh:2091
ZoneReference * zoneA()
Returns a reference to the current zone for VFO A.
double _steFrequency
STE frequency in Hz.
Definition anytone_settingsextension.hh:2125
bool proModeEnabled() const
Returns true, if the "pro mode" is enabled.
Definition anytone_settingsextension.cc:732
VFO selectedVFO
The current active VFO.
Definition anytone_settingsextension.hh:1817
VFOMode _modeA
Mode of VFO A.
Definition anytone_settingsextension.hh:2112
Frequency _tbstFrequency
The TBST frequency in Hz.
Definition anytone_settingsextension.hh:2127
ZoneReference * zoneA
The current zone for VFO A.
Definition anytone_settingsextension.hh:1829
bool maintainCallChannelEnabled() const
Returns true if the call-channel is maintained.
Definition anytone_settingsextension.cc:746
Implements the tone settings extension of AnyTone devices.
Definition anytone_settingsextension.hh:404
bool _totNotification
TOT notification enabled.
Definition anytone_settingsextension.hh:431
AnytoneToneSettingsExtension(QObject *parent=nullptr)
Empty constructor.
Definition anytone_settingsextension.cc:1298
bool wxAlarm
Enables weather alarm tone.
Definition anytone_settingsextension.hh:411
bool tot
Enables transmit timeout notification (5s before TOT).
Definition anytone_settingsextension.hh:409
bool _wxAlarm
Weather alarm.
Definition anytone_settingsextension.hh:432
void enableTOTNotification(bool enable)
Enables/disables the transmit timeout notification (5s before TOT).
Definition anytone_settingsextension.cc:1320
ConfigItem * clone() const
Clones this item.
Definition anytone_settingsextension.cc:1304
void enableWXAlarm(bool enable)
Enables/disables weather alarm.
Definition anytone_settingsextension.cc:1333
bool totNotification() const
Returns true if the transmit timeout notification is enabled (5s before TOT).
Definition anytone_settingsextension.cc:1315
The base class of all channels (analog and digital) of a codeplug configuration.
Definition channel.hh:38
ConfigExtension(QObject *parent=nullptr)
Hidden constructor.
Definition configobject.cc:1244
Parse context for config objects.
Definition configobject.hh:43
Base class for all configuration objects (channels, zones, contacts, etc).
Definition configobject.hh:35
ConfigItem(QObject *parent=nullptr)
Hidden constructor.
Definition configobject.cc:158
ConfigObjectList(const QMetaObject &elementTypes=ConfigItem::staticMetaObject, QObject *parent=nullptr)
Hidden constructor.
Definition configobject.cc:1521
ConfigObjectReference(const QMetaObject &elementType=ConfigObject::staticMetaObject, QObject *parent=nullptr)
Hidden constructor.
Definition configreference.cc:17
ConfigObject(QObject *parent=nullptr)
Specifies the prefix for every ID assigned to every object during serialization.
Definition configobject.cc:1151
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
Base class for all Radio objects.
Definition radio.hh:32
Implements a reference to a roaming zone.
Definition configreference.hh:285
Implements a reference to a zone.
Definition configreference.hh:307
Represents a zone within the generic configuration.
Definition zone.hh:15
Helper type to encode frequencies without any rounding error.
Definition frequency.hh:107