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

Represents the TyT channel extension. More...

#include <tyt_extensions.hh>

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

Public Types

enum class  RefFrequency { Low =0 , Medium =1 , High =2 }
 Possible reference frequency settings for RX & TX.
 
enum class  KillTone { Tone259_2Hz =0 , Tone55_2Hz =1 , Off =3 }
 Possible kill-tone settings.
 
enum class  InCallCriterion { Always = 0 , AdmitCriterion =1 , TXInterrupt =2 }
 Possible in-call criterions.
 

Public Member Functions

Q_INVOKABLE TyTChannelExtension (QObject *parent=nullptr)
 Default constructor.
 
ConfigItemclone () const
 Clones this item.
 
bool loneWorker () const
 Returns true if the lone worker feature is enabled.
 
void enableLoneWorker (bool enable)
 Enables/disables the lone-worker feature.
 
bool autoScan () const
 Returns true if the auto scan feature is enabled.
 
void enableAutoScan (bool enable)
 Enables/disables the auto-scan feature.
 
bool talkaround () const
 Returns true if the talk around feature is enabled.
 
void enableTalkaround (bool enable)
 Enables/disables the talk-around feature.
 
bool dataCallConfirmed () const
 Returns true if data call confirmation is enabled.
 
void enableDataCallConfirmed (bool enable)
 Enables/disables data-call confirmation.
 
bool privateCallConfirmed () const
 Returns true if private call confirmation is enabled.
 
void enablePrivateCallConfirmed (bool enable)
 Enables/disables private-call confirmation.
 
bool emergencyAlarmConfirmed () const
 Returns true if emergency calls are confirmed.
 
void enableEmergencyAlarmConfirmed (bool enable)
 Enables/disables emergency-call confirmation.
 
bool displayPTTId () const
 Returns true if analog PTT IDs are shown.
 
void enableDisplayPTTId (bool enable)
 Enables/disables analog PTT ID display.
 
RefFrequency rxRefFrequency () const
 Returns the reference frequency setting for RX.
 
void setRXRefFrequency (RefFrequency ref)
 Sets the reference frequency setting for RX.
 
RefFrequency txRefFrequency () const
 Returns the reference frequency setting for TX.
 
void setTXRefFrequency (RefFrequency ref)
 Sets the reference frequency setting for TX.
 
bool tightSquelch () const
 Returns true if the tight squelch is enabled.
 
void enableTightSquelch (bool enable)
 Enables/disables the tight squelch.
 
bool compressedUDPHeader () const
 Returns true if the compressed UDP header is enabled.
 
void enableCompressedUDPHeader (bool enable)
 Enables/disables the compressed UDP header.
 
bool reverseBurst () const
 Returns true if the reverse burst is enabled.
 
void enableReverseBurst (bool enable)
 Enables/disables reverse burst.
 
KillTone killTone () const
 Returns the kill tone frequency.
 
void setKillTone (KillTone tone)
 Sets the kill-tone frequency.
 
InCallCriterion inCallCriterion () const
 Returns the in-call criterion.
 
void setInCallCriterion (InCallCriterion crit)
 Sets the in-call criterion.
 
bool allowInterrupt () const
 Returns true if interrupt is allowed.
 
void enableAllowInterrupt (bool enable)
 Enables/disables interrupt.
 
bool dcdm () const
 Returns true if the DCDM mode is enabled.
 
void enableDCDM (bool enable)
 Enables/disables the DCDM mode.
 
bool dcdmLeader () const
 Returns true if this radio is the leader for a DCDM simplex channel.
 
void enableDCDMLeader (bool enable)
 Enables/disables this radio to be the leader on a DCDM simplex channel.
 
unsigned int dmrSquelch () const
 Squelch level for DMR channels.
 
void setDMRSquelch (unsigned int sq)
 Sets the squelch-level for DMR channels.
 
- 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 _loneWorker
 Holds the lone-worker flag.
 
bool _autoScan
 Holds the auto-scan flag.
 
bool _talkaround
 Holds the talk around flag.
 
bool _dataCallConfirmed
 Holds the data-call confirmation flag.
 
bool _privateCallConfirmed
 Holds the private-call confirmation flag.
 
bool _emergencyAlarmConfirmed
 Holds the emergency-call confirmation flag.
 
bool _displayPTTId
 Holds the display PTT ID flag.
 
RefFrequency _rxRefFrequency
 Holds the reference frequency setting for RX.
 
RefFrequency _txRefFrequency
 Holds the reference frequency setting for TX.
 
bool _tightSquelch
 Holds the tightSquelch flag.
 
bool _compressedUDPHeader
 Holds the compressed UDP header flag.
 
bool _reverseBurst
 Holds the reverse burst flag.
 
KillTone _killTone
 Holds the kill tone setting.
 
InCallCriterion _inCallCriterion
 Holds the in-call criterion.
 
bool _allowInterrupt
 Holds the interrupt flag.
 
bool _dcdm
 Holds the DCDM flag.
 
bool _dcdmLeader
 Holds the DCDM-leader flag.
 
unsigned int _dmrSquelch
 The squelch level [0-10] for DMR channels.
 

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

Represents the TyT channel extension.

That is, all device specific settings for TyT devices, that are not represented though the common codeplug.


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