libdrmconf
0.11.3
A library to program DMR radios.
|
Implements the device specific extension for the general settings of AnyTone devices. More...
#include <anytone_extension.hh>
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. | |
ConfigItem * | clone () const |
Clones this item. | |
AnytoneBootSettingsExtension * | bootSettings () const |
A reference to the boot settings. | |
AnytonePowerSaveSettingsExtension * | powerSaveSettings () const |
A reference to the power-save settings. | |
AnytoneKeySettingsExtension * | keySettings () const |
A reference to the key settings. | |
AnytoneToneSettingsExtension * | toneSettings () const |
A reference to the tone settings. | |
AnytoneDisplaySettingsExtension * | displaySettings () const |
A reference to the display settings. | |
AnytoneAudioSettingsExtension * | audioSettings () const |
A reference to the audio settings. | |
AnytoneMenuSettingsExtension * | menuSettings () const |
A reference to the menu settings. | |
AnytoneAutoRepeaterSettingsExtension * | autoRepeaterSettings () const |
A reference to the auto-repeater settings. | |
AnytoneDMRSettingsExtension * | dmrSettings () const |
A reference to the DMR settings. | |
AnytoneGPSSettingsExtension * | gpsSettings () const |
A reference to the GPS settings. | |
AnytoneRoamingSettingsExtension * | roamingSettings () const |
A reference to the roaming settings. | |
AnytoneBluetoothSettingsExtension * | bluetoothSettings () const |
A reference to the bluetooth settings. | |
AnytoneSimplexRepeaterSettingsExtension * | simplexRepeaterSettings () 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. | |
ZoneReference * | zoneA () |
Returns a reference to the current zone for VFO A. | |
const ZoneReference * | zoneA () const |
Returns a reference to the current zone for VFO A. | |
ZoneReference * | zoneB () |
Returns a reference to the current zone for VFO B. | |
const ZoneReference * | zoneB () 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 ConfigItem * | allocateChild (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 Config * | config () 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. | |
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. | |
ZoneReference * | zoneA |
The current zone for VFO A. | |
ZoneReference * | zoneB |
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... | |
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.
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.
void AnytoneSettingsExtension::setTBSTFrequency | ( | Frequency | Hz | ) |
Sets the TBST frequency in Hz.
Should be one of 1000, 1450, 1750 and 2100 Hz.
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.
|
read |
The simplex-repeater settings.
DMR-6X2UV only.