class KDesktopFile |
|
|
%KDE Desktop File Management. This class implements %KDE's support for the freedesktop.org Desktop Entry Spec.
Author Pietro Iglio See also KConfigBase KConfig See also Desktop Entry Spec |
|
Constructs a KDesktopFile object
fileName - The name or path of the desktop file. If it is not absolute, it will be located using the resource type resType. resType - Allows you to change what sort of resource to search for if fileName is not absolute. For instance, you might want to specify "config". |
|
|
|
Returns the action group with the given name |
|
Copies all entries from this config object to a new KDesktopFile object that will save itself to file. Actual saving to file happens when the returned object is destructed or when sync() is called upon it.
file - the new KDesktopFile object it will save itself to. |
|
Sets the group to the "Desktop Entry" group used for desktop configuration files for applications, mime types, etc. Deprecated use desktopGroup() instead. Returns the raw data for direct access |
|
Returns the file name. Returns The filename as passed to the constructor. |
|
Returns true if the action group exists, false otherwise group - the action group to test Returns true if the action group exists |
|
Checks whether there is an entry "Type=Application". Returns true if there is a "Type=Application" entry |
|
Checks whether there is an entry "Type=FSDevice". Returns true if there is a "Type=FSDevice" entry |
|
Checks whether there is a "Type=Link" entry. The link points to the "URL=" entry. Returns true if there is a "Type=Link" entry |
|
Checks whether there is an entry "Type=MimeType". Returns true if there is a "Type=MimeType" entry |
|
Checks whether the user is authorized to run this desktop file. By default users are authorized to run all desktop files but the KIOSK framework can be used to activate certain restrictions. See README.kiosk for more information. path - the file to check Returns true if the user is authorized to run the file |
|
Checks whether this is really a desktop file. The check is performed looking at the file extension (the file is not opened). Currently, the only valid extension is ".desktop". path - the path of the file to check Returns true if the file appears to be a desktop file. |
|
Returns the location where changes for the .desktop file path should be written to. |
|
Returns a list of the "Actions=" entries. Returns the list of actions |
|
Returns the value of the "Comment=" entry. Returns the comment or QString() if not specified |
|
Returns the value of the "Dev=" entry. Returns the device or QString() if not specified |
|
Returns the value of the "X-DocPath=" Or "DocPath=" entry. X-DocPath should be used and DocPath is depreciated and will one day be not supported. Returns The value of the "X-DocPath=" Or "DocPath=" entry. |
|
Returns the value of the "GenericName=" entry. Returns the generic name or QString() if not specified |
|
Returns the value of the "Icon=" entry. Returns the icon or QString() if not specified |
|
Returns the value of the "Name=" entry. Returns the name or QString() if not specified |
|
Returns the value of the "Path=" entry. Returns the path or QString() if not specified |
|
Returns the value of the "Type=" entry. Returns the type or QString() if not specified |
|
Returns the value of the "URL=" entry. Returns the URL or QString() if not specified |
|
Returns the resource. Returns The resource type as passed to the constructor. |
|
Sets the desktop action group. group - the new action group Deprecated use actionGroup() |
|
Returns the entry of the "SortOrder=" entry. Returns the value of the "SortOrder=" entry. |
|
Checks whether the TryExec field contains a binary which is found on the local system. Returns true if TryExec contains an existing binary |