19 #ifndef _KDESKTOPFILE_H
20 #define _KDESKTOPFILE_H
22 #include "tdeconfig.h"
23 #include "tdelibs_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;
207 TQString readDocPath()
const;
213 TQStringList sortOrder()
const;
233 TDE_DEPRECATED TQString
filename()
const {
return fileName(); };
237 TQString translatedEntry(
const char*)
const;
244 virtual void virtual_hook(
int id,
void* data );
246 KDesktopFilePrivate *d;
KDE Desktop File Management.
TDE_DEPRECATED TQString filename() const
Access KDE Configuration entries.
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.