org.kde.koala
public class KDesktopFile extends KConfig
See Also: KConfigBase KConfig
UNKNOWN: KDE Desktop File Management class.
| Constructor Summary | |
|---|---|
| protected | KDesktopFile(Class dummy) |
| KDesktopFile(String fileName, boolean readOnly, String resType)
Constructs a KDesktopFile object and make it either read-write
or read-only. | |
| KDesktopFile(String fileName, boolean readOnly) | |
| KDesktopFile(String fileName) | |
| Method Summary | |
|---|---|
| String | className() |
| KConfig | copyTo(String file)
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. |
| void | dispose() Delete the wrapped C++ instance ahead of finalize() |
| String | fileName()
Returns the file name. |
| protected void | finalize() Deletes the wrapped C++ instance |
| boolean | hasActionGroup(String group)
Returns true if the action group exists, false otherwise |
| boolean | hasApplicationType()
Checks whether there is an entry "Type=Application". |
| boolean | hasDeviceType()
Checks whether there is an entry "Type=FSDev". |
| boolean | hasLinkType()
Checks whether there is a "Type=Link" entry.
|
| boolean | hasMimeTypeType()
Checks whether there is an entry "Type=MimeType". |
| static boolean | isAuthorizedDesktopFile(String path)
Checks whether the user is authorized to run this desktop file.
|
| static boolean | isDesktopFile(String path)
Checks whether this is really a desktop file.
|
| boolean | isDisposed() Has the wrapped C++ instance been deleted? |
| static String | locateLocal(String path)
Returns the location where changes for the .desktop file path
should be written to. |
| QMetaObject | metaObject() |
| ArrayList | readActions()
Returns a list of the "Actions=" entries. |
| String | readComment()
Returns the value of the "Comment=" entry. |
| String | readDevice()
Returns the value of the "Dev=" entry. |
| String | readDocPath()
Returns the value of the "X-DocPath=" Or "DocPath=" entry.
|
| String | readGenericName()
Returns the value of the "GenericName=" entry. |
| String | readIcon()
Returns the value of the "Icon=" entry. |
| String | readName()
Returns the value of the "Name=" entry. |
| String | readPath()
Returns the value of the "Path=" entry. |
| String | readType()
Returns the value of the "Type=" entry. |
| String | readURL()
Returns the value of the "URL=" entry. |
| String | resource()
Returns the resource. |
| void | setActionGroup(String group)
Sets the desktop action group. |
| ArrayList | sortOrder()
Returns the entry of the "SortOrder=" entry. |
| boolean | tryExec()
Checks whether the TryExec field contains a binary
which is found on the local system. |
Parameters: 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".
UNKNOWN: Constructs a KDesktopFile object and make it either read-write or read-only.
file.
Actual saving to file happens when the returned object is
destructed or when sync() is called upon it.Parameters: file the new KDesktopFile object it will save itself to.
UNKNOWN: Copies all entries from this config object to a new KDesktopFile object that will save itself to file.
Returns: The filename as passed to the constructor.
UNKNOWN: Returns the file name.
Parameters: group the action group to test
Returns: true if the action group exists
UNKNOWN: Returns true if the action group exists, false otherwise
Returns: true if there is a "Type=Application" entry
UNKNOWN: Checks whether there is an entry "Type=Application".
Returns: true if there is a "Type=FSDev" entry
UNKNOWN: Checks whether there is an entry "Type=FSDev".
Returns: true if there is a "Type=Link" entry
UNKNOWN: Checks whether there is a "Type=Link" entry.
Returns: true if there is a "Type=MimeType" entry
UNKNOWN: Checks whether there is an entry "Type=MimeType".
Parameters: path the file to check
Returns: true if the user is authorized to run the file
UNKNOWN: Checks whether the user is authorized to run this desktop file.
Parameters: path the path of the file to check
Returns: true if the file appears to be a desktop file.
UNKNOWN: Checks whether this is really a desktop file.
path
should be written to.UNKNOWN: Returns the location where changes for the .
Returns: the list of actions
UNKNOWN: Returns a list of the "Actions=" entries.
Returns: the comment or null if not specified
UNKNOWN: Returns the value of the "Comment=" entry.
Returns: the device or null if not specified
UNKNOWN: Returns the value of the "Dev=" entry.
Returns: The value of the "X-DocPath=" Or "DocPath=" entry.
UNKNOWN: Returns the value of the "X-DocPath=" Or "DocPath=" entry.
Returns: the generic name or null if not specified
UNKNOWN: Returns the value of the "GenericName=" entry.
Returns: the icon or null if not specified
UNKNOWN: Returns the value of the "Icon=" entry.
Returns: the name or null if not specified
UNKNOWN: Returns the value of the "Name=" entry.
Returns: the path or null if not specified
UNKNOWN: Returns the value of the "Path=" entry.
Returns: the type or null if not specified
UNKNOWN: Returns the value of the "Type=" entry.
Returns: the URL or null if not specified
UNKNOWN: Returns the value of the "URL=" entry.
Returns: The resource type as passed to the constructor.
UNKNOWN: Returns the resource.
Parameters: group the new action group
UNKNOWN: Sets the desktop action group.
Returns: the value of the "SortOrder=" entry.
UNKNOWN: Returns the entry of the "SortOrder=" entry.
Returns: true if TryExec contains an existing binary
UNKNOWN: Checks whether the TryExec field contains a binary which is found on the local system.