Class MimeAppsGroup

IniLikeGroup subclass for easy access to the list of applications associated with given type.

class MimeAppsGroup
  : IniLikeGroup ;

Methods

NameDescription
appsForMimeType List applications for given mimeType.
deleteAssociation Delete desktopId from the list of desktop ids for mimeType.
joinApps Join list of desktop ids into string.
setAssocations Set list of desktop ids for mimeType. This overwrites existing list completely. Can be used to set the list of added assocations rearranged in client code to manage the preference order.
splitApps Split string list of desktop ids into range.
addCommentAfter Add comment after some node.
addCommentBefore Add comment before some node.
appendComment Add comment line into the group.
appendValue Add key-value entry without diret association of the value with the key. Can be used to add duplicates.
byIniLine
byKeyValue Iterate by Key-Value pairs. Values are left in escaped form.
byNode Iterate over nodes of internal list.
contains Check if the group contains a value associated with the key.
emptyByKeyValue Empty range of the same type as byKeyValue. Can be used in derived classes if it's needed to have an empty range.
escapedValue Get value by key in escaped form.
escapedValue Perform locale matching lookup as described in Localized values for keys.
getNode Get internal list node for key.
groupName Get name of this group.
moveLineAfter Move line after other line in the group.
moveLineBefore Move line before other line in the group.
moveLineToBack Move line to the end of group.
moveLineToFront Move line to the start of group.
prependComment Add comment line at the start of group (after group header, before any key-value pairs).
removeEntry Removes entry by key. Do nothing if no value associated with key found.
removeEntry ditto, but remove entry by localized key.
removeEntry ditto, but remove entry by node.
setEscapedValue Set value associated with key.
setEscapedValue Set value associated with key and locale.
setUnescapedValue Set value by key. The value is considered to be in the unescaped form.
setUnescapedValue ditto, localized version
unescapedValue Get value by key.
validateKey Validate key before setting value to key for this group and throw exception if not valid. Can be reimplemented in derived classes.
validateValue Validate value for key before setting value to key for this group and throw exception if not valid. Can be reimplemented in derived classes. The key is provided because you may want to implement specific checks depending on the key name.

Inner structs

NameDescription
LineNode Wrapper for internal ListMap node.

Enums

NameDescription
InvalidKeyPolicy