libdrmconf  0.11.3
A library to program DMR radios.
Public Types | Public Member Functions | Protected Attributes | Properties | List of all members
AnytoneSettingsExtension Class Reference

Implements the device specific extension for the general settings of AnyTone devices. More...

#include <anytone_extension.hh>

Inheritance diagram for AnytoneSettingsExtension:
Inheritance graph
[legend]
Collaboration diagram for AnytoneSettingsExtension:
Collaboration graph
[legend]

Public Types

enum class  VFOScanType { Time = 0 , Carrier = 1 , Stop = 2 }
 Encodes the possible VFO scan types.
 
enum class  VFOMode { Memory = 0 , VFO = 1 }
 Possible VFO modes.
 
enum class  VFO { A = 0 , B = 1 }
 Possible VFOs.
 
enum class  STEType {
  Off = 0 , Silent = 1 , Deg120 = 2 , Deg180 = 3 ,
  Deg240 = 4
}
 All possible STE (squelch tail eliminate) types.
 

Public Member Functions

Q_INVOKABLE AnytoneSettingsExtension (QObject *parent=nullptr)
 Constructor.
 
ConfigItemclone () const
 Clones this item.
 
AnytoneBootSettingsExtensionbootSettings () const
 A reference to the boot settings.
 
AnytonePowerSaveSettingsExtensionpowerSaveSettings () const
 A reference to the power-save settings.
 
AnytoneKeySettingsExtensionkeySettings () const
 A reference to the key settings.
 
AnytoneToneSettingsExtensiontoneSettings () const
 A reference to the tone settings.
 
AnytoneDisplaySettingsExtensiondisplaySettings () const
 A reference to the display settings.
 
AnytoneAudioSettingsExtensionaudioSettings () const
 A reference to the audio settings.
 
AnytoneMenuSettingsExtensionmenuSettings () const
 A reference to the menu settings.
 
AnytoneAutoRepeaterSettingsExtensionautoRepeaterSettings () const
 A reference to the auto-repeater settings.
 
AnytoneDMRSettingsExtensiondmrSettings () const
 A reference to the DMR settings.
 
AnytoneGPSSettingsExtensiongpsSettings () const
 A reference to the GPS settings.
 
AnytoneRoamingSettingsExtensionroamingSettings () const
 A reference to the roaming settings.
 
AnytoneBluetoothSettingsExtensionbluetoothSettings () const
 A reference to the bluetooth settings.
 
AnytoneSimplexRepeaterSettingsExtensionsimplexRepeaterSettings () const
 A reference to the simplex repeater settings.
 
VFOScanType vfoScanType () const
 Returns the VFO scan type.
 
void setVFOScanType (VFOScanType type)
 Sets the VFO scan type.
 
VFOMode modeA () const
 Returns mode for VFO A.
 
void setModeA (VFOMode mode)
 Sets the mode for VFO A.
 
VFOMode modeB () const
 Returns mode for VFO B.
 
void setModeB (VFOMode mode)
 Sets the mode for VFO B.
 
ZoneReferencezoneA ()
 Returns a reference to the current zone for VFO A.
 
const ZoneReferencezoneA () const
 Returns a reference to the current zone for VFO A.
 
ZoneReferencezoneB ()
 Returns a reference to the current zone for VFO B.
 
const ZoneReferencezoneB () const
 Returns a reference to the current zone for VFO B.
 
VFO selectedVFO () const
 Returns the selected VFO.
 
void setSelectedVFO (VFO vfo)
 Sets the selected VFO.
 
bool subChannelEnabled () const
 Returns true if the sub-channel is enabled.
 
void enableSubChannel (bool enable)
 Enables/disables the sub-channel.
 
Frequency minVFOScanFrequencyUHF () const
 Returns the minimum VFO scan frequency for the UHF band in Hz.
 
void setMinVFOScanFrequencyUHF (Frequency hz)
 Sets the minimum VFO scan frequency for the UHF band in Hz.
 
Frequency maxVFOScanFrequencyUHF () const
 Returns the maximum VFO scan frequency for the UHF band in Hz.
 
void setMaxVFOScanFrequencyUHF (Frequency hz)
 Sets the maximum VFO scan frequency for the UHF band in Hz.
 
Frequency minVFOScanFrequencyVHF () const
 Returns the minimum VFO scan frequency for the VHF band in Hz.
 
void setMinVFOScanFrequencyVHF (Frequency hz)
 Sets the minimum VFO scan frequency for the VHF band in Hz.
 
Frequency maxVFOScanFrequencyVHF () const
 Returns the maximum VFO scan frequency for the VHF band in Hz.
 
void setMaxVFOScanFrequencyVHF (Frequency hz)
 Sets the maximum VFO scan frequency for the VHF band in Hz.
 
