|
libdrmconf 0.14.1
A library to program DMR radios.
|
Implements the bluetooth handset settings for AnyTone devices. More...
#include <anytone_settingsextension.hh>


Public Member Functions | |
| AnytoneBluetoothHandsetSettingsExtension (QObject *parent=nullptr) | |
| Default constructor. | |
| ConfigItem * | clone () const override |
| Clones this item. | |
| bool | shutdownEnabled () const |
Returns true, if the handset is shutdown along with the radio. | |
| void | enableShutdown (bool enable) |
| Enables/disables shutting the handset down along with the radio. | |
| unsigned int | volumeLevelA () const |
| Returns the volume level for VFO A. | |
| void | setVolumeLevelA (unsigned int level) |
| Sets the volume level for VFO A. | |
| unsigned int | volumeLevelB () const |
| Returns the volume level for VFO B. | |
| void | setVolumeLevelB (unsigned int level) |
| Sets the volume level for VFO B. | |
| unsigned int | micGain () const |
| Returns the mic gain. | |
| void | setMicGain (unsigned int gain) |
| Sets the mic gain. | |
| unsigned int | squelch () const |
| Returns the squlech level. | |
| void | setSquelch (unsigned int level) |
| Sets the squelch level. | |
| unsigned int | txNoiseReduction () const |
| Returns the transmit noise reduction level. | |
| void | setTxNoiseReduction (unsigned int level) |
| Sets the transmit noise reduction level. | |
| unsigned int | voxLevel () const |
| Returns the VOX level. | |
| void | setVoxLevel (unsigned int level) |
| Set the VOX level. | |
| Interval | voxDelay () const |
| Returns the VOX delay. | |
| void | setVoxDelay (Interval delay) |
| Sets the VOX delay. | |
| AnytoneKeySettingsExtension::KeyFunction | funcKeyAShort () const |
| Returns function key A short press function. | |
| void | setFuncKeyAShort (AnytoneKeySettingsExtension::KeyFunction func) |
| Set function key A short press function. | |
| AnytoneKeySettingsExtension::KeyFunction | funcKeyBShort () const |
| Returns function key B short press function. | |
| void | setFuncKeyBShort (AnytoneKeySettingsExtension::KeyFunction func) |
| Set function key B short press function. | |
| AnytoneKeySettingsExtension::KeyFunction | funcKeyCShort () const |
| Returns function key C short press function. | |
| void | setFuncKeyCShort (AnytoneKeySettingsExtension::KeyFunction func) |
| Set function key C short press function. | |
| AnytoneKeySettingsExtension::KeyFunction | funcKeyALong () const |
| Returns function key A long press function. | |
| void | setFuncKeyALong (AnytoneKeySettingsExtension::KeyFunction func) |
| Set function key A long press function. | |
| AnytoneKeySettingsExtension::KeyFunction | funcKeyBLong () const |
| Returns function key B long press function. | |
| void | setFuncKeyBLong (AnytoneKeySettingsExtension::KeyFunction func) |
| Set function key B long press function. | |
| AnytoneKeySettingsExtension::KeyFunction | funcKeyCLong () const |
| Returns function key C long press function. | |
| void | setFuncKeyCLong (AnytoneKeySettingsExtension::KeyFunction func) |
| Set function key C long press function. | |
| AnytoneKeySettingsExtension::KeyFunction | funcKeyAVeryLong () const |
| Returns function key A very long press function. | |
| void | setFuncKeyAVeryLong (AnytoneKeySettingsExtension::KeyFunction func) |
| Set function key A very long press function. | |
| AnytoneKeySettingsExtension::KeyFunction | funcKeyBVeryLong () const |
| Returns function key B very long press function. | |
| void | setFuncKeyBVeryLong (AnytoneKeySettingsExtension::KeyFunction func) |
| Set function key B very long press function. | |
| AnytoneKeySettingsExtension::KeyFunction | funcKeyCVeryLong () const |
| Returns function key C very long press function. | |
| void | setFuncKeyCVeryLong (AnytoneKeySettingsExtension::KeyFunction func) |
| Set function key C very long press function. | |
| Interval | backlight () const |
| Returns the backlight duration. | |
| void | setBacklight (Interval dur) |
| Sets the backlight duration. | |
| 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 | |
| bool | _shutdown |
| Shut the handset down along with the radio. | |
| unsigned int | _volumeLevelA |
| Specifies the volume level for VFO A. | |
| unsigned int | _volumeLevelB |
| Specifies the volume level for VFO B. | |
| unsigned int | _micGain |
| Specifies the mic gain. | |
| unsigned int | _squelch |
| Specifies the squelch level. | |
| unsigned int | _txNoiseReduction |
| Specifies the transmit noise reduction level. | |
| unsigned int | _voxLevel |
| Specifies the VOX level. | |
| Interval | _voxDelay |
| Specifies the VOX delay. | |
| AnytoneKeySettingsExtension::KeyFunction | _funcKeyAShort |
| Function key A short press function. | |
| AnytoneKeySettingsExtension::KeyFunction | _funcKeyBShort |
| Function key B short press function. | |
| AnytoneKeySettingsExtension::KeyFunction | _funcKeyCShort |
| Function key B short press function. | |
| AnytoneKeySettingsExtension::KeyFunction | _funcKeyALong |
| Function key A long press function. | |
| AnytoneKeySettingsExtension::KeyFunction | _funcKeyBLong |
| Function key B long press function. | |
| AnytoneKeySettingsExtension::KeyFunction | _funcKeyCLong |
| Function key B long press function. | |
| AnytoneKeySettingsExtension::KeyFunction | _funcKeyAVeryLong |
| Function key A very long press function. | |
| AnytoneKeySettingsExtension::KeyFunction | _funcKeyBVeryLong |
| Function key B very long press function. | |
| AnytoneKeySettingsExtension::KeyFunction | _funcKeyCVeryLong |
| Function key B very long press function. | |
| Interval | _backlight |
| Backlight duration. | |
Properties | |
| bool | shutdown |
| unsigned int | volumeLevelA |
| unsigned int | volumeLevelB |
| unsigned int | micGain |
| unsigned int | squelch |
| unsigned int | txNoiseReduction |
| unsigned int | voxLevel |
| Interval | voxDelay |
| AnytoneKeySettingsExtension::KeyFunction | funcKeyAShort |
| AnytoneKeySettingsExtension::KeyFunction | funcKeyBShort |
| AnytoneKeySettingsExtension::KeyFunction | funcKeyCShort |
| AnytoneKeySettingsExtension::KeyFunction | funcKeyALong |
| AnytoneKeySettingsExtension::KeyFunction | funcKeyBLong |
| AnytoneKeySettingsExtension::KeyFunction | funcKeyCLong |
| AnytoneKeySettingsExtension::KeyFunction | funcKeyAVeryLong |
| AnytoneKeySettingsExtension::KeyFunction | funcKeyBVeryLong |
| AnytoneKeySettingsExtension::KeyFunction | funcKeyCVeryLong |
| Interval | backlight |
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. | |
Implements the bluetooth handset settings for AnyTone devices.
This extension is part of the AnyToneBlueoothSettingsExtension.
|
overridevirtual |
Clones this item.
Implements ConfigItem.