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
00092 static bool isAuthorizedDesktopFile(const QString& path);
00093
00098 static QString locateLocal(const QString &path);
00099
00100 KConfigGroup desktopGroup() const;
00101
00106 QString readType() const;
00107
00112 QString readIcon() const;
00113
00118 QString readName() const;
00119
00124 QString readComment() const;
00125
00130 QString readGenericName() const;
00131
00136 QString readPath() const;
00137
00142 QString readDevice() const;
00143
00148 QString readUrl() const;
00149
00154 QStringList readActions() const;
00155
00160 KConfigGroup actionGroup(const QString &group);
00161
00162 const KConfigGroup actionGroup(const QString &group) const;
00163
00169 bool hasActionGroup(const QString &group) const;
00170
00177 bool hasLinkType() const;
00178
00183 bool hasApplicationType() const;
00184
00189 bool hasMimeTypeType() const;
00190
00195 bool hasDeviceType() const;
00196
00202 bool tryExec() const;
00203
00208 QString readDocPath() const;
00209
00214 QStringList sortOrder() const;
00215
00222 bool noDisplay() const;
00223
00233 KDesktopFile* copyTo(const QString &file) const;
00234
00235 QString fileName() const;
00236
00237 const char *resource() const;
00238
00239 protected:
00243
00244 private:
00245
00246 Q_DISABLE_COPY(KDesktopFile)
00247
00248 Q_DECLARE_PRIVATE(KDesktopFile)
00249 };
00250
00251 #endif