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

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

#include <anytone_extension.hh>

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

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.
 
ConfigItemclone () 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.
 
AnytoneAutoRepeaterOffsetRefuhfRef () const
 Returns the reference for the UHF offset freuqency.
 
AnytoneAutoRepeaterOffsetRefvhfRef () 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.
 
AnytoneAutoRepeaterOffsetRefuhf2Ref () const
 Returns the reference for the second UHF offset freuqency.
 
AnytoneAutoRepeaterOffsetRefvhf2Ref () const
 Returns the reference for the second VHF offset freuqency.
 
AnytoneAutoRepeaterOffsetListoffsets () 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. 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

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.
 
AnytoneAutoRepeaterOffsetRefvhf
 A reference to the auto-repeater frequency for VHF.
 
AnytoneAutoRepeaterOffsetRefuhf
 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.
 
AnytoneAutoRepeaterOffsetRefvhf2
 A reference to the auto-repeater frequency for the second VHF band.
 
AnytoneAutoRepeaterOffsetRefuhf2
 A reference to the auto-repeater frequency for the second UHF band.
 
AnytoneAutoRepeaterOffsetListoffsets
 The repeater transmit offset frequencies.
 

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 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 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.


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