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

Implements the ranging/roaming settings extension of AnyTone devices. More...

#include <anytone_extension.hh>

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

Public Types

enum class  RoamStart { Periodic =0 , OutOfRange =1 }
 Possible roaming start conditions.
 
enum class  OutOfRangeAlert { None = 0x00 , Bell = 0x01 , Voice = 0x02 }
 Possible repeater out-of-range alerts.
 

Public Member Functions

 AnytoneRoamingSettingsExtension (QObject *parent=nullptr)
 Constructor.
 
ConfigItemclone () const
 Clones this item.
 
bool autoRoam () const
 Returns true if auto-roaming is enabled.
 
void enableAutoRoam (bool enable)
 Enables/disables auto-roaming.
 
Interval autoRoamPeriod () const
 Returns the auto-roaming period in minutes.
 
void setAutoRoamPeriod (Interval min)
 Sets the auto-roam period in minutes.
 
Interval autoRoamDelay () const
 Returns the auto-roam delay in seconds.
 
void setAutoRoamDelay (Interval sec)
 Sets the auto-roam delay in seconds.
 
bool repeaterRangeCheckEnabled () const
 Returns true if the repeater range check is enabled.
 
void enableRepeaterRangeCheck (bool enable)
 Enables/disables repeater range check.
 
Interval repeaterCheckInterval () const
 Returns the repeater check interval in seconds.
 
void setRepeaterCheckInterval (Interval sec)
 Sets the repeater check interval in seconds.
 
unsigned int repeaterRangeCheckCount () const
 Number of retries before givnig up.
 
void setRepeaterRangeCheckCount (unsigned int count)
 Sets the number of retries before giving up.
 
OutOfRangeAlert outOfRangeAlert () const
 Returns the repeater out-of-range alert type.
 
void setOutOfRangeAlert (OutOfRangeAlert type)
 Sets the repeater out-of-range alert type.
 
RoamStart roamingStartCondition () const
 Returns the auto-roaming start condition.
 
void setRoamingStartCondition (RoamStart start)
 Sets the auto-roaming start condition.
 
RoamStart roamingReturnCondition () const
 Returns the auto-roaming return condition.
 
void setRoamingReturnCondition (RoamStart start)
 Sets the auto-roaming return condition.
 
bool notificationEnabled () const
 Returns true, if the repeater check notification is enabled.
 
void enableNotification (bool enable)
 Enables/disables the repeater-check notification.
 
unsigned int notificationCount () const
 Returns the number of notifications.
 
void setNotificationCount (unsigned int n)
 Sets the number of repeater-check notifications.
 
bool gpsRoaming () const
 Returns true if GPS roaming is enabled.
 
void enableGPSRoaming (bool enable)
 Enables/disables GPS roaming.
 
RoamingZoneReferencedefaultZone () const
 Returns a reference to the default roaming zone.
 
- 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

bool _autoRoam
 Enables auto roaming.
 
Interval _autoRoamPeriod
 The auto-roam period in minutes.
 
Interval _autoRoamDelay
 The auto-roam delay in seconds.
 
bool _repeaterRangeCheck
 Enables the repeater range-check.
 
Interval _repeaterCheckInterval
 The repeater check interval in seconds.
 
unsigned int _repeaterRangeCheckCount
 Number of range checks before giving up.
 
OutOfRangeAlert _outOfRangeAlert
 Type of the out-out-range alert.
 
RoamStart _roamingStartCondition
 Auto-roaming start condition.
 
RoamStart _roamingReturnCondition
 Auto-roaming return condition.
 
bool _notification
 Repeater check notification.
 
unsigned int _notificationCount
 Number of notifications.
 
bool _gpsRoaming
 Enables GPS roaming.
 
RoamingZoneReference_defaultRoamingZone
 The default roaming zone.
 

Properties

bool autoRoam
 Enables auto-roaming.
 
Interval autoRoamPeriod
 The auto-roaming period in minutes.
 
Interval autoRoamDelay
 The auto-roam delay.
 
RoamStart roamStart
 Auto-roaming start condition.
 
RoamStart roamReturn
 Auto-roaming end/return condition.
 
bool rangeCheck
 Repeater range check.
 
Interval checkInterval
 Repeater range check interval in seconds.
 
unsigned int retryCount
 Retry count.
 
OutOfRangeAlert outOfRangeAlert
 Repeater out-of-range alert type.
 
bool notification
 Repeater-check notification.
 
unsigned int notificationCount
 Repeater-check notification count.
 
RoamingZoneReferencedefaultZone
 The default roaming zone.
 
bool gpsRoaming
 GPS roaming enabled.
 

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 ranging/roaming settings extension of AnyTone devices.

This extension is part of the AnytoneSettingsExtension.


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