KDECore
kdesktopfile.h
Go to the documentation of this file.
KConfigGroup group(const QByteArray &group)
Returns an object for the named subgroup.
Definition kconfigbase.cpp:44
KConfig * copyTo(const QString &file, KConfig *config=0) const
Copies all entries from this config object to a new config object that will save itself to file.
Definition kconfig.cpp:486
KConfig(const QString &file=QString(), OpenFlags mode=FullConfig, const char *resourceType="config")
Creates a KConfig object to manipulate a configuration file for the current application.
Definition kconfig.cpp:211
bool hasApplicationType() const
Checks whether there is an entry "Type=Application".
Definition kdesktopfile.cpp:267
QStringList sortOrder() const
Returns the entry of the "SortOrder=" entry.
Definition kdesktopfile.cpp:354
KConfigGroup actionGroup(const QString &group)
Sets the desktop action group.
Definition kdesktopfile.cpp:247
QString readGenericName() const
Returns the value of the "GenericName=" entry.
Definition kdesktopfile.cpp:204
bool hasDeviceType() const
Checks whether there is an entry "Type=FSDevice".
Definition kdesktopfile.cpp:277
bool noDisplay() const
Whether the entry should be suppressed in menus.
Definition kdesktopfile.cpp:391
QString readComment() const
Returns the value of the "Comment=" entry.
Definition kdesktopfile.cpp:198
static bool isDesktopFile(const QString &path)
Checks whether this is really a desktop file.
Definition kdesktopfile.cpp:131
bool hasMimeTypeType() const
Checks whether there is an entry "Type=MimeType".
Definition kdesktopfile.cpp:272
bool tryExec() const
Checks whether the TryExec field contains a binary which is found on the local system.
Definition kdesktopfile.cpp:282
static QString locateLocal(const QString &path)
Returns the location where changes for the .desktop file path should be written to.
Definition kdesktopfile.cpp:79
QString readDocPath() const
Returns the value of the "X-DocPath=" Or "DocPath=" entry.
Definition kdesktopfile.cpp:363
static bool isAuthorizedDesktopFile(const QString &path)
Checks whether the user is authorized to run this desktop file.
Definition kdesktopfile.cpp:137
bool hasActionGroup(const QString &group) const
Returns true if the action group exists, false otherwise.
Definition kdesktopfile.cpp:257
QStringList readActions() const
Returns a list of the "Actions=" entries.
Definition kdesktopfile.cpp:241
KDesktopFile(const char *resourceType, const QString &fileName)
Constructs a KDesktopFile object.
Definition kdesktopfile.cpp:53
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 17 2025 00:00:00 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 17 2025 00:00:00 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.