KDECore
Go to the documentation of this file.
23 #ifndef KSTANDARDDIRS_H
24 #define KSTANDARDDIRS_H
26 #include <QtCore/QStringList>
28 #include <QtCore/QMap>
194 Q_DECLARE_FLAGS( SearchOptions, SearchOption )
210 void addPrefix( const
QString& dir );
219 void addXdgConfigPrefix( const
QString& dir );
228 void addXdgDataPrefix( const
QString& dir );
253 #ifndef KDE_NO_DEPRECATED
254 KDE_DEPRECATED
bool addResourceType(
const char *type,
255 const QString& relativename,
bool priority =
true );
279 bool addResourceType(
const char *type,
const char *basetype,
280 const QString& relativename,
bool priority =
true );
284 const char* relativename,
bool priority =
true )
286 return addResourceType(type, basetype, QLatin1String(relativename), priority);
306 bool addResourceDir(
const char *type,
307 const QString& absdir,
bool priority =
true );
336 QString findResource(
const char *type,
337 const QString& filename )
const;
353 bool isRestrictedResource(
const char *type,
369 quint32 calcResourceHash(
const char *type,
371 SearchOptions options = NoSearchOptions)
const;
414 QString findResourceDir(
const char *type,
415 const QString& filename)
const;
440 SearchOptions options = NoSearchOptions )
const;
472 SearchOptions options,
508 SearchOptions options = NoSearchOptions );
530 SearchOptions options = NoSearchOptions );
581 QString saveLocation(
const char *type,
583 bool create =
true)
const;
600 QString relativeLocation(
const char *type,
const QString &absPath);
612 static bool makeDir(
const QString& dir,
int mode = 0755);
652 #ifndef KDE_NO_DEPRECATED
653 static KDE_DEPRECATED
QString kde_default(
const char *type);
664 QString kfsstnd_xdg_conf_prefixes();
669 QString kfsstnd_xdg_data_prefixes();
683 QString localxdgdatadir()
const;
689 QString localxdgconfdir()
const;
695 static QString installPath(
const char *type);
704 static bool exists(
const QString &fullPath);
787 static bool checkAccess(
const QString& pathname,
int mode);
791 KStandardDirs(
const KStandardDirs& );
792 KStandardDirs& operator= (
const KStandardDirs& );
794 class KStandardDirsPrivate;
795 KStandardDirsPrivate*
const d;
800 void addPrefix(
const QString& dir,
bool priority );
801 void addXdgConfigPrefix(
const QString& dir,
bool priority );
802 void addXdgDataPrefix(
const QString& dir,
bool priority );
803 void addKDEDefaults();
805 void addResourcesFrom_krcdirs();
808 Q_DECLARE_OPERATORS_FOR_FLAGS(KStandardDirs::SearchOptions)
810 #endif // KSTANDARDDIRS_H
bool addResourceType(const char *type, const char *basetype, const char *relativename, bool priority=true)
KSharedConfigPtr config()
Returns the general config object.
Site-independent access to standard KDE directories.
The central class of the KDE configuration data system.
const KComponentData & mainComponent()
Returns the global component data.
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:47:09 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.