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 explicit KDesktopFile( const QString& fileName);
00055
00061 virtual ~KDesktopFile();
00062
00072 static bool isDesktopFile(const QString& path);
00073
00082 static bool isAuthorizedDesktopFile(const QString& path);
00083
00088 static QString locateLocal(const QString &path);
00089
00090 KConfigGroup desktopGroup() const;
00091
00096 QString readType() const;
00097
00102 QString readIcon() const;
00103
00108 QString readName() const;
00109
00114 QString readComment() const;
00115
00120 QString readGenericName() const;
00121
00126 QString readPath() const;
00127
00132 QString readDevice() const;
00133
00138 QString readUrl() const;
00139
00144 QStringList readActions() const;
00145
00150 KConfigGroup actionGroup(const QString &group);
00151
00152 const KConfigGroup actionGroup(const QString &group) const;
00153
00159 bool hasActionGroup(const QString &group) const;
00160
00167 bool hasLinkType() const;
00168
00173 bool hasApplicationType() const;
00174
00179 bool hasMimeTypeType() const;
00180
00185 bool hasDeviceType() const;
00186
00192 bool tryExec() const;
00193
00198 QString readDocPath() const;
00199
00204 QStringList sortOrder() const;
00205
00212 bool noDisplay() const;
00213
00223 KDesktopFile* copyTo(const QString &file) const;
00224
00225 QString fileName() const;
00226
00227 const char *resource() const;
00228
00229 protected:
00233
00234 private:
00235
00236 Q_DISABLE_COPY(KDesktopFile)
00237
00238 Q_DECLARE_PRIVATE(KDesktopFile)
00239 };
00240
00241 #endif