bool keepLastCallerEnabled () const
 Returns true if the last caller is kept on channel switch.
 
void enableKeepLastCaller (bool enable)
 Enables/disables keeping the last caller on channel switch.
 
Frequency vfoStep () const
 Returns the VFO tuning step in kHz.
 
void setVFOStep (Frequency step)
 Sets the VFO tuning step in kHz.
 
STEType steType () const
 Returns the STE (squelch tail elimination) type.
 
void setSTEType (STEType type)
 Sets the STE (squelch tail elimination) type.
 
double steFrequency () const
 Returns the STE (squelch tail elimination) frequency in Hz. More...
 
void setSTEFrequency (double freq)
 Sets the STE (squelch tail elimination) frequency in Hz. More...
 
Interval steDuration () const
 Returns the STE duration in ms.
 
void setSTEDuration (Interval intv)
 Sets the STE duration.
 
Frequency tbstFrequency () const
 Returns the TBST frequency in Hz.
 
void setTBSTFrequency (Frequency Hz)
 Sets the TBST frequency in Hz. More...
 
bool proModeEnabled () const
 Returns true, if the "pro mode" is enabled.
 
void enableProMode (bool enable)
 Enables/disables the "pro mode".
 
bool maintainCallChannelEnabled () const
 Returns true if the call-channel is maintained.
 
void enableMaintainCallChannel (bool enable)
 Enables/disables maintaining the call-channel.
 
- Public Member Functions inherited from ConfigItem
virtual bool copy (const ConfigItem &other)
 Copies the given item into this one. More...
 
virtual int compare (const ConfigItem &other) const
 Compares the items. More...
 
virtual bool label (Context &context, const ErrorStack &err=ErrorStack())
 Recursively labels the config object. More...
 
virtual YAML::Node serialize (const Context &context, const ErrorStack &err=ErrorStack())
 Recursively serializes the configuration to YAML nodes. More...
 
virtual ConfigItemallocateChild (QMetaProperty &prop, const YAML::Node &node, const Context &ctx, const ErrorStack &err=ErrorStack())
 Allocates an instance for the given property on the given YAML node. More...
 
virtual bool parse (const YAML::Node &node, Context &ctx, const ErrorStack &err=ErrorStack())
 Parses the given YAML node, updates the given object and updates the given context (IDs). More...
 
virtual bool link (const YAML::Node &node, const Context &ctx, const ErrorStack &err=ErrorStack())
 Links the given object to the rest of the codeplug using the given context.
 
virtual void clear ()
 Clears the config object.
 
virtual const Configconfig () const
 Returns the config, the item belongs to or nullptr if not part of a config.
 
virtual void findItemsOfTypes (const QStringList &typeNames, QSet< ConfigItem * > &items) const
 Searches the config tree to find all instances of the given type names.
 
template<class Object >
bool is () const
 Returns true if this object is of class Object.
 
template<class Object >
const Object * as () const
 Casts this object to the given type.
 
template<class Object >
Object * as ()
 Casts this object to the given type.
 
bool hasDescription () const
 Returns true if there is a class info "description" for this instance.
 
bool hasLongDescription () const
 Returns true if there is a class info "longDescription" for this instance.
 
bool hasDescription (const QMetaProperty &prop) const
 Returns true if there is a class info "[PropertyName]Description" for the given property.
 
bool hasLongDescription (const QMetaProperty &prop) const
 Returns true if there is a class info "[PropertyName]LongDescription" for the given property.
 
QString description () const
 Returns the description of this instance if set by a class info.
 
QString longDescription () const
 Returns the long description of this instance if set by a class info.
 
QString description (const QMetaProperty &prop) const
 Returns the description of property if set by a class info.
 
QString longDescription (const QMetaProperty &prop) const
 Returns the long description of property if set by a class info.
 

Protected Attributes

AnytoneBootSettingsExtension_bootSettings
 The boot settings.
 
AnytonePowerSaveSettingsExtension_powerSaveSettings
 The power-save settings.
 
AnytoneKeySettingsExtension_keySettings
 The key settings.
 
AnytoneToneSettingsExtension_toneSettings
 The tone settings.
 
AnytoneDisplaySettingsExtension_displaySettings
 The display settings.
 
AnytoneAudioSettingsExtension_audioSettings
 The audio settings.
 
AnytoneMenuSettingsExtension_menuSettings
 The menu settings.
 
AnytoneAutoRepeaterSettingsExtension_autoRepeaterSettings
 The auto-repeater settings.
 
AnytoneDMRSettingsExtension_dmrSettings
 The DMR settings.
 
AnytoneGPSSettingsExtension_gpsSettings
 The GSP settings.
 
AnytoneRoamingSettingsExtension_roamingSettings
 The roaming settings.
 
