1#ifndef MD2017_CODEPLUG_HH
2#define MD2017_CODEPLUG_HH
4#include "tyt_codeplug.hh"
5#include "uv390_codeplug.hh"
157 static constexpr unsigned int messages() {
return 0x002180; }
Base class for all codeplug contexts.
Definition codeplug.hh:331
Certain flags passed to CodePlug::encode to control the transfer and encoding of the codeplug.
Definition codeplug.hh:24
Implements a stack of error messages to provide a pretty formatted error traceback.
Definition errorstack.hh:43
virtual void clearVFOSettings()
Resets VFO settings.
Definition md2017_codeplug.cc:513
virtual void clearBootSettings()
Resets/clears the boot settings.
Definition md2017_codeplug.cc:429
void clearTextMessages()
Clears all text messages in the codeplug.
Definition md2017_codeplug.cc:490
UV390Codeplug::ZoneExtElement ZoneExtElement
Reuse TyT MD-UV390 zone extension element.
Definition md2017_codeplug.hh:63
bool createPositioningSystems(Context &ctx, const ErrorStack &err=ErrorStack())
Adds a GPS positioning system to the configuration for each one in the codeplug.
Definition md2017_codeplug.cc:397
bool encodeZones(const Flags &flags, Context &ctx, const ErrorStack &err=ErrorStack())
Encodes all zones in the configuration into the codeplug.
Definition md2017_codeplug.cc:221
bool linkZones(Context &ctx, const ErrorStack &err=ErrorStack())
Links all added zones within the configuration.
Definition md2017_codeplug.cc:255
bool linkPositioningSystems(Context &ctx, const ErrorStack &err=ErrorStack())
Links all added positioning systems within the configuration.
Definition md2017_codeplug.cc:414
void clearMenuSettings()
Clears the menu settings in the codeplug.
Definition md2017_codeplug.cc:434
bool createScanLists(Context &ctx, const ErrorStack &err=ErrorStack())
Adds a scan list to the configuration for each one in the codeplug.
Definition md2017_codeplug.cc:345
bool encodeButtonSettings(const Flags &flags, Context &ctx, const ErrorStack &err=ErrorStack())
Encodes the button settings.
Definition md2017_codeplug.cc:444
bool createChannels(Context &ctx, const ErrorStack &err=ErrorStack())
Adds a channel to the configuration for each one in the codeplug.
Definition md2017_codeplug.cc:134
void clearTimestamp()
Clears the time-stamp in the codeplug.
Definition md2017_codeplug.cc:83
bool decodeButtonSetttings(Context &ctx, const ErrorStack &err=ErrorStack())
Decodes the button settings.
Definition md2017_codeplug.cc:451
UV390Codeplug::MenuSettingsElement MenuSettingsElement
Reuse TyT MD-UV390 menu settings element.
Definition md2017_codeplug.hh:69
bool encodeChannels(const Flags &flags, Context &ctx, const ErrorStack &err=ErrorStack())
Encodes all channels in the configuration into the codeplug.
Definition md2017_codeplug.cc:119
bool encodePositioningSystems(const Flags &flags, Context &ctx, const ErrorStack &err=ErrorStack())
Encodes all DMR positioning systems in the configuration into the codeplug.
Definition md2017_codeplug.cc:384
void clearChannels()
Clears all channels in the codeplug.
Definition md2017_codeplug.cc:112
bool decodeTextMessages(Context &ctx, const ErrorStack &err)
Decodes text messages.
Definition md2017_codeplug.cc:500
bool encodeGeneralSettings(const Flags &flags, Context &ctx, const ErrorStack &err=ErrorStack())
Updates the general settings from the given configuration.
Definition md2017_codeplug.cc:100
void clearContacts()
Clears all contacts in the codeplug.
Definition md2017_codeplug.cc:175
UV390Codeplug::ChannelElement ChannelElement
Reuse TyT MD-UV390 channel element.
Definition md2017_codeplug.hh:57
void clearGroupLists()
Clears all RX group lists in the codeplug.
Definition md2017_codeplug.cc:275
UV390Codeplug::BootSettingsElement BootSettingsElement
Reuse TyT MD-UV390 boot settings element.
Definition md2017_codeplug.hh:66
void clearEmergencySystems()
Clears all emergency systems in the codeplug.
Definition md2017_codeplug.cc:506
bool encodeGroupLists(const Flags &flags, Context &ctx, const ErrorStack &err=ErrorStack())
Encodes all group lists in the configuration into the codeplug.
Definition md2017_codeplug.cc:281
void clearGeneralSettings()
Clears the general settings in the codeplug.
Definition md2017_codeplug.cc:95
bool encodeTextMessages(Context &ctx, const Flags &flags, const ErrorStack &err)
Encodes text messages.
Definition md2017_codeplug.cc:495
UV390Codeplug::VFOChannelElement VFOChannelElement
Reuse TyT MD-UV390 VFO channel element.
Definition md2017_codeplug.hh:60
bool decodePrivacyKeys(Context &ctx, const ErrorStack &err=ErrorStack())
Decodes the encryption keys.
Definition md2017_codeplug.cc:477
bool linkScanLists(Context &ctx, const ErrorStack &err=ErrorStack())
Links all added scan lists within the configuration.
Definition md2017_codeplug.cc:362
void clearScanLists()
Clears all scan lists in the codeplug.
Definition md2017_codeplug.cc:324
bool linkChannels(Context &ctx, const ErrorStack &err=ErrorStack())
Links all added channels within the configuration.
Definition md2017_codeplug.cc:155
void clearPrivacyKeys()
Clears all encryption keys in the codeplug.
Definition md2017_codeplug.cc:458
bool linkGroupLists(Context &ctx, const ErrorStack &err=ErrorStack())
Links all added RX group lists within the configuration.
Definition md2017_codeplug.cc:310
bool encodePrivacyKeys(const Flags &flags, Context &ctx, const ErrorStack &err)
Encodes the encryption keys.
Definition md2017_codeplug.cc:463
bool encodeContacts(const Flags &flags, Context &ctx, const ErrorStack &err=ErrorStack())
Encodes all digital contacts in the configuration into the codeplug.
Definition md2017_codeplug.cc:182
void clearButtonSettings()
Clears the button settings in the codeplug.
Definition md2017_codeplug.cc:439
bool createZones(Context &ctx, const ErrorStack &err=ErrorStack())
Adds a zone to the configuration for each one in the codeplug.
Definition md2017_codeplug.cc:238
void clearPositioningSystems()
Clears all positioning systems in the codeplug.
Definition md2017_codeplug.cc:377
bool createContacts(Context &ctx, const ErrorStack &err=ErrorStack())
Adds a digital contact to the configuration for each one in the codeplug.
Definition md2017_codeplug.cc:196
virtual ~MD2017Codeplug()
Destructor.
Definition md2017_codeplug.cc:78
MD2017Codeplug(QObject *parent=nullptr)
Constructor.
Definition md2017_codeplug.cc:67
bool encodeScanLists(const Flags &flags, Context &ctx, const ErrorStack &err=ErrorStack())
Encodes all scan lists in the configuration into the codeplug.
Definition md2017_codeplug.cc:331
bool createGroupLists(Context &ctx, const ErrorStack &err=ErrorStack())
Adds a RX group list to the configuration for each one in the codeplug.
Definition md2017_codeplug.cc:294
void clearZones()
Clears all zones in the codeplug.
Definition md2017_codeplug.cc:212
bool encodeTimestamp()
Sets the time-stamp.
Definition md2017_codeplug.cc:88
bool decodeGeneralSettings(Context &ctx, const ErrorStack &err=ErrorStack())
Updates the given configuration from the general settings.
Definition md2017_codeplug.cc:106
TyTCodeplug(QObject *parent=nullptr)
Empty constructor.
Definition tyt_codeplug.cc:2884
Represents the boot-time settings (selected zone and channels) within the UV390 code-plug.
Definition uv390_codeplug.hh:254
Extends the TyTCodeplug::ChannelElement for the TyT MD-UV390 and Retevis RT3S.
Definition uv390_codeplug.hh:60
Implements a VFO channel for TyT radios.
Definition uv390_codeplug.hh:145
DM1701Codeplug::ZoneExtElement ZoneExtElement
Reuse zone extension from DM1701.
Definition uv390_codeplug.hh:166
Some internal offsets within the codeplug.
Definition md2017_codeplug.hh:155