|
libdrmconf 0.14.0
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. | |
Protected Attributes | |
| bool | _inifiniteHangTime |
If true, the menu hang time is infinite. | |
| unsigned | _hangTime |
| The menu hang time in seconds. | |
| bool | _textMessage |
If true, the text message menu is shown. | |
| bool | _callAlert |
If true, the call-alert menu item is shown. | |
| bool | _contactEditing |
If true, the contact editing menu is shown. | |
| bool | _manualDial |
If true, the manual dial menu item is shown. | |
| bool | _remoteRadioCheck |
If true, the remote radio check menu item is shown. | |
| bool | _remoteMonitor |
If true, the remote monitor menu item is shown. | |
| bool | _remoteRadioEnable |
If true, the remote radio enable menu item is shown. | |
| bool | _remoteRadioDisable |
If true, the remote radio disable menu item is shown. | |
| bool | _scan |
If true, the scan menu item is shown. | |
| bool | _scanListEditing |
If true, the scan list editing is enabled. | |
| bool | _callLogMissed |
If true, the list of missed calls is shown. | |
| bool | _callLogAnswered |
If true, the list of answered calls is shown. | |
| bool | _callLogOutgoing |
If true, the list of outgoing calls is shown. | |
| bool | _talkaround |
If true, the talkaround menu item is shown. | |
| bool | _alertTone |
If true, the alert-tone menu item is shown. | |
| bool | _power |
If true, the power settings menu item is shown. | |
| bool | _backlight |
If true, the backlight menu item is shown. | |
| bool | _bootScreen |
If true, the boot-screen settings menu item is shown. | |
| bool | _keypadLock |
If true, the keypad-lock settings menu item is shown. | |
| bool | _ledIndicator |
If true, the LED indicator settings menu item is shown. | |
| bool | _squelch |
If true, the squelch settings menu item is shown. | |
| bool | _vox |
If true, the VOX settings menu item is shown. | |
| bool | _password |
If true, the password menu item is shown. | |
| bool | _displayMode |
If true, the display-mode settings menu item is shown. | |
| bool | _radioProgramming |
If true, radio programming on the radio is enabled. | |
| bool | _gpsInformation |
If true, the positioning settings menu item is shown. | |
Properties | |
| bool | hangtimeIsInfinite |
If true, the menu hang time is infinite. | |
| unsigned | hangTime |
| The menu hang time in seconds. | |
| bool | textMessage |
If true, the text message menu is shown. | |
| bool | callAlert |
If true, the call-alert menu item is shown. | |
| bool | contactEditing |
If true, the contact editing menu is shown. | |
| bool | manualDial |
If true, the manual dial menu item is shown. | |
| bool | remoteRadioCheck |
If true, the remote radio check menu item is shown. | |
| bool | remoteMonitor |
If true, the remote monitor menu item is shown. | |
| bool | remoteRadioEnable |
If true, the remote radio enable menu item is shown. | |
| bool | remoteRadioDisable |
If true, the remote radio disable menu item is shown. | |
| bool | scan |
If true, the scan menu item is shown. | |
| bool | scanListEditing |
If true, the scan list editing is enabled. | |
| bool | callLogMissed |
If true, the list of missed calls is shown. | |
| bool | callLogAnswered |
If true, the list of answered calls is shown. | |
| bool | callLogOutgoing |
If true, the list of outgoing calls is shown. | |
| bool | talkaround |
If true, the talkaround menu item is shown. | |
| bool | alertTone |
If true, the alert-tone menu item is shown. | |
| bool | power |
If true, the power settings menu item is shown. | |
| bool | backlight |
If true, the backlight menu item is shown. | |
| bool | bootScreen |
If true, the boot-screen settings menu item is shown. | |
| bool | keypadLock |
If true, the keypad-lock settings menu item is shown. | |
| bool | ledIndicator |
If true, the LED indicator settings menu item is shown. | |
| bool | squelch |
If true, the squelch settings menu item is shown. | |
| bool | vox |
If true, the VOX settings menu item is shown. | |
| bool | password |
If true, the password menu item is shown. | |
| bool | displayMode |
If true, the display-mode settings menu item is shown. | |
| bool | radioProgramming |
If true, radio programming on the radio is enabled. | |
| bool | gpsInformation |
If true, the positioning settings menu item is shown. | |
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.