1 #ifndef TYT_CODEPLUG_HH
2 #define TYT_CODEPLUG_HH
7 #include "signaling.hh"
10 #include "tyt_extensions.hh"
106 virtual bool rxOnly()
const;
159 virtual bool vox()
const;
243 virtual QString
name()
const;
275 virtual uint32_t
dmrId()
const;
290 virtual QString
name()
const;
292 virtual void setName(
const QString &nm);
322 virtual QString
name()
const;
359 virtual QString
name()
const;
361 virtual void setName(
const QString &nm);
396 virtual QString
name()
const;
398 virtual void setName(
const QString &nm);
466 virtual TyTSettingsExtension::MonitorType
monitorType()
const;
468 virtual void setMonitorType(TyTSettingsExtension::MonitorType type);
510 virtual uint32_t
dmrId()
const;
755 virtual bool scan()
const;
784 virtual bool power()
const;
808 virtual bool vox()
const;
956 virtual void clear();
1022 virtual QString
name()
const;
1079 static constexpr
unsigned int size() {
return 0x00b0; }
1093 virtual QByteArray
basicKey(
unsigned n)
const;
1095 virtual void setBasicKey(
unsigned n,
const QByteArray &key);
1117 static constexpr
unsigned int advancedKeys() {
return 0x0000; }
1118 static constexpr
unsigned int betweenAdvancedKeys() {
return 0x0010; }
1119 static constexpr
unsigned int basicKeys() {
return 0x0090; }
1120 static constexpr
unsigned int betweenBasicKeys() {
return 0x0002; }
1138 static constexpr
unsigned int size() {
return 0x00120; }
1145 virtual QString
text()
const;
1157 static constexpr
unsigned int length() {
return 144; }
1188 static constexpr
unsigned int messages() {
return 50; }
1202 virtual void clear();
The base class of all channels (analog and digital) of a codeplug configuration.
Definition: channel.hh:34
Base class for all codeplug contexts.
Definition: codeplug.hh:238
Represents the abstract base class of all codeplug elements.
Definition: codeplug.hh:51
Certain flags passed to CodePlug::encode to control the transfer and encoding of the codeplug.
Definition: codeplug.hh:25
This class defines the interface all device-specific code-plugs must implement.
Definition: codeplug.hh:19
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:389
Implements a stack of error messages to provide a pretty formatted error traceback.
Definition: errorstack.hh:41
Bandwidth
Possible bandwidth of an analog channel.
Definition: channel.hh:240
This class represents a GPS signalling system within the codeplug.
Definition: gpssystem.hh:64
Generic representation of a RX group list.
Definition: rxgrouplist.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
Code
This huge enum lists all possible RX/TX tones that can be associated with analog channels.
Definition: signaling.hh:18
RefFrequency
Possible reference frequency settings for RX & TX.
Definition: tyt_extensions.hh:64
Represents a single channel (analog or digital) within the TyT codeplug.
Definition: tyt_codeplug.hh:35
virtual void enableTalkaround(bool enable)
Enables/disables talkaround for this channel.
Definition: tyt_codeplug.cc:144
virtual void setPositioningSystemIndex(uint8_t idx)
Sets the positioning system index (+1) for this channel.
Definition: tyt_codeplug.cc:328
virtual void setTXTimeOutRekeyDelay(uint8_t delay)
Sets the transmit time-out re-key delay in seconds.
Definition: tyt_codeplug.cc:292
virtual Channel * toChannelObj(const ErrorStack &err=ErrorStack()) const
Constructs a generic Channel object from the codeplug channel.
Definition: tyt_codeplug.cc:423
virtual uint8_t txSignalingSystemIndex() const
Returns the signaling system index (+1) for TX.
Definition: tyt_codeplug.cc:387
virtual bool rxOnly() const
Returns true if the channel has rx only enabled.
Definition: tyt_codeplug.cc:149
virtual uint8_t rxSignalingSystemIndex() const
Returns the signaling system index (+1) for RX.
Definition: tyt_codeplug.cc:378
virtual void setRXSignaling(Signaling::Code code)
Sets the CTCSS/DSC signaling for RX.
Definition: tyt_codeplug.cc:364
virtual uint8_t colorCode() const
Returns the color code of this channel.
Definition: tyt_codeplug.cc:172
bool isValid() const
Returns true if channel is valid/enabled.
Definition: tyt_codeplug.cc:42
virtual void setTXFrequency(uint32_t Hz)
Sets the TX frequency in Hz.
Definition: tyt_codeplug.cc:355
void clear()
Clears/resets the channel and therefore disables it.
Definition: tyt_codeplug.cc:47
Mode
Possible modes for the channel, i.e.
Definition: tyt_codeplug.hh:38
@ MODE_DIGITAL
Digital channel.
Definition: tyt_codeplug.hh:40
@ MODE_ANALOG
Analog channel.
Definition: tyt_codeplug.hh:39
virtual void setTXSignaling(Signaling::Code code)
Sets the CTCSS/DSC signaling for TX.
Definition: tyt_codeplug.cc:373
virtual uint32_t txFrequency() const
Returns the TX frequency in Hz.
Definition: tyt_codeplug.cc:351
virtual uint32_t rxFrequency() const
Returns the RX frequency in Hz.
Definition: tyt_codeplug.cc:342
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
virtual void setContactIndex(uint16_t idx)
Sets the transmit contact index (+1) for this channel.
Definition: tyt_codeplug.cc:275
virtual unsigned txTimeOut() const
Returns the transmit time-out in seconds.
Definition: tyt_codeplug.cc:279
virtual void setRXSignalingSystemIndex(uint8_t idx)
Sets the signaling system index (+1) for RX.
Definition: tyt_codeplug.cc:382
virtual void setTXTimeOut(unsigned tot)
Sets the transmit time-out in seconds.
Definition: tyt_codeplug.cc:283
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:51
@ PRIV_NONE
No privacy.
Definition: tyt_codeplug.hh:52
@ PRIV_BASIC
Basic privacy.
Definition: tyt_codeplug.hh:53
@ PRIV_ENHANCED
Enhanced privacy.
Definition: tyt_codeplug.hh:54
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:25
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:99
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:409
virtual void setTXSignalingSystemIndex(uint8_t idx)
Sets the signaling system index (+1) for TX.
Definition: tyt_codeplug.cc:391
virtual bool txGPSInfo() const
Returns true if the channel transmits GPS information enabled.
Definition: tyt_codeplug.cc:396
virtual void enableLoneWorker(bool enable)
Enables/disables lone worker for this channel.
Definition: tyt_codeplug.cc:135
virtual void enableRXOnly(bool enable)
Enables/disables rx only for this channel.
Definition: tyt_codeplug.cc:153
virtual ~ChannelElement()
Destructor.
Definition: tyt_codeplug.cc:37
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:414
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:44
@ BW_25_KHZ
25kHz wide.
Definition: tyt_codeplug.hh:47
@ BW_20_KHZ
20 kHz (really?)
Definition: tyt_codeplug.hh:46
@ BW_12_5_KHZ
12.5 kHz narrow, (default for binary channels).
Definition: tyt_codeplug.hh:45
Admit
TX Admit criterion.
Definition: tyt_codeplug.hh:58
@ ADMIT_ALWAYS
Always allow TX.
Definition: tyt_codeplug.hh:59
@ ADMIT_COLOR
Allow TX if color-code matches.
Definition: tyt_codeplug.hh:62
@ ADMIT_CH_FREE
Allow TX if channel is free.
Definition: tyt_codeplug.hh:60
@ ADMIT_TONE
Allow TX if CTCSS tone matches.
Definition: tyt_codeplug.hh:61
virtual uint8_t scanListIndex() const
Returns the scan-list index (+1) for this channel.
Definition: tyt_codeplug.cc:306
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 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:503
virtual DMRChannel::TimeSlot timeSlot() const
Returns the time slot of this channel.
Definition: tyt_codeplug.cc:158
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:108
virtual uint8_t positioningSystemIndex() const
Returns the positioning system index (+1) for this channel.
Definition: tyt_codeplug.cc:324
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:140
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:310
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:164
virtual void enableAutoScan(bool enable)
Enables/disables auto scan for this channel.
Definition: tyt_codeplug.cc:126
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:114
virtual bool dtmfDecode(uint8_t idx) const
Returns true if the channel has DTMF decoding enabled.
Definition: tyt_codeplug.cc:333
virtual void setMode(Mode setMode)
Sets the mode of the channel.
Definition: tyt_codeplug.cc:103
virtual void setEmergencySystemIndex(uint8_t idx)
Sets the emergency system index (+1) for this channel.
Definition: tyt_codeplug.cc:301
virtual uint8_t emergencySystemIndex() const
Returns the emergency system index (+1) for this channel.
Definition: tyt_codeplug.cc:297
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:337
virtual void enableEmergencyAlarmACK(bool enable)
Enables/disables alarm confirmation for this channel.
Definition: tyt_codeplug.cc:230
virtual Signaling::Code rxSignaling() const
Returns the CTCSS/DSC signaling for RX.
Definition: tyt_codeplug.cc:360
virtual void setGroupListIndex(uint8_t idx)
Sets the RX group list index (+1) for this channel.
Definition: tyt_codeplug.cc:319
virtual uint8_t txTimeOutRekeyDelay() const
Returns the transmit time-out re-key delay in seconds.
Definition: tyt_codeplug.cc:288
virtual void setName(const QString &setName)
Sets the name of this channel.
Definition: tyt_codeplug.cc:418
virtual void setColorCode(uint8_t ts)
Sets the color code of this channel.
Definition: tyt_codeplug.cc:176
virtual bool rxGPSInfo() const
Returns true if the channel receives GPS information enabled.
Definition: tyt_codeplug.cc:405
virtual void setRXFrequency(uint32_t Hz)
Sets the RX frequency in Hz.
Definition: tyt_codeplug.cc:346
virtual void fromChannelObj(const Channel *c, Context &ctx)
Initializes this codeplug channel from the given generic configuration.
Definition: tyt_codeplug.cc:565
virtual Signaling::Code txSignaling() const
Returns the CTCSS/DSC signaling for TX.
Definition: tyt_codeplug.cc:369
virtual bool loneWorker() const
Returns true if the channel has lone worker enabled.
Definition: tyt_codeplug.cc:131
virtual void enableTXGPSInfo(bool enable)
Enables/disables transmission of GPS information for this channel.
Definition: tyt_codeplug.cc:400
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:315
virtual bool autoScan() const
Returns true if the channel has auto scan enabled.
Definition: tyt_codeplug.cc:122
Represents the emergency settings within the codeplug on the radio.
Definition: tyt_codeplug.hh:945
virtual void setTXTimeOut(unsigned ms)
Sets the TX time-out in ms.
Definition: tyt_codeplug.cc:2485
virtual void enableRemoteMonitor(bool enable)
Enables/disables remote monitor.
Definition: tyt_codeplug.cc:2458
virtual void enableEmergencyRemoteMonitor(bool enable)
Enables/disables emergency remote monitor.
Definition: tyt_codeplug.cc:2449
virtual bool remoteMonitor() const
Returns true if remote monitor is enabled.
Definition: tyt_codeplug.cc:2454
virtual ~EmergencySettingsElement()
Destructor.
Definition: tyt_codeplug.cc:2428
virtual void clear()
Abstract method to reset the element within the codeplug.
Definition: tyt_codeplug.cc:2433
EmergencySettingsElement(uint8_t *ptr, size_t size)
Hidden constructor.
Definition: tyt_codeplug.cc:2416
virtual void enableRadioDisable(bool enable)
Enables/disables radio disable.
Definition: tyt_codeplug.cc:2467
virtual unsigned messageLimit() const
Returns the message limit.
Definition: tyt_codeplug.cc:2490
virtual void setMessageLimit(unsigned limit)
Sets the message limit.
Definition: tyt_codeplug.cc:2494
virtual unsigned remoteMonitorDuration() const
Returns the remote monitor duration in seconds.
Definition: tyt_codeplug.cc:2472
virtual unsigned txTimeOut() const
Returns the TX time-out in ms.
Definition: tyt_codeplug.cc:2481
virtual bool radioDisable() const
Returns true if radio disable is enabled.
Definition: tyt_codeplug.cc:2463
virtual void setRemoteMonitorDuration(unsigned sec)
Sets the remote monitor duration in seconds.
Definition: tyt_codeplug.cc:2476
virtual bool emergencyRemoteMonitor() const
Returns true if emergency remote monitor is enabled.
Definition: tyt_codeplug.cc:2445
Represents a single emergency system within the radio.
Definition: tyt_codeplug.hh:992
virtual void setPoliteRetries(unsigned num)
Sets the number of polite retries.
Definition: tyt_codeplug.cc:2578
virtual ~EmergencySystemElement()
Destructor.
Definition: tyt_codeplug.cc:2514
AlarmType
Possible alarm type for the system.
Definition: tyt_codeplug.hh:995
@ REGULAR
Regular alarm sound.
Definition: tyt_codeplug.hh:997
@ SILENT
Silent alarm.
Definition: tyt_codeplug.hh:998
@ SILENT_W_VOICE
silent alarm with voice.
Definition: tyt_codeplug.hh:999
@ DISABLED
No alarm at all.
Definition: tyt_codeplug.hh:996
virtual AlarmType alarmType() const
Returns the alarm type of the system.
Definition: tyt_codeplug.cc:2547
virtual unsigned politeRetries() const
Returns the number of polite retries.
Definition: tyt_codeplug.cc:2574
bool isValid() const
Returns true if the pointer is not null.
Definition: tyt_codeplug.cc:2519
EmergencySystemElement(uint8_t *ptr, size_t size)
Hidden constructor.
Definition: tyt_codeplug.cc:2502
virtual void setAlarmMode(AlarmMode mode)
Sets the alarm mode of the system.
Definition: tyt_codeplug.cc:2560
virtual void setName(const QString &name)
Sets the name of the system.
Definition: tyt_codeplug.cc:2542
virtual uint16_t revertChannelIndex() const
Returns the index of the revert channel.
Definition: tyt_codeplug.cc:2596
virtual void setHotMICDuration(unsigned sec)
Sets the hot MIC duration in seconds.
Definition: tyt_codeplug.cc:2587
virtual bool revertChannelIsSelected() const
Returns true if the revert channel is the selected one.
Definition: tyt_codeplug.cc:2592
virtual void revertChannelSelected()
Sets revert channel to selected channel.
Definition: tyt_codeplug.cc:2604
AlarmMode
Possible alarm modes for the system.
Definition: tyt_codeplug.hh:1002
@ ALARM_W_VOICE
Alarm + call + voice?
Definition: tyt_codeplug.hh:1005
@ ALARM_W_CALL
Alarm + call.
Definition: tyt_codeplug.hh:1004
@ ALARM
Just alarm.
Definition: tyt_codeplug.hh:1003
virtual void setRevertChannelIndex(uint16_t idx)
Sets the revert channel index.
Definition: tyt_codeplug.cc:2600
virtual unsigned impoliteRetries() const
Returns the number of impolite retries.
Definition: tyt_codeplug.cc:2565
void clear()
Abstract method to reset the element within the codeplug.
Definition: tyt_codeplug.cc:2524
virtual void setImpoliteRetries(unsigned num)
Sets the number of impolite retries.
Definition: tyt_codeplug.cc:2569
virtual unsigned hotMICDuration() const
Returns the hot MIC duration in seconds.
Definition: tyt_codeplug.cc:2583
virtual void setAlarmType(AlarmType type)
Sets the alarm type of the system.
Definition: tyt_codeplug.cc:2551
virtual QString name() const
Returns the name of the system.
Definition: tyt_codeplug.cc:2538
virtual AlarmMode alarmMode() const
Returns the alarm mode of the system.
Definition: tyt_codeplug.cc:2556
Represents all encryption keys and settings within the codeplug on the device.
Definition: tyt_codeplug.hh:1065
virtual QByteArray enhancedKey(unsigned n) const
Returns the n-th "enhanced" key (128bit).
Definition: tyt_codeplug.cc:2643
virtual QByteArray basicKey(unsigned n) const
Returns the n-th "basic" key (16bit).
Definition: tyt_codeplug.cc:2664
virtual void setBasicKey(unsigned n, const QByteArray &key)
Sets the n-th "basic" key (16bit).
Definition: tyt_codeplug.cc:2668
static constexpr unsigned int size()
Returns the size of the element.
Definition: tyt_codeplug.hh:1079
virtual bool isEnhancedKeySet(unsigned n) const
Returns true if the n-th "enhanced" key (128bit) is set.
Definition: tyt_codeplug.cc:2634
virtual void setEnhancedKey(unsigned n, const QByteArray &key)
Sets the n-th "enhanced" key (128bit).
Definition: tyt_codeplug.cc:2648
virtual bool updateCommercialExt(Context &ctx)
Updates the commercial extension.
Definition: tyt_codeplug.cc:2690
virtual bool fromCommercialExt(CommercialExtension *encr, Context &ctx)
Encodes given commercial extension.
Definition: tyt_codeplug.cc:2675
virtual ~EncryptionElement()
Destructor.
Definition: tyt_codeplug.cc:2624
virtual bool linkCommercialExt(CommercialExtension *ext, Context &ctx)
Links the given encryption extension.
Definition: tyt_codeplug.cc:2717
EncryptionElement(uint8_t *ptr, size_t size)
Hidden constructor.
Definition: tyt_codeplug.cc:2612
void clear()
Abstract method to reset the element within the codeplug.
Definition: tyt_codeplug.cc:2629
virtual bool isBasicKeySet(unsigned n) const
Returns true if the n-th "basic" key (16bit) is set.
Definition: tyt_codeplug.cc:2656
Represents a single GPS system within the codeplug.
Definition: tyt_codeplug.hh:645
virtual void setRevertChannelIndex(uint16_t idx)
Sets the revert channel index (+1).
Definition: tyt_codeplug.cc:1767
virtual ~GPSSystemElement()
Destructor.
Definition: tyt_codeplug.cc:1739
virtual bool repeatIntervalDisabled() const
Returns true if the repeat interval is disabled.
Definition: tyt_codeplug.cc:1776
virtual void setDestinationContactIndex(uint16_t idx)
Sets the destination contact index (+1).
Definition: tyt_codeplug.cc:1801
virtual uint16_t revertChannelIndex() const
Returns the revert channel index (+1).
Definition: tyt_codeplug.cc:1763
virtual void disableRepeatInterval()
Disables the GPS repeat interval.
Definition: tyt_codeplug.cc:1788
virtual void disableDestinationContact()
Disables the destination contact.
Definition: tyt_codeplug.cc:1805
virtual GPSSystem * toGPSSystemObj()
Constructs a GPS system.
Definition: tyt_codeplug.cc:1823
virtual void setRevertChannelSelected()
Sets the revert channel to the current one.
Definition: tyt_codeplug.cc:1771
virtual bool fromGPSSystemObj(GPSSystem *sys, Context &ctx)
Encodes the given GPS system.
Definition: tyt_codeplug.cc:1810
virtual bool revertChannelIsSelected() const
Returns true if the revert channel is the current one.
Definition: tyt_codeplug.cc:1759
void clear()
Abstract method to reset the element within the codeplug.
Definition: tyt_codeplug.cc:1750
virtual bool linkGPSSystemObj(GPSSystem *sys, Context &ctx)
Links the given GPS system.
Definition: tyt_codeplug.cc:1828
virtual bool destinationContactDisabled() const
Returns true if the destination contact is disabled.
Definition: tyt_codeplug.cc:1793
virtual uint16_t destinationContactIndex() const
Returns the destination contact index (+1).
Definition: tyt_codeplug.cc:1797
GPSSystemElement(uint8_t *ptr, size_t size)
Hidden constructor.
Definition: tyt_codeplug.cc:1727
virtual unsigned repeatInterval() const
Returns the repeat interval.
Definition: tyt_codeplug.cc:1780
bool isValid() const
Returns true if the pointer is not null.
Definition: tyt_codeplug.cc:1744
virtual void setRepeatInterval(unsigned sec)
Sets the repeat interval in seconds.
Definition: tyt_codeplug.cc:1784
Codeplug representation of the general settings.
Definition: tyt_codeplug.hh:443
virtual bool saveModeRX() const
Returns true, if save RX mode is enabled.
Definition: tyt_codeplug.cc:1293
virtual void setGroupCallHangTime(unsigned ms)
Sets the group call hang time.
Definition: tyt_codeplug.cc:1379
virtual void setCallAlertToneContinuous()
Sets the call-alert tone continuous.
Definition: tyt_codeplug.cc:1428
virtual TyTSettingsExtension::MonitorType monitorType() const
Returns the monitor type.
Definition: tyt_codeplug.cc:1266
virtual void setScanDigitalHangTime(unsigned ms)
Sets the scan digital hang time.
Definition: tyt_codeplug.cc:1455
virtual bool callAlertToneIsContinuous() const
Returns true if the call-alert is continuous.
Definition: tyt_codeplug.cc:1415
virtual unsigned callAlertToneDuration() const
Returns the call-alert tone duration.
Definition: tyt_codeplug.cc:1419
virtual void setScanAnalogHangTime(unsigned ms)
Sets the scan analog hang time.
Definition: tyt_codeplug.cc:1465
virtual void setLoneWorkerResponseTime(unsigned min)
Sets the lone-worker response time.
Definition: tyt_codeplug.cc:1437
virtual QString radioName() const
Returns the radio name.
Definition: tyt_codeplug.cc:1550
virtual ~GeneralSettingsElement()
Destructor.
Definition: tyt_codeplug.cc:1187
virtual QString introLine2() const
Returns the second intro line.
Definition: tyt_codeplug.cc:1257
virtual QString introLine1() const
Returns the first intro line.
Definition: tyt_codeplug.cc:1248
virtual void setRadioName(const QString &name)
Sets the radio name.
Definition: tyt_codeplug.cc:1554
virtual void keypadLockTimeSetManual()
Set keypad lock to manual.
Definition: tyt_codeplug.cc:1502
virtual unsigned keypadLockTime() const
Returns the keypad lock time.
Definition: tyt_codeplug.cc:1493
virtual unsigned txPreambleDuration() const
Returns the TX preamble duration.
Definition: tyt_codeplug.cc:1365
virtual unsigned privateCallHangTime() const
Returns the private call hang time.
Definition: tyt_codeplug.cc:1385
virtual void setPCProgPassword(const QString &pass)
Sets the PC programming password.
Definition: tyt_codeplug.cc:1541
virtual void setSaveModeRX(bool enable)
Enables/disables save mode RX.
Definition: tyt_codeplug.cc:1297
virtual unsigned scanDigitalHangTime() const
Returns the scan digital hang time.
Definition: tyt_codeplug.cc:1451
virtual void setRadioProgPassword(uint32_t passwd)
Sets the 8-digit radio programming password.
Definition: tyt_codeplug.cc:1524
void clear()
Abstract method to reset the element within the codeplug.
Definition: tyt_codeplug.cc:1192
virtual bool backlightIsAlways() const
Returns true if the backlight is always on.
Definition: tyt_codeplug.cc:1471
virtual uint32_t dmrId() const
Returns the default DMR ID of the radio.
Definition: tyt_codeplug.cc:1356
virtual uint32_t powerOnPassword() const
Returns the 8-digit power-on password.
Definition: tyt_codeplug.cc:1507
virtual unsigned scanAnalogHangTime() const
Returns the scan analog hang time.
Definition: tyt_codeplug.cc:1461
virtual bool talkPermitToneDigital() const
Returns true, if the talk permit tone is enabled for DMR channels.
Definition: tyt_codeplug.cc:1329
virtual void setIntroLine2(const QString line)
Sets the second intro line.
Definition: tyt_codeplug.cc:1261
virtual void setTXPreambleDuration(unsigned ms)
Sets the TX preamble duration.
Definition: tyt_codeplug.cc:1369
virtual bool allLEDsDisabled() const
Returns true if all LEDs are disabled.
Definition: tyt_codeplug.cc:1275
virtual bool allTonesDisabled() const
Returns true, if all tones are disabled.
Definition: tyt_codeplug.cc:1302
virtual bool updateConfig(Config *config)
Updates config from general settings.
Definition: tyt_codeplug.cc:1615
GeneralSettingsElement(uint8_t *ptr, size_t size)
Hidden constructor.
Definition: tyt_codeplug.cc:1175
virtual unsigned loneWorkerResponseTime() const
Returns the lone-worker response time.
Definition: tyt_codeplug.cc:1433
virtual void setBacklightTime(unsigned sec)
Sets the backlight time.
Definition: tyt_codeplug.cc:1479
virtual void radioProgPasswordDisable()
Disables the radio programming password.
Definition: tyt_codeplug.cc:1528
virtual void setLoneWorkerReminderTime(unsigned min)
Sets the lone-worker reminder time.
Definition: tyt_codeplug.cc:1446
virtual void setLowBatteryInterval(unsigned sec)
Sets the low-battery warning interval.
Definition: tyt_codeplug.cc:1409
virtual void setIntroLine1(const QString line)
Sets the first intro line.
Definition: tyt_codeplug.cc:1252
virtual QString pcProgPassword() const
Returns the PC programming password.
Definition: tyt_codeplug.cc:1537
virtual bool pcProgPasswordEnabled() const
Returns true, if the PC programming password is enabled.
Definition: tyt_codeplug.cc:1533
virtual void setVOXSesitivity(unsigned ms)
Sets the group call hang time.
Definition: tyt_codeplug.cc:1399
virtual unsigned lowBatteryInterval() const
Returns the low-battery warning interval.
Definition: tyt_codeplug.cc:1405
virtual void setPrivateCallHangTime(unsigned ms)
Sets the private call hang time.
Definition: tyt_codeplug.cc:1389
virtual unsigned voxSesitivity() const
Returns the VOX sensitivity.
Definition: tyt_codeplug.cc:1395
virtual bool talkPermitToneAnalog() const
Returns true, if the talk permit tone is enabled for analog channels.
Definition: tyt_codeplug.cc:1338
virtual void disableAllTones(bool disable)
Enables/disables all tones.
Definition: tyt_codeplug.cc:1306
virtual void pcProgPasswordDisable()
Disables the PC programming password.
Definition: tyt_codeplug.cc:1545
virtual bool radioProgPasswordEnabled() const
Returns true, if the radio programming password is enabled.
Definition: tyt_codeplug.cc:1516
virtual void backlightTimeSetAlways()
Turns the backlight always on.
Definition: tyt_codeplug.cc:1484
virtual unsigned groupCallHangTime() const
Returns the group call hang time.
Definition: tyt_codeplug.cc:1375
virtual void setDMRId(uint32_t id)
Sets the default DMR ID of the radio.
Definition: tyt_codeplug.cc:1360
virtual void setKeypadLockTime(unsigned sec)
Sets the keypad lock time.
Definition: tyt_codeplug.cc:1497
virtual void enableIntroPicture(bool enable)
Enables/disables the intro picture.
Definition: tyt_codeplug.cc:1351
virtual uint32_t radioProgPassword() const
Returns the 8-digit radio programming password.
Definition: tyt_codeplug.cc:1520
virtual bool fromConfig(const Config *config)
Encodes the general settings.
Definition: tyt_codeplug.cc:1559
virtual bool savePreamble() const
Returns true, if save preamble is enabled.
Definition: tyt_codeplug.cc:1284
virtual void disableAllLEDs(bool disable)
Enables/disables all LEDs.
Definition: tyt_codeplug.cc:1279
virtual void setSavePreamble(bool enable)
Enables/disables save preamble.
Definition: tyt_codeplug.cc:1288
virtual bool introPicture() const
Returns true, if intro picture is enabled.
Definition: tyt_codeplug.cc:1347
virtual unsigned backlightTime() const
Returns the backlight time.
Definition: tyt_codeplug.cc:1475
virtual void enablePasswdAndLock(bool enable)
Enables/disables password and lock.
Definition: tyt_codeplug.cc:1324
virtual void setMonitorType(TyTSettingsExtension::MonitorType type)
Sets the monitor type.
Definition: tyt_codeplug.cc:1270
virtual bool chFreeIndicationTone() const
Returns true, if the channel free indication tone is enabled.
Definition: tyt_codeplug.cc:1311
virtual void setCallAlertToneDuration(unsigned sec)
Sets the call-alert tone duration.
Definition: tyt_codeplug.cc:1423
virtual void setChFreeIndicationTone(bool enable)
Enables/disables the channel free indication tone.
Definition: tyt_codeplug.cc:1315
virtual unsigned loneWorkerReminderTime() const
Returns the lone-worker reminder time.
Definition: tyt_codeplug.cc:1442
virtual void setPowerOnPassword(uint32_t passwd)
Sets the 8-digit power-on password.
Definition: tyt_codeplug.cc:1511
virtual bool passwdAndLock() const
Returns true, if password and lock is enabled.
Definition: tyt_codeplug.cc:1320
virtual void enableTalkPermitToneAnalog(bool enable)
Enables/disables talk permit tone for analog channels.
Definition: tyt_codeplug.cc:1342
virtual bool keypadLockIsManual() const
Returns true if the keypad lock is manual.
Definition: tyt_codeplug.cc:1489
virtual void enableTalkPermitToneDigital(bool enable)
Enables/disables talk permit tone for DMR channels.
Definition: tyt_codeplug.cc:1333
Representation of an RX group list within the codeplug.
Definition: tyt_codeplug.hh:344
virtual ~GroupListElement()
Destructor.
Definition: tyt_codeplug.cc:861
void clear()
Abstract method to reset the element within the codeplug.
Definition: tyt_codeplug.cc:871
virtual uint16_t memberIndex(unsigned n) const
Returns the n-th member index.
Definition: tyt_codeplug.cc:886
GroupListElement(uint8_t *ptr, size_t size)
Constructor.
Definition: tyt_codeplug.cc:849
virtual RXGroupList * toGroupListObj(Context &ctx)
Creates a group list object.
Definition: tyt_codeplug.cc:920
virtual QString name() const
Returns the name of the group list.
Definition: tyt_codeplug.cc:876
bool isValid() const
Returns true if the pointer is not null.
Definition: tyt_codeplug.cc:866
virtual bool fromGroupListObj(const RXGroupList *lst, Context &ctx)
Encodes the given group list.
Definition: tyt_codeplug.cc:896
virtual void setMemberIndex(unsigned n, uint16_t idx)
Sets the n-th member index.
Definition: tyt_codeplug.cc:891
virtual bool linkGroupListObj(RXGroupList *lst, Context &ctx)
Links the given group list.
Definition: tyt_codeplug.cc:928
virtual void setName(const QString &nm)
Sets the name of the group list.
Definition: tyt_codeplug.cc:881
Bank of pre-defined SMS text messages.
Definition: tyt_codeplug.hh:1163
virtual MessageElement message(unsigned int i) const
Returns the i-th message.
Definition: tyt_codeplug.cc:2802
MessageBankElement(uint8_t *ptr, size_t size)
Hidden constructor.
Definition: tyt_codeplug.cc:2783
void clear()
Abstract method to reset the element within the codeplug.
Definition: tyt_codeplug.cc:2796
virtual bool encode(Context &ctx, const Flags &flags, const ErrorStack &err=ErrorStack())
Encodes all messages.
Definition: tyt_codeplug.cc:2808
virtual bool decode(Context &ctx, const ErrorStack &err=ErrorStack())
Decodes all messages.
Definition: tyt_codeplug.cc:2824
static constexpr unsigned int size()
The size of the element.
Definition: tyt_codeplug.hh:1173
Basic pre-defined SMS text message.
Definition: tyt_codeplug.hh:1128
virtual QString text() const
Retunrs the text of the message.
Definition: tyt_codeplug.cc:2749
bool isValid() const
Returns true if the pointer is not null.
Definition: tyt_codeplug.cc:2744
virtual bool encode(SMSTemplate *sms, const ErrorStack &err=ErrorStack())
Encodes the given SMS template.
Definition: tyt_codeplug.cc:2758
virtual void setText(const QString &text)
Sets the text of the message.
Definition: tyt_codeplug.cc:2753
void clear()
Abstract method to reset the element within the codeplug.
Definition: tyt_codeplug.cc:2739
virtual SMSTemplate * decode(const ErrorStack &err=ErrorStack())
Decodes the given SMS template.
Definition: tyt_codeplug.cc:2767
MessageElement(uint8_t *ptr, size_t size)
Hidden constructor.
Definition: tyt_codeplug.cc:2726
static constexpr unsigned int size()
The size of the element.
Definition: tyt_codeplug.hh:1138
Represents a single one-touch setting within the codeplug on the radio.
Definition: tyt_codeplug.hh:887
virtual void setAction(Action action)
Sets the action to perform.
Definition: tyt_codeplug.cc:2381
virtual uint16_t contactIndex() const
Returns the contact index +1.
Definition: tyt_codeplug.cc:2404
virtual ~OneTouchSettingElement()
Destructor.
Definition: tyt_codeplug.cc:2358
virtual uint8_t messageIndex() const
Returns the message index +1.
Definition: tyt_codeplug.cc:2395
virtual void setMessageIndex(uint8_t idx)
Sets the message index +1.
Definition: tyt_codeplug.cc:2399
Type
Possible one-touch action types.
Definition: tyt_codeplug.hh:900
@ Digital
Digital call/message.
Definition: tyt_codeplug.hh:902
@ Analog
Analog call.
Definition: tyt_codeplug.hh:903
@ Disabled
Disabled one-touch.
Definition: tyt_codeplug.hh:901
virtual void setActionType(Type action)
Sets the type of the action.
Definition: tyt_codeplug.cc:2390
OneTouchSettingElement(uint8_t *ptr, size_t size)
Hidden constructor.
Definition: tyt_codeplug.cc:2346
virtual void setContactIndex(uint16_t idx)
Sets the contact index +1.
Definition: tyt_codeplug.cc:2408
virtual Action action() const
Returns the action to perform.
Definition: tyt_codeplug.cc:2377
Action
Possible one-touch actions.
Definition: tyt_codeplug.hh:890
@ CALL
Call someone, see contact.
Definition: tyt_codeplug.hh:891
@ MESSAGE
Send a message, see message.
Definition: tyt_codeplug.hh:892
@ DTMF4
Analog call DTMF system 4.
Definition: tyt_codeplug.hh:896
@ DTMF2
Analog call DTMF system 2.
Definition: tyt_codeplug.hh:894
@ DTMF3
Analog call DTMF system 3.
Definition: tyt_codeplug.hh:895
@ DTMF1
Analog call DTMF system 1.
Definition: tyt_codeplug.hh:893
bool isValid() const
Returns true if the pointer is not null.
Definition: tyt_codeplug.cc:2363
virtual Type actionType() const
Returns the type of the action.
Definition: tyt_codeplug.cc:2386
void clear()
Abstract method to reset the element within the codeplug.
Definition: tyt_codeplug.cc:2368
Represents a scan list within the codeplug.
Definition: tyt_codeplug.hh:381
virtual unsigned holdTime() const
Returns the hold time in ms.
Definition: tyt_codeplug.cc:1028
virtual void setPriorityChannel1Index(uint16_t idx)
Set the index (+1) of the first priority channel.
Definition: tyt_codeplug.cc:1003
virtual void setHoldTime(unsigned time)
Sets the hold time in ms.
Definition: tyt_codeplug.cc:1033
virtual void setMemberIndex(unsigned n, uint16_t idx)
Sets the n-th member index.
Definition: tyt_codeplug.cc:1053
virtual ScanList * toScanListObj(Context &ctx)
Creates a scan list.
Definition: tyt_codeplug.cc:1106
virtual void setPriorityChannel2Index(uint16_t idx)
Set the index (+1) of the second priority channel.
Definition: tyt_codeplug.cc:1013
bool isValid() const
Returns true if the pointer is not null.
Definition: tyt_codeplug.cc:970
virtual uint16_t txChannelIndex() const
Returns the index (+1) of the TX channel.
Definition: tyt_codeplug.cc:1018
virtual bool fromScanListObj(const ScanList *lst, Context &ctx)
Encodes the given scan list.
Definition: tyt_codeplug.cc:1058
virtual uint16_t priorityChannel1Index() const
Returns the index (+1) of the first priority channel.
Definition: tyt_codeplug.cc:998
virtual unsigned prioritySampleTime() const
Returns the priority sample time in ms.
Definition: tyt_codeplug.cc:1038
virtual QString name() const
Returns the name of the scan list.
Definition: tyt_codeplug.cc:988
ScanListElement(uint8_t *ptr, size_t size)
Constructor.
Definition: tyt_codeplug.cc:953
virtual uint16_t memberIndex(unsigned n) const
Returns the n-th member index.
Definition: tyt_codeplug.cc:1048
virtual ~ScanListElement()
Destructor.
Definition: tyt_codeplug.cc:965
virtual void setTXChannelIndex(uint16_t idx)
Sets the index (+1) of the TX channel.
Definition: tyt_codeplug.cc:1023
virtual void setName(const QString &nm)
Sets the name of the scan list.
Definition: tyt_codeplug.cc:993
void clear()
Abstract method to reset the element within the codeplug.
Definition: tyt_codeplug.cc:975
virtual void setPrioritySampleTime(unsigned time)
Sets the priority sample time in ms.
Definition: tyt_codeplug.cc:1043
virtual bool linkScanListObj(ScanList *lst, Context &ctx)
Links the scan list object.
Definition: tyt_codeplug.cc:1122
virtual uint16_t priorityChannel2Index() const
Returns the index (+1) of the second priority channel.
Definition: tyt_codeplug.cc:1008
Codeplug representation of programming time-stamp and CPS version.
Definition: tyt_codeplug.hh:618
virtual void setTimestamp(const QDateTime &ts)
Sets the time stamp.
Definition: tyt_codeplug.cc:1700
virtual QString cpsVersion() const
Returns the CPS version.
Definition: tyt_codeplug.cc:1710
virtual ~TimestampElement()
Destructor.
Definition: tyt_codeplug.cc:1683
virtual QDateTime timestamp() const
Returns the time stamp.
Definition: tyt_codeplug.cc:1695
TimestampElement(uint8_t *ptr, size_t size)
Hidden constructor.
Definition: tyt_codeplug.cc:1671
void clear()
Abstract method to reset the element within the codeplug.
Definition: tyt_codeplug.cc:1688
Represents a zone within the codeplug.
Definition: tyt_codeplug.hh:307
virtual bool linkZone(Zone *zone, Context &ctx) const
Links the created zone to channels.
Definition: tyt_codeplug.cc:829
virtual bool fromZoneObj(const Zone *zone, Context &ctx)
Encodes a given zone object.
Definition: tyt_codeplug.cc:810
virtual QString name() const
Returns the name of the zone.
Definition: tyt_codeplug.cc:792
virtual uint16_t memberIndex(unsigned n) const
Returns the index (+1) of the n-th member.
Definition: tyt_codeplug.cc:801
ZoneElement(uint8_t *ptr, size_t size)
Constructor.
Definition: tyt_codeplug.cc:765
virtual void setName(const QString &setName)
Sets the name of the zone.
Definition: tyt_codeplug.cc:796
virtual void setMemberIndex(unsigned n, uint16_t idx)
Sets the index (+1) of the n-th member.
Definition: tyt_codeplug.cc:805
virtual Zone * toZoneObj() const
Creates a zone.
Definition: tyt_codeplug.cc:822
virtual ~ZoneElement()
Desturctor.
Definition: tyt_codeplug.cc:777
void clear()
Abstract method to reset the element within the codeplug.
Definition: tyt_codeplug.cc:787
bool isValid() const
Returns true if the pointer is not null.
Definition: tyt_codeplug.cc:782
Base class of all TyT codeplugs.
Definition: tyt_codeplug.hh:26
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 createContacts(Config *config, Context &ctx, const ErrorStack &err=ErrorStack())=0
Adds a digital contact to the configuration for each one in the codeplug.
virtual void clearPositioningSystems()=0
Clears all positioning systems in the codeplug.
virtual void clearGeneralSettings()=0
Clears the general settings in the codeplug.
virtual void clear()
Clears and resets the complete codeplug to some default values.
Definition: tyt_codeplug.cc:2918
virtual bool createZones(Config *config, Context &ctx, const ErrorStack &err=ErrorStack())=0
Adds a zone 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:2855
virtual void clearMenuSettings()=0
Clears the menu settings in the codeplug.
virtual bool encodeTimestamp()=0
Sets the time-stamp.
virtual bool encodeGeneralSettings(Config *config, const Flags &flags, Context &ctx, const ErrorStack &err=ErrorStack())=0
Updates the general settings from the given configuration.
virtual bool encodePrivacyKeys(Config *config, const Flags &flags, Context &ctx, const ErrorStack &err=ErrorStack())=0
Encodes the encryption keys.
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:2981
virtual bool linkScanLists(Context &ctx, const ErrorStack &err=ErrorStack())=0
Links all added scan lists within the configuration.
virtual bool createPositioningSystems(Config *config, Context &ctx, const ErrorStack &err=ErrorStack())=0
Adds a GPS positioning system to the configuration for each one in the codeplug.
virtual bool encodeChannels(Config *config, const Flags &flags, Context &ctx, const ErrorStack &err=ErrorStack())=0
Encodes all channels 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:2949
virtual bool encodeGroupLists(Config *config, 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 void clearScanLists()=0
Clears all scan lists in the codeplug.
virtual bool decodePrivacyKeys(Config *config, Context &ctx, const ErrorStack &err=ErrorStack())=0
Decodes the encryption keys.
virtual ~TyTCodeplug()
Destructor.
Definition: tyt_codeplug.cc:2850
virtual bool linkZones(Context &ctx, const ErrorStack &err=ErrorStack())=0
Links all added zones within the configuration.
virtual bool createChannels(Config *config, Context &ctx, const ErrorStack &err=ErrorStack())=0
Adds a channel 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.
virtual bool decodeButtonSetttings(Config *config, const ErrorStack &err=ErrorStack())=0
Decodes the button settings.
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:2968
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.
virtual void clearZones()=0
Clears all zones in the codeplug.
virtual bool createScanLists(Config *config, Context &ctx, const ErrorStack &err=ErrorStack())=0
Adds a scan list to the configuration for each one in the codeplug.
virtual bool decodeGeneralSettings(Config *config, const ErrorStack &err=ErrorStack())=0
Updates the given configuration from the general settings.
TyTCodeplug(QObject *parent=nullptr)
Empty constructor.
Definition: tyt_codeplug.cc:2844
virtual bool createGroupLists(Config *config, Context &ctx, const ErrorStack &err=ErrorStack())=0
Adds a RX group list to the configuration for each one in the codeplug.
virtual bool encodePositioningSystems(Config *config, const Flags &flags, Context &ctx, const ErrorStack &err=ErrorStack())=0
Encodes all DMR positioning systems in the configuration into the codeplug.
virtual bool encodeButtonSettings(Config *config, const Flags &flags, Context &ctx, const ErrorStack &err=ErrorStack())=0
Encodes the button settings.
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:3052
virtual bool encodeZones(Config *config, const Flags &flags, Context &ctx, const ErrorStack &err=ErrorStack())=0
Encodes all zones in the configuration into the codeplug.
virtual void clearPrivacyKeys()=0
Clears all encryption keys in the codeplug.
virtual bool encodeScanLists(Config *config, const Flags &flags, Context &ctx, const ErrorStack &err=ErrorStack())=0
Encodes all scan lists in the configuration into the codeplug.
virtual bool encodeTextMessages(Context &ctx, const Flags &flags, const ErrorStack &err=ErrorStack())=0
Encodes text messages.
virtual void clearTextMessages()=0
Clears all text messages in the codeplug.
virtual bool encodeContacts(Config *config, const Flags &flags, Context &ctx, const ErrorStack &err=ErrorStack())=0
Encodes all digital contacts in the configuration into the codeplug.
Represents a zone within the generic configuration.
Definition: zone.hh:15
Some limits for the element.
Definition: tyt_codeplug.hh:1106
static constexpr unsigned int advancedKeys()
Specifies the maximum number of advanced (AES) encryption keys (128bit).
Definition: tyt_codeplug.hh:1110
static constexpr unsigned int basicKeys()
Specifies the maxumum number of basic (DMR) encryption keys (16bit).
Definition: tyt_codeplug.hh:1108
Some internal offsets.
Definition: tyt_codeplug.hh:1115
Some Limits.
Definition: tyt_codeplug.hh:1187
Some limits.
Definition: tyt_codeplug.hh:1156
static constexpr unsigned int length()
Maximum message length.
Definition: tyt_codeplug.hh:1157