KDECore
kstandarddirs.cpp File Reference
#include "config.h"
#include <stdlib.h>
#include <assert.h>
#include <errno.h>
#include <sys/param.h>
#include <sys/types.h>
#include <dirent.h>
#include <pwd.h>
#include <grp.h>
#include <qregexp.h>
#include <qasciidict.h>
#include <qdict.h>
#include <qdir.h>
#include <qfileinfo.h>
#include <qstring.h>
#include <qstringlist.h>
#include "kstandarddirs.h"
#include "kconfig.h"
#include "kdebug.h"
#include "kinstance.h"
#include "kshell.h"
#include "ksimpleconfig.h"
#include "kuser.h"
#include "kstaticdeleter.h"
#include <kde_file.h>
Include dependency graph for kstandarddirs.cpp:
Go to the source code of this file.
Functions | |
QString | locate (const char *type, const QString &filename, const KInstance *inst) |
QString | locateLocal (const char *type, const QString &filename, bool createDir, const KInstance *inst) |
QString | locateLocal (const char *type, const QString &filename, const KInstance *inst) |
static void | lookupDirectory (const QString &path, const QString &relPart, const QRegExp ®exp, QStringList &list, QStringList &relList, bool recursive, bool unique) |
static void | lookupPrefix (const QString &prefix, const QString &relpath, const QString &relPart, const QRegExp ®exp, QStringList &list, QStringList &relList, bool recursive, bool unique) |
static QStringList | lookupProfiles (const QString &mapFile) |
static void | priorityAdd (QStringList &prefixes, const QString &dir, bool priority) |
static QString | readEnvPath (const char *env) |
static int | tokenize (QStringList &token, const QString &str, const QString &delim) |
static Q_UINT32 | updateHash (const QString &file, Q_UINT32 hash) |
Variables | |
bool | kde_kiosk_admin |
static KStaticDeleter < KStandardDirsSingleton > | kstds_sd |
static const char *const | types [] |
Function Documentation
Definition at line 1657 of file kstandarddirs.cpp.
QString locateLocal | ( | const char * | type, | |
const QString & | filename, | |||
bool | createDir, | |||
const KInstance * | inst | |||
) | [related] |
Definition at line 1669 of file kstandarddirs.cpp.
QString locateLocal | ( | const char * | type, | |
const QString & | filename, | |||
const KInstance * | inst | |||
) | [related] |
Definition at line 1663 of file kstandarddirs.cpp.
static void lookupDirectory | ( | const QString & | path, | |
const QString & | relPart, | |||
const QRegExp & | regexp, | |||
QStringList & | list, | |||
QStringList & | relList, | |||
bool | recursive, | |||
bool | unique | |||
) | [static] |
Definition at line 464 of file kstandarddirs.cpp.
static void lookupPrefix | ( | const QString & | prefix, | |
const QString & | relpath, | |||
const QString & | relPart, | |||
const QRegExp & | regexp, | |||
QStringList & | list, | |||
QStringList & | relList, | |||
bool | recursive, | |||
bool | unique | |||
) | [static] |
Definition at line 543 of file kstandarddirs.cpp.
static QStringList lookupProfiles | ( | const QString & | mapFile | ) | [static] |
Definition at line 1436 of file kstandarddirs.cpp.
static void priorityAdd | ( | QStringList & | prefixes, | |
const QString & | dir, | |||
bool | priority | |||
) | [static] |
Definition at line 166 of file kstandarddirs.cpp.
static QString readEnvPath | ( | const char * | env | ) | [static] |
Definition at line 1197 of file kstandarddirs.cpp.
static int tokenize | ( | QStringList & | token, | |
const QString & | str, | |||
const QString & | delim | |||
) | [static] |
Definition at line 994 of file kstandarddirs.cpp.
static Q_UINT32 updateHash | ( | const QString & | file, | |
Q_UINT32 | hash | |||
) | [static] |
Definition at line 340 of file kstandarddirs.cpp.
Variable Documentation
Definition at line 154 of file kapplication.cpp.
KStaticDeleter<KStandardDirsSingleton> kstds_sd [static] |
Definition at line 89 of file kstandarddirs.cpp.
const char* const types[] [static] |
Initial value:
{"html", "icon", "apps", "sound", "data", "locale", "services", "mime", "servicetypes", "config", "exe", "wallpaper", "lib", "pixmap", "templates", "module", "qtplugins", "xdgdata-apps", "xdgdata-dirs", "xdgconf-menu", "xdgdata-icon", "xdgdata-pixmap", "kcfg", "emoticons", 0 }
Definition at line 97 of file kstandarddirs.cpp.