AnytoneBluetoothSettingsExtension_bluetoothSettings
 The bluetooth settings.
 
AnytoneSimplexRepeaterSettingsExtension_simplexRepeaterSettings
 The simplex-repeater settings.
 
VFOScanType _vfoScanType
 The VFO scan-type property.
 
VFOMode _modeA
 Mode of VFO A.
 
VFOMode _modeB
 Mode of VFO B.
 
ZoneReference _zoneA
 The current zone for VFO A.
 
ZoneReference _zoneB
 The current zone for VFO B.
 
VFO _selectedVFO
 The current VFO.
 
bool _subChannel
 If true, the sub-channel is enabled.
 
Frequency _minVFOScanFrequencyUHF
 The minimum UHF VFO-scan frequency in Hz.
 
Frequency _maxVFOScanFrequencyUHF
 The maximum UHF VFO-scan frequency in Hz.
 
Frequency _minVFOScanFrequencyVHF
 The minimum VHF VFO-scan frequency in Hz.
 
Frequency _maxVFOScanFrequencyVHF
 The maximum VHF VFO-scan frequency in Hz.
 
bool _keepLastCaller
 If true, the last caller is kept on channel switch.
 
Frequency _vfoStep
 The VFO tuning step in kHz.
 
STEType _steType
 The STE type.
 
double _steFrequency
 STE frequency in Hz.
 
Interval _steDuration
 STE duration.
 
Frequency _tbstFrequency
 The TBST frequency in Hz.
 
bool _proMode
 The "pro mode" flag.
 
bool _maintainCallChannel
 Maintains the call channel.
 

Properties

bool subChannel
 If true, the sub-channel is enabled.
 
VFO selectedVFO
 The current active VFO.
 
VFOMode modeA
 The mode of VFO A.
 
VFOMode modeB
 The mode of VFO B.
 
ZoneReferencezoneA
 The current zone for VFO A.
 
ZoneReferencezoneB
 The current zone for VFO B.
 
VFOScanType vfoScanType
 The VFO scan type.
 
Frequency minVFOScanFrequencyUHF
 The minimum UHF VFO-scan frequency in Hz.
 
Frequency maxVFOScanFrequencyUHF
 The maximum UHF VFO-scan frequency in Hz.
 
Frequency minVFOScanFrequencyVHF
 The minimum VHF VFO-scan frequency in Hz.
 
Frequency maxVFOScanFrequencyVHF
 The maximum VHF VFO-scan frequency in Hz.
 
bool keepLastCaller
 The keep-last-caller setting.
 
Frequency vfoStep
 The VFO tuning step-size in kHz.
 
STEType steType
 The STE type.
 
double steFrequency
 The STE frequency in Hz.
 
Interval steDuration
 The STE duration in ms.
 
featureAnytoneSimplexRepeaterSettingsExtension * simplexRepeaterSettings
 The simplex-repeater settings. More...
 

Additional Inherited Members

- Signals inherited from ConfigItem
void modified (ConfigItem *obj)
 Gets emitted once the config object is modified. More...
 
void beginClear ()
 Gets emitted before clearing the item.
 
void endClear ()
 Gets emitted after clearing the item.
 
- Protected Member Functions inherited from ConfigExtension
 ConfigExtension (QObject *parent=nullptr)
 Hidden constructor.
 
- Protected Member Functions inherited from ConfigItem
 ConfigItem (QObject *parent=nullptr)
 Hidden constructor. More...
 
virtual bool populate (YAML::Node &node, const Context &context, const ErrorStack &err=ErrorStack())
 Recursively serializes the configuration to YAML nodes. More...
 

Detailed Description

Implements the device specific extension for the general settings of AnyTone devices.

As there are a huge amount of different settings, they are split into separate extensions. One for each topic.

Member Function Documentation

◆ setSTEFrequency()

void AnytoneSettingsExtension::setSTEFrequency ( double  freq)

Sets the STE (squelch tail elimination) frequency in Hz.

A frequency of 0 disables the STE. Possible values are 55.2 and 259.2 Hz.

◆ setTBSTFrequency()

void AnytoneSettingsExtension::setTBSTFrequency ( Frequency  Hz)

Sets the TBST frequency in Hz.

Should be one of 1000, 1450, 1750 and 2100 Hz.

◆ steFrequency()

double AnytoneSettingsExtension::steFrequency ( ) const

Returns the STE (squelch tail elimination) frequency in Hz.

A frequency of 0 disables the STE. Possible values are 55.2 and 259.2 Hz.

Property Documentation

◆ simplexRepeaterSettings

featureAnytoneSimplexRepeaterSettingsExtension * AnytoneSettingsExtension::simplexRepeaterSettings
read

The simplex-repeater settings.

DMR-6X2UV only.


The documentation for this class was generated from the following files: