libdrmconf 0.12.3
A library to program DMR radios.
Loading...
Searching...
No Matches
AnytoneAutoRepeaterSettingsExtension Class Reference

Implements the auto-repeater settings extension of AnyTone devices. More...

#include <anytone_extension.hh>

Inheritance diagram for AnytoneAutoRepeaterSettingsExtension:
Collaboration diagram for AnytoneAutoRepeaterSettingsExtension:

Public Types

enum class  Direction { Off = 0 , Positive = 1 , Negative = 2 }
 Encodes the auto-repeater offset sign. More...
 

Public Member Functions

 AnytoneAutoRepeaterSettingsExtension (QObject *parent=nullptr)
 Default constructor.
 
ConfigItem * clone () const
 Clones this item.
 
Direction directionA () const
 The auto-repeater offset direction for VFO A.
 
void setDirectionA (Direction dir)
 Set the auto-repeater offset direction for VFO A.
 
Direction directionB () const
 The auto-repeater offset direction for VFO B.
 
void setDirectionB (Direction dir)
 Set the auto-repeater offset direction for VFO V.
 
Frequency vhfMin () const
 Returns the minimum frequency (in Hz) of the auto-repeater frequency range in the VHF band.
 
void setVHFMin (Frequency Hz)
 Sets the minimum frequency (in Hz) of the auto-repeater frequency range in the VHF band.
 
Frequency vhfMax () const
 Returns the maximum frequency (in Hz) of the auto-repeater frequency range in the VHF band.
 
void setVHFMax (Frequency Hz)
 Sets the maximum frequency (in Hz) of the auto-repeater frequency range in the VHF band.
 
Frequency uhfMin () const
 Returns the minimum frequency (in Hz) of the auto-repeater frequency range in the UHF band.
 
void setUHFMin (Frequency Hz)
 Sets the minimum frequency (in Hz) of the auto-repeater frequency range in the UHF band.
 
Frequency uhfMax () const
 Returns the maximum frequency (in Hz) of the auto-repeater frequency range in the UHF band.
 
void setUHFMax (Frequency Hz)
 Sets the maximum frequency (in Hz) of the auto-repeater frequency range in the UHF band.
 
AnytoneAutoRepeaterOffsetRef * uhfRef () const
 Returns the reference for the UHF offset freuqency.
 
AnytoneAutoRepeaterOffsetRef * vhfRef () const
 Returns the reference for the VHF offset freuqency.
 
Frequency vhf2Min () const
 Returns the minimum frequency (in Hz) of the auto-repeater frequency range in the second VHF band.
 
void setVHF2Min (Frequency Hz)
 Sets the minimum frequency (in Hz) of the auto-repeater frequency range in the second VHF band.
 
Frequency vhf2Max () const
 Returns the maximum frequency (in Hz) of the auto-repeater frequency range in the second VHF band.
 
void setVHF2Max (Frequency Hz)
 Sets the maximum frequency (in Hz) of the auto-repeater frequency range in the second VHF band.
 
Frequency uhf2Min () const
 Returns the minimum frequency (in Hz) of the auto-repeater frequency range in the second UHF band.
 
void setUHF2Min (Frequency Hz)
 Sets the minimum frequency (in Hz) of the auto-repeater frequency range in the second UHF band.
 
Frequency uhf2Max () const
 Returns the maximum frequency (in Hz) of the auto-repeater frequency range in the second UHF band.
 
void setUHF2Max (Frequency Hz)
 Sets the maximum frequency (in Hz) of the auto-repeater frequency range in the second UHF band.
 
AnytoneAutoRepeaterOffsetRef * uhf2Ref () const
 Returns the reference for the second UHF offset freuqency.
 
AnytoneAutoRepeaterOffsetRef * vhf2Ref () const
 Returns the reference for the second VHF offset freuqency.
 
AnytoneAutoRepeaterOffsetList * offsets () const
 Returns a weak reference to the offset list.
 
- Public Member Functions inherited from ConfigItem
virtual bool copy (const ConfigItem &other)
 Copies the given item into this one.
 
virtual int compare (const ConfigItem &other) const
 Compares the items.
 
virtual bool label (Context &context, const ErrorStack &err=ErrorStack())
 Recursively labels the config object.
 
virtual YAML::Node serialize (const Context &context, const ErrorStack &err=ErrorStack())
 Recursively serializes the configuration to YAML nodes.
 
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.
 
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).
 
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.
 

Protected Attributes

Direction _directionA
 The auto-repeater direction for VFO A.
 
Direction _directionB
 The auto-repeater direction for VFO B.
 
Frequency _minVHF
 Minimum frequency of the VHF auto-repeater range.
 
Frequency _maxVHF
 Maximum frequency of the VHF auto-repeater range.
 
Frequency _minUHF
 Minimum frequency of the UHF auto-repeater range.
 
Frequency _maxUHF
 Maximum frequency of the UHF auto-repeater range.
 
AnytoneAutoRepeaterOffsetRef * _vhfOffset
 A reference to the VHF offset frequency.
 
AnytoneAutoRepeaterOffsetRef * _uhfOffset
 A reference to the UHF offset frequency.
 
Frequency _minVHF2
 Minimum frequency of the second VHF auto-repeater range.
 
Frequency _maxVHF2
 Maximum frequency of the second VHF auto-repeater range.
 
Frequency _minUHF2
 Minimum frequency of the second UHF auto-repeater range.
 
Frequency _maxUHF2
 Maximum frequency of the second UHF auto-repeater range.
 
AnytoneAutoRepeaterOffsetRef * _vhf2Offset
 A reference to the second VHF offset frequency.
 
AnytoneAutoRepeaterOffsetRef * _uhf2Offset
 A reference to the second UHF offset frequency.
 
AnytoneAutoRepeaterOffsetList * _offsets
 The list of repeater offsets.
 

Properties

Direction directionA
 Specifies the auto-repeater transmit-frequency offset direction for VFO A.
 
Direction directionB
 Specifies the auto-repeater transmit-frequency offset direction for VFO B.
 
Frequency vhfMin
 The minimum frequency in Hz of the VHF auto-repeater frequency range.
 
Frequency vhfMax
 The maximum frequency in Hz of the VHF auto-repeater frequency range.
 
Frequency uhfMin
 The minimum frequency in Hz of the UHF auto-repeater frequency range.
 
Frequency uhfMax
 The maximum frequency in Hz of the UHF auto-repeater frequency range.
 
AnytoneAutoRepeaterOffsetRef * vhf
 A reference to the auto-repeater frequency for VHF.
 
AnytoneAutoRepeaterOffsetRef * uhf
 A reference to the auto-repeater frequency for UHF.
 
Frequency vhf2Min
 The minimum frequency in Hz of the second VHF auto-repeater frequency range.
 
Frequency vhf2Max
 The maximum frequency in Hz of the second VHF auto-repeater frequency range.
 
Frequency uhf2Min
 The minimum frequency in Hz of the second UHF auto-repeater frequency range.
 
Frequency uhf2Max
 The maximum frequency in Hz of the second UHF auto-repeater frequency range.
 
AnytoneAutoRepeaterOffsetRef * vhf2
 A reference to the auto-repeater frequency for the second VHF band.
 
AnytoneAutoRepeaterOffsetRef * uhf2
 A reference to the auto-repeater frequency for the second UHF band.
 
AnytoneAutoRepeaterOffsetList * offsets
 The repeater transmit offset frequencies.
 

Additional Inherited Members

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

Detailed Description

Implements the auto-repeater settings extension of AnyTone devices.

This extension is part of the AnytoneSettingsExtension.

Member Enumeration Documentation

◆ Direction

Encodes the auto-repeater offset sign.

Enumerator
Off 

Disabled.

Positive 

Positive frequency offset.

Negative 

Negative frequency offset.

Member Function Documentation

◆ clone()

ConfigItem * AnytoneAutoRepeaterSettingsExtension::clone ( ) const
virtual

Clones this item.

Implements ConfigItem.


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