#include <kdesktopfile.h>
Inheritance diagram for KDesktopFile:

Public Methods | |
| KDesktopFile (const QString &fileName, bool readOnly=false, const char *resType="apps") | |
| virtual | ~KDesktopFile () |
| QString | readType () const |
| QString | readIcon () const |
| QString | readName () const |
| QString | readComment () const |
| QString | readGenericName () const |
| QString | readPath () const |
| QString | readDevice () const |
| QString | readURL () const |
| QStringList | readActions () const |
| void | setActionGroup (const QString &group) |
| bool | hasActionGroup (const QString &group) const |
| bool | hasLinkType () const |
| bool | hasApplicationType () const |
| bool | hasMimeTypeType () const |
| bool | hasDeviceType () const |
| bool | tryExec () const |
| QString | fileName () const |
| QString | resource () const |
| QString | readDocPath () const |
| QStringList | sortOrder () const |
| QString | filename () const |
Static Public Methods | |
| bool | isDesktopFile (const QString &path) |
| bool | isAuthorizedDesktopFile (const QString &path) |
Protected Methods | |
| virtual void | virtual_hook (int id, void *data) |
KDE Desktop File Management.
Definition at line 36 of file kdesktopfile.h.
|
||||||||||||||||
|
Constructs a KDesktopFile object and make it either read-write or read-only.
|
|
|
Destructs the KDesktopFile object. Writes back any dirty configuration entries. |
|
|
Definition at line 218 of file kdesktopfile.h. References fileName(). |
|
|
Returns the file name.
Referenced by filename(). |
|
|
Returns true if the action group exists, false otherwise
|
|
|
Checks whether there is an entry "Type=Application".
|
|
|
Checks whether there is an entry "Type=FSDev".
|
|
|
Checks whether there is a "Type=Link" entry. The link points to the "URL=" entry.
|
|
|
Checks whether there is an entry "Type=MimeType".
|
|
|
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.
|
|
|
Checks whether this is really a desktop file. The check is performed looking at the file extension (the file is not opened). Currently, valid extensions are ".kdelnk" and ".desktop".
|
|
|
Returns a list of the "Actions=" entries.
|
|
|
Returns the value of the "Comment=" entry.
|
|
|
Returns the value of the "Dev=" entry.
|
|
|
Returns the value of the "DocPath=" entry.
|
|
|
Returns the value of the "GenericName=" entry.
|
|
|
Returns the value of the "Icon=" entry.
|
|
|
Returns the value of the "Name=" entry.
|
|
|
Returns the value of the "Path=" entry.
|
|
|
Returns the value of the "Type=" entry.
|
|
|
Returns the value of the "URL=" entry.
|
|
|
Returns the resource.
|
|
|
Sets the desktop action group.
|
|
|
Returns the entry of the "SortOrder=" entry.
|
|
|
Checks whether the TryExec field contains a binary which is found on the local system.
|
1.2.18