19 #ifndef _KDESKTOPFILE_H
20 #define _KDESKTOPFILE_H
23 #include "kdelibs_export.h"
25 class KDesktopFilePrivate;
51 KDesktopFile(
const TQString &fileName,
bool readOnly =
false,
52 const char * resType =
"apps");
70 static bool isDesktopFile(
const TQString& path);
81 static bool isAuthorizedDesktopFile(
const TQString& path);
88 static TQString locateLocal(
const TQString &path);
94 TQString readType()
const;
100 TQString readIcon()
const;
106 TQString readName()
const;
112 TQString readComment()
const;
118 TQString readGenericName()
const;
124 TQString readPath()
const;
130 TQString readDevice()
const;
136 TQString readURL()
const;
142 TQStringList readActions()
const;
148 void setActionGroup(
const TQString &group);
155 bool hasActionGroup(
const TQString &group)
const;
163 bool hasLinkType()
const;
169 bool hasApplicationType()
const;
175 bool hasMimeTypeType()
const;
181 bool hasDeviceType()
const;
188 bool tryExec()
const;
194 TQString fileName()
const;
200 TQString resource()
const;
209 TQString readDocPath()
const;
215 TQStringList sortOrder()
const;
235 KDE_DEPRECATED TQString
filename()
const {
return fileName(); };
239 TQString translatedEntry(
const char*)
const;
246 virtual void virtual_hook(
int id,
void* data );
248 KDesktopFilePrivate *d;
KDE Desktop File Management.
Access KDE Configuration entries.
KDE_DEPRECATED TQString filename() const
KConfig * copyTo(const TQString &file, KConfig *config=0) const
Copies all entries from this config object to a new config object that will save itself to file...