10#include "bootsettings.hh"
11#include "tyt_extensions.hh"
82 static constexpr unsigned int size() {
return 0x0040; }
110 virtual bool rxOnly()
const;
163 virtual bool vox()
const;
251 virtual QString
name()
const;
264 struct Limit:
public Element::Limit {
273 static constexpr Offset::Bit
mode() {
return {0x0000, 0}; }
274 static constexpr Offset::Bit
bandwidth() {
return {0x0000, 2}; }
275 static constexpr Offset::Bit autoscan() {
return {0x0000, 4}; }
276 static constexpr Offset::Bit loneworker() {
return {0x0000, 8}; }
277 static constexpr Offset::Bit
talkaround() {
return {0x0001, 0}; }
278 static constexpr Offset::Bit rxonly() {
return {0x0001, 1}; }
279 static constexpr Offset::Bit timeslot() {
return {0x0001, 2}; }
280 static constexpr Offset::Bit colorcode() {
return {0x0001, 4}; }
281 static constexpr Offset::Bit
privacyIndex() {
return {0x0002, 0}; }
282 static constexpr Offset::Bit
privacyType() {
return {0x0002, 4}; }
285 static constexpr Offset::Bit
rxRefFrequency() {
return {0x0003, 0}; }
287 static constexpr Offset::Bit
displayPTTId() {
return {0x0003, 7}; }
288 static constexpr Offset::Bit
txRefFrequency() {
return {0x0004, 0}; }
289 static constexpr Offset::Bit
vox() {
return {0x0004, 4}; }
290 static constexpr Offset::Bit
admitCriterion() {
return {0x0004, 6}; }
291 static constexpr unsigned int contactIndex() {
return 0x0006; }
292 static constexpr Offset::Bit
txTimeOut() {
return {0x0008, 0}; }
295 static constexpr unsigned int scanListIndex() {
return 0x000b; }
298 static constexpr unsigned int dtmfDecode() {
return 0x000e; }
299 static constexpr unsigned int rxFrequency() {
return 0x0010; }
300 static constexpr unsigned int txFrequency() {
return 0x0014; }
301 static constexpr unsigned int rxSignaling() {
return 0x018; }
302 static constexpr unsigned int txSignaling() {
return 0x01a; }
305 static constexpr Offset::Bit
txGPSInfo() {
return {0x001f, 0}; }
306 static constexpr Offset::Bit
rxGPSInfo() {
return {0x001f, 1}; }
307 static constexpr unsigned int name() {
return 0x0020; }
321 GroupCall=1, PrivateCall=2, AllCall=3
335 static constexpr unsigned int size() {
return 0x000024; }
340 virtual uint32_t
dmrId()
const;
355 virtual QString
name()
const;
357 virtual void setName(
const QString &nm);
375 static constexpr unsigned int dmrId() {
return 0x0000; }
376 static constexpr Bit
callType() {
return {0x0003, 0}; }
377 static constexpr Bit
ringTone() {
return {0x0003, 5}; }
378 static constexpr unsigned int name() {
return 0x0004; }
405 virtual QString
name()
const;
444 virtual QString
name()
const;
446 virtual void setName(
const QString &nm);
481 virtual QString
name()
const;
483 virtual void setName(
const QString &nm);
551 virtual TyTSettingsExtension::MonitorType
monitorType()
const;
553 virtual void setMonitorType(TyTSettingsExtension::MonitorType type);
595 virtual uint32_t
dmrId()
const;
702 static constexpr unsigned bootPasswordLength() {
return 8; }
709 static constexpr Bit bootImageEnabled() {
return {0x0042,4}; }
856 virtual bool scan()
const;
885 virtual bool power()
const;
909 virtual bool vox()
const;
1057 virtual void clear();
1123 virtual QString
name()
const;
1180 static constexpr unsigned int size() {
return 0x00b0; }
1194 virtual QByteArray
basicKey(
unsigned n)
const;
1196 virtual void setBasicKey(
unsigned n,
const QByteArray &key);
1218 static constexpr unsigned int advancedKeys() {
return 0x0000; }
1219 static constexpr unsigned int betweenAdvancedKeys() {
return 0x0010; }
1220 static constexpr unsigned int basicKeys() {
return 0x0090; }
1221 static constexpr unsigned int betweenBasicKeys() {
return 0x0002; }
1239 static constexpr unsigned int size() {
return 0x00120; }
1246 virtual QString
text()
const;
1258 static constexpr unsigned int length() {
return 144; }
1290 static constexpr unsigned int messages() {
return 50; }
1304 virtual void clear();
BootDisplay
What to display during boot.
Definition bootsettings.hh:50
The base class of all channels (analog and digital) of a codeplug configuration.
Definition channel.hh:38
Base class for all codeplug contexts.
Definition codeplug.hh:331
Represents the abstract base class of all codeplug elements.
Definition codeplug.hh:65
Element(uint8_t *ptr, size_t size)
Hidden constructor.
Definition codeplug.cc:56
Certain flags passed to CodePlug::encode to control the transfer and encoding of the codeplug.
Definition codeplug.hh:24
Codeplug(QObject *parent=nullptr)
Hidden default constructor.
Definition codeplug.cc:872
Implements the generic extension for the codeplug to represent some commercial features of DMR.
Definition commercial_extension.hh:11
The config class, representing the codeplug configuration.
Definition config.hh:70
uint32_t size() const
Returns the total size of the DFU file.
Definition dfufile.cc:52
TimeSlot
Possible timeslots for digital channels.
Definition channel.hh:448
Implements a stack of error messages to provide a pretty formatted error traceback.
Definition errorstack.hh:43
Bandwidth
Possible bandwidth of an analog channel.
Definition channel.hh:288
Represents a time interval.
Definition interval.hh:11
Some simple class implementing a [1-10] level setting.
Definition level.hh:15
Generic representation of a RX group list.
Definition rxgrouplist.hh:14
Simple range class representing some range in some data type.
Definition ranges.hh:14
Extension collecting all settings associated with SMS messages.
Definition smsextension.hh:55
Represents a SMS message template (pre defined message).
Definition smsextension.hh:11
Generic representation of a scan list.
Definition scanlist.hh:15
RefFrequency
Possible reference frequency settings for RX & TX.
Definition tyt_extensions.hh:54
virtual void enableTalkaround(bool enable)
Enables/disables talkaround for this channel.
Definition tyt_codeplug.cc:143
virtual void setPositioningSystemIndex(uint8_t idx)
Sets the positioning system index (+1) for this channel.
Definition tyt_codeplug.cc:337
virtual void setTXTimeOutRekeyDelay(uint8_t delay)
Sets the transmit time-out re-key delay in seconds.
Definition tyt_codeplug.cc:301
virtual void setRXSignaling(const SelectiveCall &code)
Sets the CTCSS/DSC signaling for RX.
Definition tyt_codeplug.cc:373
virtual Channel * toChannelObj(const ErrorStack &err=ErrorStack()) const
Constructs a generic Channel object from the codeplug channel.
Definition tyt_codeplug.cc:432
virtual uint8_t txSignalingSystemIndex() const
Returns the signaling system index (+1) for TX.
Definition tyt_codeplug.cc:396
virtual bool rxOnly() const
Returns true if the channel has rx only enabled.
Definition tyt_codeplug.cc:148
virtual void setTXTimeOut(const Interval &tot)
Sets the transmit time-out in seconds.
Definition tyt_codeplug.cc:288
virtual void setTXFrequency(const Frequency &Hz)
Sets the TX frequency in Hz.
Definition tyt_codeplug.cc:364
virtual uint8_t rxSignalingSystemIndex() const
Returns the signaling system index (+1) for RX.
Definition tyt_codeplug.cc:387
virtual uint8_t colorCode() const
Returns the color code of this channel.
Definition tyt_codeplug.cc:171
bool isValid() const
Returns true if channel is valid/enabled.
Definition tyt_codeplug.cc:41
virtual Frequency rxFrequency() const
Returns the RX frequency in Hz.
Definition tyt_codeplug.cc:351
void clear()
Clears/resets the channel and therefore disables it.
Definition tyt_codeplug.cc:46
Mode
Possible modes for the channel, i.e.
Definition tyt_codeplug.hh:39
@ MODE_DIGITAL
Digital channel.
Definition tyt_codeplug.hh:41
@ MODE_ANALOG
Analog channel.
Definition tyt_codeplug.hh:40
virtual void enableDataCallConfirm(bool enable)
Enables/disables data call confirmation for this channel.
Definition tyt_codeplug.cc:212
virtual uint16_t contactIndex() const
Returns the transmit contact index (+1) for this channel.
Definition tyt_codeplug.cc:271
virtual void setTXRefFrequency(TyTChannelExtension::RefFrequency ref)
Sets some weird reference frequency setting for transmission.
Definition tyt_codeplug.cc:248
static constexpr unsigned int size()
Returns the size of the element.
Definition tyt_codeplug.hh:82
virtual void setContactIndex(uint16_t idx)
Sets the transmit contact index (+1) for this channel.
Definition tyt_codeplug.cc:275
virtual Interval txTimeOut() const
Returns the transmit time-out in seconds.
Definition tyt_codeplug.cc:284
virtual void setRXSignalingSystemIndex(uint8_t idx)
Sets the signaling system index (+1) for RX.
Definition tyt_codeplug.cc:391
virtual void setRXFrequency(const Frequency &Hz)
Sets the RX frequency in Hz.
Definition tyt_codeplug.cc:355
virtual bool dataCallConfirm() const
Returns true if the channel has data call confirmation enabled.
Definition tyt_codeplug.cc:208
virtual void setAdmitCriterion(Admit admit)
Sets the admit criterion for this channel.
Definition tyt_codeplug.cc:266
PrivacyType
Possible privacy types.
Definition tyt_codeplug.hh:52
@ PRIV_NONE
No privacy.
Definition tyt_codeplug.hh:53
@ PRIV_BASIC
Basic privacy.
Definition tyt_codeplug.hh:54
@ PRIV_ENHANCED
Enhanced privacy.
Definition tyt_codeplug.hh:55
virtual void setPrivacyIndex(uint8_t ts)
Sets the index of the privacy system (key).
Definition tyt_codeplug.cc:185
virtual bool privateCallConfirm() const
Returns true if the channel has private call confirmation enabled.
Definition tyt_codeplug.cc:199
ChannelElement(uint8_t *ptr, size_t size)
Constructs a channel from the given memory.
Definition tyt_codeplug.cc:24
virtual PrivacyType privacyType() const
Returns the type of the privacy system.
Definition tyt_codeplug.cc:190
virtual Mode mode() const
Returns the mode of the channel.
Definition tyt_codeplug.cc:98
virtual void enablePrivateCallConfirm(bool enable)
Enables/disables private call confirmation for this channel.
Definition tyt_codeplug.cc:203
virtual void enableRXGPSInfo(bool enable)
Enables/disables reception of GPS information for this channel.
Definition tyt_codeplug.cc:418
virtual void setTXSignalingSystemIndex(uint8_t idx)
Sets the signaling system index (+1) for TX.
Definition tyt_codeplug.cc:400
virtual bool txGPSInfo() const
Returns true if the channel transmits GPS information enabled.
Definition tyt_codeplug.cc:405
virtual void enableLoneWorker(bool enable)
Enables/disables lone worker for this channel.
Definition tyt_codeplug.cc:134
virtual void enableRXOnly(bool enable)
Enables/disables rx only for this channel.
Definition tyt_codeplug.cc:152
virtual SelectiveCall rxSignaling() const
Returns the CTCSS/DSC signaling for RX.
Definition tyt_codeplug.cc:369
virtual ~ChannelElement()
Destructor.
Definition tyt_codeplug.cc:36
virtual void enableDisplayPTTId(bool enable)
Enables/disables PTT ID display for this channel.
Definition tyt_codeplug.cc:239
virtual QString name() const
Returns the name of this channel.
Definition tyt_codeplug.cc:423
virtual TyTChannelExtension::RefFrequency rxRefFrequency() const
Returns some weird reference frequency setting for reception.
Definition tyt_codeplug.cc:217
Bandwidth
Bandwidth of the channel.
Definition tyt_codeplug.hh:45
@ BW_25_KHZ
25kHz wide.
Definition tyt_codeplug.hh:48
@ BW_20_KHZ
20 kHz (really?)
Definition tyt_codeplug.hh:47
@ BW_12_5_KHZ
12.5 kHz narrow, (default for binary channels).
Definition tyt_codeplug.hh:46
Admit
TX Admit criterion.
Definition tyt_codeplug.hh:59
@ ADMIT_ALWAYS
Always allow TX.
Definition tyt_codeplug.hh:60
@ ADMIT_COLOR
Allow TX if color-code matches.
Definition tyt_codeplug.hh:63
@ ADMIT_CH_FREE
Allow TX if channel is free.
Definition tyt_codeplug.hh:61
@ ADMIT_TONE
Allow TX if CTCSS tone matches.
Definition tyt_codeplug.hh:62
virtual uint8_t scanListIndex() const
Returns the scan-list index (+1) for this channel.
Definition tyt_codeplug.cc:315
virtual Admit admitCriterion() const
Returns the admit criterion for this channel.
Definition tyt_codeplug.cc:262
virtual TyTChannelExtension::RefFrequency txRefFrequency() const
Returns some weird reference frequency setting for transmission.
Definition tyt_codeplug.cc:244
virtual void setTXSignaling(const SelectiveCall &code)
Sets the CTCSS/DSC signaling for TX.
Definition tyt_codeplug.cc:382
virtual bool linkChannelObj(Channel *c, Context &ctx, const ErrorStack &err=ErrorStack()) const
Links a previously constructed channel to the rest of the configuration.
Definition tyt_codeplug.cc:515
virtual DMRChannel::TimeSlot timeSlot() const
Returns the time slot of this channel.
Definition tyt_codeplug.cc:157
virtual bool txTimeOutDisabled() const
Returns true, if the transmit time out is disabled.
Definition tyt_codeplug.cc:280
virtual bool displayPTTId() const
Returns true if the channel has display PTT ID enabled.
Definition tyt_codeplug.cc:235
virtual FMChannel::Bandwidth bandwidth() const
Returns the bandwidth of the (analog) channel.
Definition tyt_codeplug.cc:107
virtual uint8_t positioningSystemIndex() const
Returns the positioning system index (+1) for this channel.
Definition tyt_codeplug.cc:333
virtual void setPrivacyType(PrivacyType type)
Sets the type of the privacy system.
Definition tyt_codeplug.cc:194
virtual bool talkaround() const
Returns true if the channel has talkaround enabled.
Definition tyt_codeplug.cc:139
virtual uint8_t privacyIndex() const
Returns the index of the privacy system (key).
Definition tyt_codeplug.cc:181
virtual void setScanListIndex(uint8_t idx)
Sets the scan-list index (+1) for this channel.
Definition tyt_codeplug.cc:319
virtual void resetTXTimeOut()
Disables the transmit timeout.
Definition tyt_codeplug.cc:292
virtual void setRXRefFrequency(TyTChannelExtension::RefFrequency ref)
Sets some weird reference frequency setting for reception.
Definition tyt_codeplug.cc:221
virtual void setTimeSlot(DMRChannel::TimeSlot ts)
Sets the time slot of this channel.
Definition tyt_codeplug.cc:163
virtual void enableAutoScan(bool enable)
Enables/disables auto scan for this channel.
Definition tyt_codeplug.cc:125
virtual void enableVOX(bool enable)
Enables/disables VOX for this channel.
Definition tyt_codeplug.cc:257
virtual void setBandwidth(FMChannel::Bandwidth bw)
Sets the bandwidth of the (analog) channel.
Definition tyt_codeplug.cc:113
virtual bool dtmfDecode(uint8_t idx) const
Returns true if the channel has DTMF decoding enabled.
Definition tyt_codeplug.cc:342
virtual void setMode(Mode setMode)
Sets the mode of the channel.
Definition tyt_codeplug.cc:102
virtual SelectiveCall txSignaling() const
Returns the CTCSS/DSC signaling for TX.
Definition tyt_codeplug.cc:378
virtual Frequency txFrequency() const
Returns the TX frequency in Hz.
Definition tyt_codeplug.cc:360
virtual void setEmergencySystemIndex(uint8_t idx)
Sets the emergency system index (+1) for this channel.
Definition tyt_codeplug.cc:310
virtual uint8_t emergencySystemIndex() const
Returns the emergency system index (+1) for this channel.
Definition tyt_codeplug.cc:306
virtual bool emergencyAlarmACK() const
Returns true if the channel has alarm confirmation enabled.
Definition tyt_codeplug.cc:226
virtual void setDTMFDecode(uint8_t idx, bool enable)
Enables/disables DTMF decoding this channel.
Definition tyt_codeplug.cc:346
virtual void enableEmergencyAlarmACK(bool enable)
Enables/disables alarm confirmation for this channel.
Definition tyt_codeplug.cc:230
virtual void setGroupListIndex(uint8_t idx)
Sets the RX group list index (+1) for this channel.
Definition tyt_codeplug.cc:328
virtual uint8_t txTimeOutRekeyDelay() const
Returns the transmit time-out re-key delay in seconds.
Definition tyt_codeplug.cc:297
virtual void setName(const QString &setName)
Sets the name of this channel.
Definition tyt_codeplug.cc:427
virtual void setColorCode(uint8_t ts)
Sets the color code of this channel.
Definition tyt_codeplug.cc:175
virtual bool rxGPSInfo() const
Returns true if the channel receives GPS information enabled.
Definition tyt_codeplug.cc:414
virtual void fromChannelObj(const Channel *c, Context &ctx)
Initializes this codeplug channel from the given generic configuration.
Definition tyt_codeplug.cc:577
virtual bool loneWorker() const
Returns true if the channel has lone worker enabled.
Definition tyt_codeplug.cc:130
virtual void enableTXGPSInfo(bool enable)
Enables/disables transmission of GPS information for this channel.
Definition tyt_codeplug.cc:409
virtual bool vox() const
Returns true if the channel has VOX enabled.
Definition tyt_codeplug.cc:253
virtual uint8_t groupListIndex() const
Returns the RX group list index (+1) for this channel.
Definition tyt_codeplug.cc:324
virtual bool autoScan() const
Returns true if the channel has auto scan enabled.
Definition tyt_codeplug.cc:121
virtual void setTXTimeOut(unsigned ms)
Sets the TX time-out in ms.
Definition tyt_codeplug.cc:2542
virtual void enableRemoteMonitor(bool enable)
Enables/disables remote monitor.
Definition tyt_codeplug.cc:2515
virtual void enableEmergencyRemoteMonitor(bool enable)
Enables/disables emergency remote monitor.
Definition tyt_codeplug.cc:2506
virtual bool remoteMonitor() const
Returns true if remote monitor is enabled.
Definition tyt_codeplug.cc:2511
virtual ~EmergencySettingsElement()
Destructor.
Definition tyt_codeplug.cc:2485
virtual void clear()
Abstract method to reset the element within the codeplug.
Definition tyt_codeplug.cc:2490
EmergencySettingsElement(uint8_t *ptr, size_t size)
Hidden constructor.
Definition tyt_codeplug.cc:2473
virtual void enableRadioDisable(bool enable)
Enables/disables radio disable.
Definition tyt_codeplug.cc:2524
virtual unsigned messageLimit() const
Returns the message limit.
Definition tyt_codeplug.cc:2547
virtual void setMessageLimit(unsigned limit)
Sets the message limit.
Definition tyt_codeplug.cc:2551
virtual unsigned remoteMonitorDuration() const
Returns the remote monitor duration in seconds.
Definition tyt_codeplug.cc:2529
virtual unsigned txTimeOut() const
Returns the TX time-out in ms.
Definition tyt_codeplug.cc:2538
virtual bool radioDisable() const
Returns true if radio disable is enabled.
Definition tyt_codeplug.cc:2520
virtual void setRemoteMonitorDuration(unsigned sec)
Sets the remote monitor duration in seconds.
Definition tyt_codeplug.cc:2533
virtual bool emergencyRemoteMonitor() const
Returns true if emergency remote monitor is enabled.
Definition tyt_codeplug.cc:2502
virtual void setPoliteRetries(unsigned num)
Sets the number of polite retries.
Definition tyt_codeplug.cc:2635
virtual ~EmergencySystemElement()
Destructor.
Definition tyt_codeplug.cc:2571
AlarmType
Possible alarm type for the system.
Definition tyt_codeplug.hh:1096
@ REGULAR
Regular alarm sound.
Definition tyt_codeplug.hh:1098
@ SILENT
Silent alarm.
Definition tyt_codeplug.hh:1099
@ SILENT_W_VOICE
silent alarm with voice.
Definition tyt_codeplug.hh:1100
@ DISABLED
No alarm at all.
Definition tyt_codeplug.hh:1097
virtual AlarmType alarmType() const
Returns the alarm type of the system.
Definition tyt_codeplug.cc:2604
virtual unsigned politeRetries() const
Returns the number of polite retries.
Definition tyt_codeplug.cc:2631
bool isValid() const
Returns true if the pointer is not null.
Definition tyt_codeplug.cc:2576
EmergencySystemElement(uint8_t *ptr, size_t size)
Hidden constructor.
Definition tyt_codeplug.cc:2559
virtual void setAlarmMode(AlarmMode mode)
Sets the alarm mode of the system.
Definition tyt_codeplug.cc:2617
virtual void setName(const QString &name)
Sets the name of the system.
Definition tyt_codeplug.cc:2599
virtual uint16_t revertChannelIndex() const
Returns the index of the revert channel.
Definition tyt_codeplug.cc:2653
virtual void setHotMICDuration(unsigned sec)
Sets the hot MIC duration in seconds.
Definition tyt_codeplug.cc:2644
virtual bool revertChannelIsSelected() const
Returns true if the revert channel is the selected one.
Definition tyt_codeplug.cc:2649
virtual void revertChannelSelected()
Sets revert channel to selected channel.
Definition tyt_codeplug.cc:2661
AlarmMode
Possible alarm modes for the system.
Definition tyt_codeplug.hh:1103
@ ALARM_W_VOICE
Alarm + call + voice?
Definition tyt_codeplug.hh:1106
@ ALARM_W_CALL
Alarm + call.
Definition tyt_codeplug.hh:1105
@ ALARM
Just alarm.
Definition tyt_codeplug.hh:1104
virtual void setRevertChannelIndex(uint16_t idx)
Sets the revert channel index.
Definition tyt_codeplug.cc:2657
virtual unsigned impoliteRetries() const
Returns the number of impolite retries.
Definition tyt_codeplug.cc:2622
void clear()
Abstract method to reset the element within the codeplug.
Definition tyt_codeplug.cc:2581
virtual void setImpoliteRetries(unsigned num)
Sets the number of impolite retries.
Definition tyt_codeplug.cc:2626
virtual unsigned hotMICDuration() const
Returns the hot MIC duration in seconds.
Definition tyt_codeplug.cc:2640
virtual void setAlarmType(AlarmType type)
Sets the alarm type of the system.
Definition tyt_codeplug.cc:2608
virtual QString name() const
Returns the name of the system.
Definition tyt_codeplug.cc:2595
virtual AlarmMode alarmMode() const
Returns the alarm mode of the system.
Definition tyt_codeplug.cc:2613
virtual QByteArray enhancedKey(unsigned n) const
Returns the n-th "enhanced" key (128bit).
Definition tyt_codeplug.cc:2700
virtual QByteArray basicKey(unsigned n) const
Returns the n-th "basic" key (16bit).
Definition tyt_codeplug.cc:2725
virtual void setBasicKey(unsigned n, const QByteArray &key)
Sets the n-th "basic" key (16bit).
Definition tyt_codeplug.cc:2733
static constexpr unsigned int size()
Returns the size of the element.
Definition tyt_codeplug.hh:1180
virtual bool isEnhancedKeySet(unsigned n) const
Returns true if the n-th "enhanced" key (128bit) is set.
Definition tyt_codeplug.cc:2691
virtual void setEnhancedKey(unsigned n, const QByteArray &key)
Sets the n-th "enhanced" key (128bit).
Definition tyt_codeplug.cc:2708
virtual bool updateCommercialExt(Context &ctx)
Updates the commercial extension.
Definition tyt_codeplug.cc:2758
virtual bool fromCommercialExt(CommercialExtension *encr, Context &ctx)
Encodes given commercial extension.
Definition tyt_codeplug.cc:2743
virtual ~EncryptionElement()
Destructor.
Definition tyt_codeplug.cc:2681
virtual bool linkCommercialExt(CommercialExtension *ext, Context &ctx)
Links the given encryption extension.
Definition tyt_codeplug.cc:2785
EncryptionElement(uint8_t *ptr, size_t size)
Hidden constructor.
Definition tyt_codeplug.cc:2669
void clear()
Abstract method to reset the element within the codeplug.
Definition tyt_codeplug.cc:2686
virtual bool isBasicKeySet(unsigned n) const
Returns true if the n-th "basic" key (16bit) is set.
Definition tyt_codeplug.cc:2717
virtual void setRevertChannelIndex(uint16_t idx)
Sets the revert channel index (+1).
Definition tyt_codeplug.cc:1817
virtual ~GPSSystemElement()
Destructor.
Definition tyt_codeplug.cc:1789
virtual bool fromGPSSystemObj(DMRAPRSSystem *sys, Context &ctx)
Encodes the given GPS system.
Definition tyt_codeplug.cc:1867
virtual bool linkGPSSystemObj(DMRAPRSSystem *sys, Context &ctx)
Links the given GPS system.
Definition tyt_codeplug.cc:1885
virtual DMRAPRSSystem * toGPSSystemObj()
Constructs a GPS system.
Definition tyt_codeplug.cc:1880
virtual bool repeatIntervalDisabled() const
Returns true if the repeat interval is disabled.
Definition tyt_codeplug.cc:1827
virtual void setDestinationContactIndex(uint16_t idx)
Sets the destination contact index (+1).
Definition tyt_codeplug.cc:1858
virtual uint16_t revertChannelIndex() const
Returns the revert channel index (+1).
Definition tyt_codeplug.cc:1813
virtual void disableRepeatInterval()
Disables the GPS repeat interval.
Definition tyt_codeplug.cc:1844
virtual void disableDestinationContact()
Disables the destination contact.
Definition tyt_codeplug.cc:1862
virtual void setRevertChannelSelected()
Sets the revert channel to the current one.
Definition tyt_codeplug.cc:1821
virtual void setRepeatInterval(const Interval &sec)
Sets the repeat interval in seconds.
Definition tyt_codeplug.cc:1836
virtual bool revertChannelIsSelected() const
Returns true if the revert channel is the current one.
Definition tyt_codeplug.cc:1809
void clear()
Abstract method to reset the element within the codeplug.
Definition tyt_codeplug.cc:1800
virtual bool destinationContactDisabled() const
Returns true if the destination contact is disabled.
Definition tyt_codeplug.cc:1850
virtual uint16_t destinationContactIndex() const
Returns the destination contact index (+1).
Definition tyt_codeplug.cc:1854
GPSSystemElement(uint8_t *ptr, size_t size)
Hidden constructor.
Definition tyt_codeplug.cc:1777
virtual Interval repeatInterval() const
Returns the repeat interval.
Definition tyt_codeplug.cc:1831
bool isValid() const
Returns true if the pointer is not null.
Definition tyt_codeplug.cc:1794
virtual bool saveModeRX() const
Returns true, if save RX mode is enabled.
Definition tyt_codeplug.cc:1320
virtual void setCallAlertToneContinuous()
Sets the call-alert tone continuous.
Definition tyt_codeplug.cc:1463
virtual TyTSettingsExtension::MonitorType monitorType() const
Returns the monitor type.
Definition tyt_codeplug.cc:1293
virtual void setScanDigitalHangTime(unsigned ms)
Sets the scan digital hang time.
Definition tyt_codeplug.cc:1490
virtual bool callAlertToneIsContinuous() const
Returns true if the call-alert is continuous.
Definition tyt_codeplug.cc:1450
virtual unsigned callAlertToneDuration() const
Returns the call-alert tone duration.
Definition tyt_codeplug.cc:1454
virtual void setScanAnalogHangTime(unsigned ms)
Sets the scan analog hang time.
Definition tyt_codeplug.cc:1500
virtual void setLoneWorkerResponseTime(unsigned min)
Sets the lone-worker response time.
Definition tyt_codeplug.cc:1472
virtual void setBootDisplay(BootSettings::BootDisplay mode)
Sets boot display mode.
Definition tyt_codeplug.cc:1382
virtual QString radioName() const
Returns the radio name.
Definition tyt_codeplug.cc:1585
virtual ~GeneralSettingsElement()
Destructor.
Definition tyt_codeplug.cc:1214
virtual QString introLine2() const
Returns the second intro line.
Definition tyt_codeplug.cc:1284
virtual QString introLine1() const
Returns the first intro line.
Definition tyt_codeplug.cc:1275
virtual void setRadioName(const QString &name)
Sets the radio name.
Definition tyt_codeplug.cc:1589
virtual void keypadLockTimeSetManual()
Set keypad lock to manual.
Definition tyt_codeplug.cc:1537
virtual unsigned keypadLockTime() const
Returns the keypad lock time.
Definition tyt_codeplug.cc:1528
virtual void setPCProgPassword(const QString &pass)
Sets the PC programming password.
Definition tyt_codeplug.cc:1576
virtual void setSaveModeRX(bool enable)
Enables/disables save mode RX.
Definition tyt_codeplug.cc:1324
virtual unsigned scanDigitalHangTime() const
Returns the scan digital hang time.
Definition tyt_codeplug.cc:1486
virtual void setRadioProgPassword(uint32_t passwd)
Sets the 8-digit radio programming password.
Definition tyt_codeplug.cc:1559
void clear()
Abstract method to reset the element within the codeplug.
Definition tyt_codeplug.cc:1219
virtual bool backlightIsAlways() const
Returns true if the backlight is always on.
Definition tyt_codeplug.cc:1506
virtual uint32_t dmrId() const
Returns the default DMR ID of the radio.
Definition tyt_codeplug.cc:1392
virtual uint32_t powerOnPassword() const
Returns the 8-digit power-on password.
Definition tyt_codeplug.cc:1542
virtual unsigned scanAnalogHangTime() const
Returns the scan analog hang time.
Definition tyt_codeplug.cc:1496
virtual bool talkPermitToneDigital() const
Returns true, if the talk permit tone is enabled for DMR channels.
Definition tyt_codeplug.cc:1356
virtual void setIntroLine2(const QString line)
Sets the second intro line.
Definition tyt_codeplug.cc:1288
virtual Interval groupCallHangTime() const
Returns the group call hang time.
Definition tyt_codeplug.cc:1411
virtual bool allLEDsDisabled() const
Returns true if all LEDs are disabled.
Definition tyt_codeplug.cc:1302
virtual bool allTonesDisabled() const
Returns true, if all tones are disabled.
Definition tyt_codeplug.cc:1329
virtual bool updateConfig(Config *config)
Updates config from general settings.
Definition tyt_codeplug.cc:1654
GeneralSettingsElement(uint8_t *ptr, size_t size)
Hidden constructor.
Definition tyt_codeplug.cc:1202
virtual Level voxSesitivity() const
Returns the VOX sensitivity.
Definition tyt_codeplug.cc:1431
virtual unsigned loneWorkerResponseTime() const
Returns the lone-worker response time.
Definition tyt_codeplug.cc:1468
virtual void setBacklightTime(unsigned sec)
Sets the backlight time.
Definition tyt_codeplug.cc:1514
virtual void radioProgPasswordDisable()
Disables the radio programming password.
Definition tyt_codeplug.cc:1563
virtual void setLoneWorkerReminderTime(unsigned min)
Sets the lone-worker reminder time.
Definition tyt_codeplug.cc:1481
virtual void setLowBatteryInterval(unsigned sec)
Sets the low-battery warning interval.
Definition tyt_codeplug.cc:1444
virtual void setIntroLine1(const QString line)
Sets the first intro line.
Definition tyt_codeplug.cc:1279
virtual QString pcProgPassword() const
Returns the PC programming password.
Definition tyt_codeplug.cc:1572
virtual bool pcProgPasswordEnabled() const
Returns true, if the PC programming password is enabled.
Definition tyt_codeplug.cc:1568
virtual unsigned lowBatteryInterval() const
Returns the low-battery warning interval.
Definition tyt_codeplug.cc:1440
virtual Interval privateCallHangTime() const
Returns the private call hang time.
Definition tyt_codeplug.cc:1421
virtual void setPrivateCallHangTime(const Interval &ms)
Sets the private call hang time.
Definition tyt_codeplug.cc:1425
virtual void setVOXSesitivity(Level level)
Sets the group call hang time.
Definition tyt_codeplug.cc:1435
virtual bool talkPermitToneAnalog() const
Returns true, if the talk permit tone is enabled for analog channels.
Definition tyt_codeplug.cc:1365
virtual void disableAllTones(bool disable)
Enables/disables all tones.
Definition tyt_codeplug.cc:1333
virtual void pcProgPasswordDisable()
Disables the PC programming password.
Definition tyt_codeplug.cc:1580
virtual bool radioProgPasswordEnabled() const
Returns true, if the radio programming password is enabled.
Definition tyt_codeplug.cc:1551
virtual void backlightTimeSetAlways()
Turns the backlight always on.
Definition tyt_codeplug.cc:1519
virtual BootSettings::BootDisplay bootDisplay() const
Returns boot display mode.
Definition tyt_codeplug.cc:1375
virtual void setDMRId(uint32_t id)
Sets the default DMR ID of the radio.
Definition tyt_codeplug.cc:1396
virtual void setKeypadLockTime(unsigned sec)
Sets the keypad lock time.
Definition tyt_codeplug.cc:1532
virtual uint32_t radioProgPassword() const
Returns the 8-digit radio programming password.
Definition tyt_codeplug.cc:1555
virtual bool fromConfig(const Config *config)
Encodes the general settings.
Definition tyt_codeplug.cc:1594
virtual bool savePreamble() const
Returns true, if save preamble is enabled.
Definition tyt_codeplug.cc:1311
virtual Interval txPreambleDuration() const
Returns the TX preamble duration.
Definition tyt_codeplug.cc:1401
virtual void disableAllLEDs(bool disable)
Enables/disables all LEDs.
Definition tyt_codeplug.cc:1306
virtual void setSavePreamble(bool enable)
Enables/disables save preamble.
Definition tyt_codeplug.cc:1315
virtual void setGroupCallHangTime(const Interval &ms)
Sets the group call hang time.
Definition tyt_codeplug.cc:1415
virtual unsigned backlightTime() const
Returns the backlight time.
Definition tyt_codeplug.cc:1510
virtual void enablePasswdAndLock(bool enable)
Enables/disables password and lock.
Definition tyt_codeplug.cc:1351
virtual void setMonitorType(TyTSettingsExtension::MonitorType type)
Sets the monitor type.
Definition tyt_codeplug.cc:1297
virtual bool chFreeIndicationTone() const
Returns true, if the channel free indication tone is enabled.
Definition tyt_codeplug.cc:1338
virtual void setCallAlertToneDuration(unsigned sec)
Sets the call-alert tone duration.
Definition tyt_codeplug.cc:1458
virtual void setChFreeIndicationTone(bool enable)
Enables/disables the channel free indication tone.
Definition tyt_codeplug.cc:1342
virtual unsigned loneWorkerReminderTime() const
Returns the lone-worker reminder time.
Definition tyt_codeplug.cc:1477
virtual void setPowerOnPassword(uint32_t passwd)
Sets the 8-digit power-on password.
Definition tyt_codeplug.cc:1546
virtual bool passwdAndLock() const
Returns true, if password and lock is enabled.
Definition tyt_codeplug.cc:1347
virtual void enableTalkPermitToneAnalog(bool enable)
Enables/disables talk permit tone for analog channels.
Definition tyt_codeplug.cc:1369
virtual bool keypadLockIsManual() const
Returns true if the keypad lock is manual.
Definition tyt_codeplug.cc:1524
virtual void enableTalkPermitToneDigital(bool enable)
Enables/disables talk permit tone for DMR channels.
Definition tyt_codeplug.cc:1360
virtual void setTXPreambleDuration(const Interval &ms)
Sets the TX preamble duration.
Definition tyt_codeplug.cc:1405
virtual ~GroupListElement()
Destructor.
Definition tyt_codeplug.cc:888
void clear()
Abstract method to reset the element within the codeplug.
Definition tyt_codeplug.cc:898
virtual uint16_t memberIndex(unsigned n) const
Returns the n-th member index.
Definition tyt_codeplug.cc:913
GroupListElement(uint8_t *ptr, size_t size)
Constructor.
Definition tyt_codeplug.cc:876
virtual RXGroupList * toGroupListObj(Context &ctx)
Creates a group list object.
Definition tyt_codeplug.cc:947
virtual QString name() const
Returns the name of the group list.
Definition tyt_codeplug.cc:903
bool isValid() const
Returns true if the pointer is not null.
Definition tyt_codeplug.cc:893
virtual bool fromGroupListObj(const RXGroupList *lst, Context &ctx)
Encodes the given group list.
Definition tyt_codeplug.cc:923
virtual void setMemberIndex(unsigned n, uint16_t idx)
Sets the n-th member index.
Definition tyt_codeplug.cc:918
virtual bool linkGroupListObj(RXGroupList *lst, Context &ctx)
Links the given group list.
Definition tyt_codeplug.cc:955
virtual void setName(const QString &nm)
Sets the name of the group list.
Definition tyt_codeplug.cc:908
virtual MessageElement message(unsigned int i) const
Returns the i-th message.
Definition tyt_codeplug.cc:2870
MessageBankElement(uint8_t *ptr, size_t size)
Hidden constructor.
Definition tyt_codeplug.cc:2851
void clear()
Abstract method to reset the element within the codeplug.
Definition tyt_codeplug.cc:2864
virtual bool encode(Context &ctx, const Flags &flags, const ErrorStack &err=ErrorStack())
Encodes all messages.
Definition tyt_codeplug.cc:2876
virtual bool decode(Context &ctx, const ErrorStack &err=ErrorStack())
Decodes all messages.
Definition tyt_codeplug.cc:2892
static constexpr unsigned int size()
The size of the element.
Definition tyt_codeplug.hh:1274
Basic pre-defined SMS text message.
Definition tyt_codeplug.hh:1229
virtual QString text() const
Returns the text of the message.
Definition tyt_codeplug.cc:2817
bool isValid() const
Returns true if the pointer is not null.
Definition tyt_codeplug.cc:2812
virtual bool encode(SMSTemplate *sms, const ErrorStack &err=ErrorStack())
Encodes the given SMS template.
Definition tyt_codeplug.cc:2826
virtual void setText(const QString &text)
Sets the text of the message.
Definition tyt_codeplug.cc:2821
void clear()
Abstract method to reset the element within the codeplug.
Definition tyt_codeplug.cc:2807
virtual SMSTemplate * decode(const ErrorStack &err=ErrorStack())
Decodes the given SMS template.
Definition tyt_codeplug.cc:2835
MessageElement(uint8_t *ptr, size_t size)
Hidden constructor.
Definition tyt_codeplug.cc:2794
static constexpr unsigned int size()
The size of the element.
Definition tyt_codeplug.hh:1239
virtual void setAction(Action action)
Sets the action to perform.
Definition tyt_codeplug.cc:2438
virtual uint16_t contactIndex() const
Returns the contact index +1.
Definition tyt_codeplug.cc:2461
virtual ~OneTouchSettingElement()
Destructor.
Definition tyt_codeplug.cc:2415
virtual uint8_t messageIndex() const
Returns the message index +1.
Definition tyt_codeplug.cc:2452
virtual void setMessageIndex(uint8_t idx)
Sets the message index +1.
Definition tyt_codeplug.cc:2456
Type
Possible one-touch action types.
Definition tyt_codeplug.hh:1001
@ Digital
Digital call/message.
Definition tyt_codeplug.hh:1003
@ Analog
Analog call.
Definition tyt_codeplug.hh:1004
@ Disabled
Disabled one-touch.
Definition tyt_codeplug.hh:1002
virtual void setActionType(Type action)
Sets the type of the action.
Definition tyt_codeplug.cc:2447
OneTouchSettingElement(uint8_t *ptr, size_t size)
Hidden constructor.
Definition tyt_codeplug.cc:2403
virtual void setContactIndex(uint16_t idx)
Sets the contact index +1.
Definition tyt_codeplug.cc:2465
virtual Action action() const
Returns the action to perform.
Definition tyt_codeplug.cc:2434
Action
Possible one-touch actions.
Definition tyt_codeplug.hh:991
@ CALL
Call someone, see contact.
Definition tyt_codeplug.hh:992
@ MESSAGE
Send a message, see message.
Definition tyt_codeplug.hh:993
@ DTMF4
Analog call DTMF system 4.
Definition tyt_codeplug.hh:997
@ DTMF2
Analog call DTMF system 2.
Definition tyt_codeplug.hh:995
@ DTMF3
Analog call DTMF system 3.
Definition tyt_codeplug.hh:996
@ DTMF1
Analog call DTMF system 1.
Definition tyt_codeplug.hh:994
bool isValid() const
Returns true if the pointer is not null.
Definition tyt_codeplug.cc:2420
virtual Type actionType() const
Returns the type of the action.
Definition tyt_codeplug.cc:2443
void clear()
Abstract method to reset the element within the codeplug.
Definition tyt_codeplug.cc:2425
virtual unsigned holdTime() const
Returns the hold time in ms.
Definition tyt_codeplug.cc:1055
virtual void setPriorityChannel1Index(uint16_t idx)
Set the index (+1) of the first priority channel.
Definition tyt_codeplug.cc:1030
virtual void setHoldTime(unsigned time)
Sets the hold time in ms.
Definition tyt_codeplug.cc:1060
virtual void setMemberIndex(unsigned n, uint16_t idx)
Sets the n-th member index.
Definition tyt_codeplug.cc:1080
virtual ScanList * toScanListObj(Context &ctx)
Creates a scan list.
Definition tyt_codeplug.cc:1133
virtual void setPriorityChannel2Index(uint16_t idx)
Set the index (+1) of the second priority channel.
Definition tyt_codeplug.cc:1040
bool isValid() const
Returns true if the pointer is not null.
Definition tyt_codeplug.cc:997
virtual uint16_t txChannelIndex() const
Returns the index (+1) of the TX channel.
Definition tyt_codeplug.cc:1045
virtual bool fromScanListObj(const ScanList *lst, Context &ctx)
Encodes the given scan list.
Definition tyt_codeplug.cc:1085
virtual uint16_t priorityChannel1Index() const
Returns the index (+1) of the first priority channel.
Definition tyt_codeplug.cc:1025
virtual unsigned prioritySampleTime() const
Returns the priority sample time in ms.
Definition tyt_codeplug.cc:1065
virtual QString name() const
Returns the name of the scan list.
Definition tyt_codeplug.cc:1015
ScanListElement(uint8_t *ptr, size_t size)
Constructor.
Definition tyt_codeplug.cc:980
virtual uint16_t memberIndex(unsigned n) const
Returns the n-th member index.
Definition tyt_codeplug.cc:1075
virtual ~ScanListElement()
Destructor.
Definition tyt_codeplug.cc:992
virtual void setTXChannelIndex(uint16_t idx)
Sets the index (+1) of the TX channel.
Definition tyt_codeplug.cc:1050
virtual void setName(const QString &nm)
Sets the name of the scan list.
Definition tyt_codeplug.cc:1020
void clear()
Abstract method to reset the element within the codeplug.
Definition tyt_codeplug.cc:1002
virtual void setPrioritySampleTime(unsigned time)
Sets the priority sample time in ms.
Definition tyt_codeplug.cc:1070
virtual bool linkScanListObj(ScanList *lst, Context &ctx, const ErrorStack &err=ErrorStack())
Links the scan list object.
Definition tyt_codeplug.cc:1149
virtual uint16_t priorityChannel2Index() const
Returns the index (+1) of the second priority channel.
Definition tyt_codeplug.cc:1035
virtual void setTimestamp(const QDateTime &ts)
Sets the time stamp.
Definition tyt_codeplug.cc:1750
virtual QString cpsVersion() const
Returns the CPS version.
Definition tyt_codeplug.cc:1760
virtual ~TimestampElement()
Destructor.
Definition tyt_codeplug.cc:1733
virtual QDateTime timestamp() const
Returns the time stamp.
Definition tyt_codeplug.cc:1745
TimestampElement(uint8_t *ptr, size_t size)
Hidden constructor.
Definition tyt_codeplug.cc:1721
void clear()
Abstract method to reset the element within the codeplug.
Definition tyt_codeplug.cc:1738
virtual bool linkZone(Zone *zone, Context &ctx) const
Links the created zone to channels.
Definition tyt_codeplug.cc:856
virtual bool fromZoneObj(const Zone *zone, Context &ctx)
Encodes a given zone object.
Definition tyt_codeplug.cc:835
virtual QString name() const
Returns the name of the zone.
Definition tyt_codeplug.cc:813
virtual uint16_t memberIndex(unsigned n) const
Returns the index (+1) of the n-th member.
Definition tyt_codeplug.cc:826
ZoneElement(uint8_t *ptr, size_t size)
Constructor.
Definition tyt_codeplug.cc:786
virtual void setName(const QString &setName)
Sets the name of the zone.
Definition tyt_codeplug.cc:817
virtual void setMemberIndex(unsigned n, uint16_t idx)
Sets the index (+1) of the n-th member.
Definition tyt_codeplug.cc:830
virtual Zone * toZoneObj() const
Creates a zone.
Definition tyt_codeplug.cc:849
virtual ~ZoneElement()
Desturctor.
Definition tyt_codeplug.cc:798
virtual bool hasMemberIndex(unsigned n) const
Returns true if the n-th member index is set.
Definition tyt_codeplug.cc:822
void clear()
Abstract method to reset the element within the codeplug.
Definition tyt_codeplug.cc:808
bool isValid() const
Returns true if the pointer is not null.
Definition tyt_codeplug.cc:803
virtual void clearContacts()=0
Clears all contacts in the codeplug.
virtual bool decodeTextMessages(Context &ctx, const ErrorStack &err=ErrorStack())=0
Decodes text messages.
virtual bool decodePrivacyKeys(Context &ctx, const ErrorStack &err=ErrorStack())=0
Decodes the encryption keys.
virtual void clearPositioningSystems()=0
Clears all positioning systems in the codeplug.
virtual void clearGeneralSettings()=0
Clears the general settings in the codeplug.
virtual bool createPositioningSystems(Context &ctx, const ErrorStack &err=ErrorStack())=0
Adds a GPS positioning system to the configuration for each one in the codeplug.
virtual void clear()
Clears and resets the complete codeplug to some default values.
Definition tyt_codeplug.cc:3001
virtual bool createContacts(Context &ctx, const ErrorStack &err=ErrorStack())=0
Adds a digital contact to the configuration for each one in the codeplug.
bool index(Config *config, Context &ctx, const ErrorStack &err=ErrorStack()) const
Indexes all elements of the codeplug.
Definition tyt_codeplug.cc:2923
virtual void clearMenuSettings()=0
Clears the menu settings in the codeplug.
virtual bool encodeTimestamp()=0
Sets the time-stamp.
virtual bool linkChannels(Context &ctx, const ErrorStack &err=ErrorStack())=0
Links all added channels within the configuration.
virtual bool encodeElements(const Flags &flags, Context &ctx, const ErrorStack &err=ErrorStack())
Encodes the given generic configuration as a binary codeplug using the given context.
Definition tyt_codeplug.cc:3081
virtual bool linkScanLists(Context &ctx, const ErrorStack &err=ErrorStack())=0
Links all added scan lists within the configuration.
virtual bool encodeContacts(const Flags &flags, Context &ctx, const ErrorStack &err=ErrorStack())=0
Encodes all digital contacts in the configuration into the codeplug.
virtual void clearGroupLists()=0
Clears all RX group lists in the codeplug.
bool encode(Config *config, const Flags &flags=Flags(), const ErrorStack &err=ErrorStack())
Encodes the given generic configuration as a binary codeplug.
Definition tyt_codeplug.cc:3053
virtual bool encodeScanLists(const Flags &flags, Context &ctx, const ErrorStack &err=ErrorStack())=0
Encodes all scan lists in the configuration into the codeplug.
virtual bool createChannels(Context &ctx, const ErrorStack &err=ErrorStack())=0
Adds a channel to the configuration for each one in the codeplug.
virtual bool encodeGroupLists(const Flags &flags, Context &ctx, const ErrorStack &err=ErrorStack())=0
Encodes all group lists in the configuration into the codeplug.
virtual void clearTimestamp()=0
Clears the time-stamp in the codeplug.
virtual bool decodeGeneralSettings(Context &ctx, const ErrorStack &err=ErrorStack())=0
Updates the given configuration from the general settings.
virtual void clearScanLists()=0
Clears all scan lists in the codeplug.
virtual ~TyTCodeplug()
Destructor.
Definition tyt_codeplug.cc:2918
virtual bool linkZones(Context &ctx, const ErrorStack &err=ErrorStack())=0
Links all added zones within the configuration.
virtual bool createGroupLists(Context &ctx, const ErrorStack &err=ErrorStack())=0
Adds a RX group list to the configuration for each one in the codeplug.
virtual bool linkPositioningSystems(Context &ctx, const ErrorStack &err=ErrorStack())=0
Links all added positioning systems within the configuration.
bool decode(Config *config, const ErrorStack &err=ErrorStack())
Decodes the binary codeplug and stores its content in the given generic configuration.
Definition tyt_codeplug.cc:3070
virtual bool createZones(Context &ctx, const ErrorStack &err=ErrorStack())=0
Adds a zone to the configuration for each one in the codeplug.
virtual void clearButtonSettings()=0
Clears the button settings in the codeplug.
virtual bool linkGroupLists(Context &ctx, const ErrorStack &err=ErrorStack())=0
Links all added RX group lists within the configuration.
virtual void clearChannels()=0
Clears all channels in the codeplug.
virtual void clearEmergencySystems()=0
Clears all emergency systems in the codeplug.
Config * preprocess(Config *config, const ErrorStack &err=ErrorStack()) const
Returns a prepared configuration for this particular radio.
Definition tyt_codeplug.cc:3033
virtual bool encodeButtonSettings(const Flags &flags, Context &ctx, const ErrorStack &err=ErrorStack())=0
Encodes the button settings.
virtual void clearZones()=0
Clears all zones in the codeplug.
virtual bool encodePositioningSystems(const Flags &flags, Context &ctx, const ErrorStack &err=ErrorStack())=0
Encodes all DMR positioning systems in the configuration into the codeplug.
virtual bool encodePrivacyKeys(const Flags &flags, Context &ctx, const ErrorStack &err=ErrorStack())=0
Encodes the encryption keys.
TyTCodeplug(QObject *parent=nullptr)
Empty constructor.
Definition tyt_codeplug.cc:2912
virtual bool decodeElements(Context &ctx, const ErrorStack &err=ErrorStack())
Decodes the binary codeplug and stores its content in the given generic configuration using the given...
Definition tyt_codeplug.cc:3152
virtual void clearPrivacyKeys()=0
Clears all encryption keys in the codeplug.
virtual bool decodeButtonSetttings(Context &ctx, const ErrorStack &err=ErrorStack())=0
Decodes the button settings.
virtual bool createScanLists(Context &ctx, const ErrorStack &err=ErrorStack())=0
Adds a scan list to the configuration for each one in the codeplug.
virtual bool encodeTextMessages(Context &ctx, const Flags &flags, const ErrorStack &err=ErrorStack())=0
Encodes text messages.
virtual bool encodeChannels(const Flags &flags, Context &ctx, const ErrorStack &err=ErrorStack())=0
Encodes all channels in the configuration into the codeplug.
virtual void clearTextMessages()=0
Clears all text messages in the codeplug.
virtual bool encodeZones(const Flags &flags, Context &ctx, const ErrorStack &err=ErrorStack())=0
Encodes all zones in the configuration into the codeplug.
virtual bool encodeGeneralSettings(const Flags &flags, Context &ctx, const ErrorStack &err=ErrorStack())=0
Updates the general settings from the given configuration.
Represents a zone within the generic configuration.
Definition zone.hh:15
Helper type to encode frequencies without any rounding error.
Definition frequency.hh:107
Encodes a selective call.
Definition signaling.hh:13
Some limits of the element.
Definition tyt_codeplug.hh:264
static constexpr unsigned int nameLength()
Maximum length of the name.
Definition tyt_codeplug.hh:266
Some internal offsets within the element.
Definition tyt_codeplug.hh:271
Some limits for the element.
Definition tyt_codeplug.hh:1207
static constexpr unsigned int advancedKeys()
Specifies the maximum number of advanced (AES) encryption keys (128bit).
Definition tyt_codeplug.hh:1211
static constexpr unsigned int basicKeys()
Specifies the maximum number of basic (DMR) encryption keys (16bit).
Definition tyt_codeplug.hh:1209
Some internal offsets.
Definition tyt_codeplug.hh:1216
Some limits for the settings.
Definition tyt_codeplug.hh:699
Internal offsets.
Definition tyt_codeplug.hh:707
Some Limits.
Definition tyt_codeplug.hh:1288
static constexpr unsigned int messages()
The maximum number of messages in a bank.
Definition tyt_codeplug.hh:1290
Some limits.
Definition tyt_codeplug.hh:1257
static constexpr unsigned int length()
Maximum message length.
Definition tyt_codeplug.hh:1258