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 and make it either read-write
or read-only.
fileName - The name or path of the desktop file. If it is not absolute, it will be located using the resource type resType. readOnly - Whether the object should be read-only. 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". |
|
|
Virtual hook, used to add new "virtual" functions while maintaining binary compatibility. Unused in this class. |
|
Sets the desktop action group.
group - the new action group |
|
|
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. |
|
|
|
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. 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 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 |