KDECore
kdesktopfile.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef KDESKTOPFILE_H
00020 #define KDESKTOPFILE_H
00021
00022 #include <kconfig.h>
00023
00024 class KConfigGroup;
00025 class KDesktopFilePrivate;
00026
00038 class KDECORE_EXPORT KDesktopFile : public KConfig
00039 {
00040 public:
00053 explicit KDesktopFile(const char *resourceType, const QString &fileName);
00054
00064 explicit KDesktopFile(const QString &fileName);
00065
00071 virtual ~KDesktopFile();
00072
00082 static bool isDesktopFile(const QString& path);
00083
00099 static bool isAuthorizedDesktopFile(const QString& path);
00100
00105 static QString locateLocal(const QString &path);
00106
00107 KConfigGroup desktopGroup() const;
00108
00113 QString readType() const;
00114
00119 QString readIcon() const;
00120
00125 QString readName() const;
00126
00131 QString readComment() const;
00132
00137 QString readGenericName() const;
00138
00143 QString readPath() const;
00144
00149 QString readDevice() const;
00150
00155 QString readUrl() const;
00156
00161 QStringList readActions() const;
00162
00167 KConfigGroup actionGroup(const QString &group);
00168
00169 const KConfigGroup actionGroup(const QString &group) const;
00170
00176 bool hasActionGroup(const QString &group) const;
00177
00184 bool hasLinkType() const;
00185
00190 bool hasApplicationType() const;
00191
00196 bool hasMimeTypeType() const;
00197
00202 bool hasDeviceType() const;
00203
00209 bool tryExec() const;
00210
00215 QString readDocPath() const;
00216
00221 QStringList sortOrder() const;
00222
00229 bool noDisplay() const;
00230
00240 KDesktopFile* copyTo(const QString &file) const;
00241
00242 QString fileName() const;
00243
00244 const char *resource() const;
00245
00246 protected:
00250
00251 private:
00252
00253 Q_DISABLE_COPY(KDesktopFile)
00254
00255 Q_DECLARE_PRIVATE(KDesktopFile)
00256 };
00257
00258 #endif