kdesktopfile.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef _KDESKTOPFILE_H
00022 #define _KDESKTOPFILE_H
00023
00024 #include "kconfig.h"
00025 #include "kdelibs_export.h"
00026
00027 class KDesktopFilePrivate;
00028
00037 class KDECORE_EXPORT KDesktopFile : public KConfig
00038 {
00039 Q_OBJECT
00040
00041 public:
00054 KDesktopFile( const QString &fileName, bool readOnly = false,
00055 const char * resType = "apps");
00056
00062 virtual ~KDesktopFile();
00063
00073 static bool isDesktopFile(const QString& path);
00074
00084 static bool isAuthorizedDesktopFile(const QString& path);
00085
00091 static QString locateLocal(const QString &path);
00092
00097 QString readType() const;
00098
00103 QString readIcon() const;
00104
00109 QString readName() const;
00110
00115 QString readComment() const;
00116
00121 QString readGenericName() const;
00122
00127 QString readPath() const;
00128
00133 QString readDevice() const;
00134
00139 QString readURL() const;
00140
00145 QStringList readActions() const;
00146
00151 void setActionGroup(const QString &group);
00152
00158 bool hasActionGroup(const QString &group) const;
00159
00166 bool hasLinkType() const;
00167
00172 bool hasApplicationType() const;
00173
00178 bool hasMimeTypeType() const;
00179
00184 bool hasDeviceType() const;
00185
00191 bool tryExec() const;
00192
00197 QString fileName() const;
00198
00203 QString resource() const;
00204
00212 QString readDocPath() const;
00213
00218 QStringList sortOrder() const;
00219
00230 KDesktopFile* copyTo(const QString &file) const;
00231
00232 #ifdef KDE_NO_COMPAT
00233 private:
00234 #endif
00235
00238 KDE_DEPRECATED QString filename() const { return fileName(); };
00239
00240 private:
00241
00242
00243 KDesktopFile( const KDesktopFile& );
00244 KDesktopFile& operator= ( const KDesktopFile& );
00245
00246 protected:
00247 virtual void virtual_hook( int id, void* data );
00248 private:
00249 KDesktopFilePrivate *d;
00250 };
00251
00252
00253 #endif
00254
This file is part of the documentation for kdecore Library Version 3.3.90.