|
libdrmconf 0.14.1
A library to program DMR radios.
|
Represents the TyT menu settings extension. More...
#include <tyt_extensions.hh>


Public Member Functions | |
| Q_INVOKABLE | TyTMenuSettings (QObject *parent=nullptr) |
| Constructor. | |
| ConfigItem * | clone () const |
| Clones this item. | |
| bool | hangtimeIsInfinite () const |
Returns true if the hang time is infinite. | |
| void | setHangtimeInfinite (bool infinite) |
| Enables/disables infinite hang time. | |
| unsigned | hangTime () const |
| Returns the menu hang time in seconds. | |
| void | setHangTime (unsigned sec) |
| Sets the menu hang time in seconds. | |
| bool | textMessage () const |
Returns true if the text message menu item is enabled. | |
| void | enableTextMessage (bool enable) |
| Enables/disables the text message menu item. | |
| bool | callAlert () const |
Returns true if the call alert menu item is enabled. | |
| void | enableCallAlert (bool enable) |
| Enables/disables the call alert menu item. | |
| bool | contactEditing () const |
Returns true if contact editing is enabled. | |
| void | enableContactEditing (bool enable) |
| Enables/disables contact editing. | |
| bool | manualDial () const |
Returns true if the manual dial menu item is enabled. | |
| void | enableManualDial (bool enable) |
| Enables/disables the manual dial menu item. | |
| bool | remoteRadioCheck () const |
Returns true if the remote radio check menu item is enabled. | |
| void | enableRemoteRadioCheck (bool enable) |
| Enables/disables the remote radio check menu item. | |
| bool | remoteMonitor () const |
Returns true if the remote monitor menu item is enabled. | |
| void | enableRemoteMonitor (bool enable) |
| Enables/disables the remote monitor menu item. | |
| bool | remoteRadioEnable () const |
Returns true if the remote radio enable menu item is enabled. | |
| void | enableRemoteRadioEnable (bool enable) |
| Enables/disables the remote radio enable menu item. | |
| bool | remoteRadioDisable () const |
Returns true if the remote radio disable menu item is enabled. | |
| void | enableRemoteRadioDisable (bool enable) |
| Enables/disables the remote radio disable menu item. | |
| bool | scan () const |
Returns true if the scan menu item is enabled. | |
| void | enableScan (bool enable) |
| Enables/disables the scan menu item. | |
| bool | scanListEditing () const |
Returns true if the scan list editing menu item is enabled. | |
| void | enableScanListEditing (bool enable) |
| Enables/disables the scan list editing menu item. | |
| bool | callLogMissed () const |
Returns true if the list of missed calls menu item is enabled. | |
| void | enableCallLogMissed (bool enable) |
| Enables/disables the list of missed calls menu item. | |
| bool | callLogAnswered () const |
Returns true if the list of answered calls menu item is enabled. | |
| void | enableCallLogAnswered (bool enable) |
| Enables/disables the list of answered calls menu item. | |
| bool | callLogOutgoing () const |
Returns true if the list of outgoing calls menu item is enabled. | |
| void | enableCallLogOutgoing (bool enable) |
| Enables/disables the list of outgoing calls menu item. | |
| bool | talkaround () const |
Returns true if the talkaround menu item is enabled. | |
| void | enableTalkaround (bool enable) |
| Enables/disables the talkaround menu item. | |
| bool | alertTone () const |
Returns true if the alert tone menu item is enabled. | |
| void | enableAlertTone (bool enable) |
| Enables/disables the alert tone menu item. | |
| bool | power () const |
Returns true if the power menu item is enabled. | |
| void | enablePower (bool enable) |
| Enables/disables the power menu item. | |
| bool | backlight () const |
Returns true if the backlight menu item is enabled. | |
| void | enableBacklight (bool enable) |
| Enables/disables the backlight menu item. | |
| bool | bootScreen () const |
Returns true if the boot screen menu item is enabled. | |
| void | enableBootScreen (bool enable) |
| Enables/disables the boot screen menu item. | |
| bool | keypadLock () const |
Returns true if the keypad lock menu item is enabled. | |
| void | enableKeypadLock (bool enable) |
| Enables/disables the keypad lock menu item. | |
| bool | ledIndicator () const |
Returns true if the LED indicator menu item is enabled. | |
| void | enableLEDIndicator (bool enable) |
| Enables/disables the LED indicator menu item. | |
| bool | squelch () const |
Returns true if the squelch menu item is enabled. | |
| void | enableSquelch (bool enable) |
| Enables/disables the squelch menu item. | |
| bool | vox () const |
Returns true if the VOX menu item is enabled. | |
| void | enableVOX (bool enable) |
| Enables/disables the VOX menu item. | |
| bool | password () const |
Returns true if the password menu item is enabled. | |
| void | enablePassword (bool enable) |
| Enables/disables the password menu item. | |
| bool | displayMode () const |
Returns true if the display mode menu item is enabled. | |
| void | enableDisplayMode (bool enable) |
| Enables/disables the display mode menu item. | |
| bool | radioProgramming () const |
Returns true if the radio programming menu item is enabled. | |
| void | enableRadioProgramming (bool enable) |
| Enables/disables the radio programming menu item. | |
| bool | gpsInformation () const |
Returns true if the GPS information menu item is enabled. | |
| void | enableGPSInformation (bool enable) |
| Enables/disables the GPS information menu item. | |
| 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. | |
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 ConfigExtension | |
| ConfigExtension (QObject *parent=nullptr) | |
| Hidden constructor. | |
| 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. | |
Represents the TyT menu settings extension.
|
virtual |
Clones this item.
Implements ConfigItem.