DesktopGroup

This class represents the group in the desktop file. You can create and use instances of this class only in the context of DesktopFile instance.

Members

Functions

byKeyValue
auto byKeyValue()
contains
bool contains(string key)

Tells if group contains value associated with the key.

localizedValue
string localizedValue(string key, string locale, string defaultValue)

Performs locale matching lookup as described in Localized values for keys. If locale is null it calls currentLocale to get the locale.

name
string name()
opIndex
string opIndex(string key)
opIndexAssign
string opIndexAssign(string value, string key)

Inserts new value or replaces the old one if value associated with key already exists.

opIndexAssign
string opIndexAssign(string value, string key, string locale)

Ditto, but also allows to specify the locale.

removeEntry
void removeEntry(string key)

Removes entry by key. To remove localized values use localizedKey.

setLocalizedValue
void setLocalizedValue(string key, string locale, string value)

Same as localized version of opIndexAssign, but uses function syntax.

value
string value(string key, string defaultValue)

Meta