kdesktopfile.cpp
146 kdWarning() << "Access to '" << path << "' denied because of 'run_desktop_files' restriction." << endl;
bool hasApplicationType() const
Checks whether there is an entry "Type=Application".
Definition: kdesktopfile.cpp:257
KDesktopFile * copyTo(const TQString &file) const
Copies all entries from this config object to a new KDesktopFile object that will save itself to file...
Definition: kdesktopfile.cpp:370
static bool isDesktopFile(const TQString &path)
Checks whether this is really a desktop file.
Definition: kdesktopfile.cpp:113
TQString readGenericName() const
Returns the value of the "GenericName=" entry.
Definition: kdesktopfile.cpp:191
bool hasDeviceType() const
Checks whether there is an entry "Type=FSDev".
Definition: kdesktopfile.cpp:267
KDesktopFile(const TQString &fileName, bool readOnly=false, const char *resType="apps")
Constructs a KDesktopFile object and make it either read-write or read-only.
Definition: kdesktopfile.cpp:43
bool hasActionGroup(const TQString &group) const
Returns true if the action group exists, false otherwise.
Definition: kdesktopfile.cpp:247
TQString readComment() const
Returns the value of the "Comment=" entry.
Definition: kdesktopfile.cpp:186
TQString readDocPath() const
Returns the value of the "X-DocPath=" entry.
Definition: kdesktopfile.cpp:365
TQStringList readActions() const
Returns a list of the "Actions=" entries.
Definition: kdesktopfile.cpp:237
bool hasMimeTypeType() const
Checks whether there is an entry "Type=MimeType".
Definition: kdesktopfile.cpp:262
bool hasLinkType() const
Checks whether there is a "Type=Link" entry.
Definition: kdesktopfile.cpp:252
bool tryExec() const
Checks whether the TryExec field contains a binary which is found on the local system.
Definition: kdesktopfile.cpp:273
TQStringList sortOrder() const
Returns the entry of the "SortOrder=" entry.
Definition: kdesktopfile.cpp:357
static TQString locateLocal(const TQString &path)
Returns the location where changes for the .desktop file path should be written to.
Definition: kdesktopfile.cpp:61
static bool isAuthorizedDesktopFile(const TQString &path)
Checks whether the user is authorized to run this desktop file.
Definition: kdesktopfile.cpp:125
void setActionGroup(const TQString &group)
Sets the desktop action group.
Definition: kdesktopfile.cpp:242
The KMountPoint class provides information about mounted and unmounted disks.
Definition: kmountpoint.h:36
TQString mountPoint() const
Path where the filesystem is mounted or can be mounted.
Definition: kmountpoint.h:74
static KMountPoint::List possibleMountPoints(int infoNeeded=0)
This function gives a list of all possible mountpoints.
Definition: kmountpoint.cpp:130
TQString url(int _trailing=0, int encoding_hint=0) const
Returns the URL as string, with all escape sequences intact, encoded in a given charset.
Definition: kurl.cpp:1499
TQString fileName() const
Returns the filename as passed to the constructor.
Definition: tdeconfigbackend.h:120
const char * resource() const
Returns the resource type as passed to the constructor.
Definition: tdeconfigbackend.h:126
void changeFileName(const TQString &_fileName, const char *_resType, bool _useKDEGlobals)
Changes the filenames associated with this back end.
Definition: tdeconfigbackend.cpp:243
TQString readEntry(const TQString &pKey, const TQString &aDefault=TQString::null) const
Reads the value of an entry specified by pKey in the current group.
Definition: tdeconfigbase.cpp:221
bool readBoolEntry(const TQString &pKey, bool bDefault=false) const
Reads a boolean entry.
Definition: tdeconfigbase.cpp:748
TDEConfigBackEnd * backEnd
A back end for loading/saving to disk in a particular format.
Definition: tdeconfigbase.h:1999
void setDesktopGroup()
Sets the group to the "Desktop Entry" group used for desktop configuration files for applications,...
Definition: tdeconfigbase.cpp:104
bool hasGroup(const TQString &group) const
Returns true if the specified group is known about.
Definition: tdeconfigbase.cpp:152
TQString readEntryUntranslated(const TQString &pKey, const TQString &aDefault=TQString::null) const
Reads the value of an entry specified by pKey in the current group.
Definition: tdeconfigbase.cpp:204
TQString group() const
Returns the name of the group in which we are searching for keys and from which we are retrieving ent...
Definition: tdeconfigbase.cpp:100
int readListEntry(const TQString &pKey, TQStrList &list, char sep=',') const
Reads a list of strings.
Definition: tdeconfigbase.cpp:467
virtual void setReadOnly(bool _ro)
Sets the config object's read-only status.
Definition: tdeconfigbase.h:1755
bool hasKey(const TQString &key) const
Checks whether the key has an entry in the currently active group.
Definition: tdeconfigbase.cpp:109
TQString readPathEntry(const TQString &pKey, const TQString &aDefault=TQString::null) const
Reads a path.
Definition: tdeconfigbase.cpp:585
void setGroup(const TQString &group)
Specifies the group in which keys will be read and written.
Definition: tdeconfigbase.cpp:79
virtual void reparseConfiguration()
Clears all internal data structures and then reread configuration information from disk.
Definition: tdeconfig.cpp:161
TDEConfig * copyTo(const TQString &file, TDEConfig *config=0) const
Copies all entries from this config object to a new config object that will save itself to file.
Definition: tdeconfig.cpp:303
static TDEStandardDirs * dirs()
Returns the application standard dirs object.
Definition: tdeglobal.cpp:58
TQString translate(const char *index) const
Translates the string into the corresponding string in the national language, if available.
Definition: tdelocale.cpp:768
TQString relativeLocation(const char *type, const TQString &absPath)
Converts an absolute path to a path relative to a certain resource.
Definition: kstandarddirs.cpp:1154