KDECore
Go to the documentation of this file.
21 #include <config-prefix.h>
27 Q_ASSERT(type != NULL);
31 if (strcmp(
"apps", type) == 0)
32 return QFile::decodeName(APPLNK_INSTALL_DIR
"/");
35 if (strcmp(
"config", type) == 0)
36 return QFile::decodeName(CONFIG_INSTALL_DIR
"/");
39 if (strcmp(
"kcfg", type) == 0)
40 return QFile::decodeName(KCFG_INSTALL_DIR
"/");
41 if (strcmp(
"kdedir", type) == 0)
42 return QFile::decodeName(KDEDIR
"/");
45 if (strcmp(
"data", type) == 0)
46 return QFile::decodeName(DATA_INSTALL_DIR
"/");
49 if (strcmp(
"exe", type) == 0)
50 return QFile::decodeName(BIN_INSTALL_DIR
"/");
53 if (strcmp(
"html", type) == 0)
54 return QFile::decodeName(HTML_INSTALL_DIR
"/");
57 if (strcmp(
"icon", type) == 0)
58 return QFile::decodeName(ICON_INSTALL_DIR
"/");
59 if (strcmp(
"include", type) == 0)
60 return QFile::decodeName(INCLUDE_INSTALL_DIR
"/");
63 if (strcmp(
"lib", type) == 0)
64 return QFile::decodeName(LIB_INSTALL_DIR
"/");
65 if (strcmp(
"libexec", type) == 0)
66 return QFile::decodeName(KDEDIR
"/lib" KDELIBSUFF
"/kde4/libexec/");
67 if (strcmp(
"locale", type) == 0)
68 return QFile::decodeName(LOCALE_INSTALL_DIR
"/");
71 if (strcmp(
"module", type) == 0)
72 return QFile::decodeName(PLUGIN_INSTALL_DIR
"/");
73 if (strcmp(
"mime", type) == 0)
74 return QFile::decodeName(MIME_INSTALL_DIR
"/");
77 if (strcmp(
"qtplugins", type) == 0)
78 return QFile::decodeName(PLUGIN_INSTALL_DIR
"/plugins/");
81 if (strcmp(
"services", type) == 0)
82 return QFile::decodeName(SERVICES_INSTALL_DIR
"/");
83 if (strcmp(
"servicetypes", type) == 0)
84 return QFile::decodeName(SERVICETYPES_INSTALL_DIR
"/");
85 if (strcmp(
"sound", type) == 0)
86 return QFile::decodeName(SOUND_INSTALL_DIR
"/");
89 if (strcmp(
"templates", type) == 0)
90 return QFile::decodeName(TEMPLATES_INSTALL_DIR
"/");
93 if (strcmp(
"wallpaper", type) == 0)
94 return QFile::decodeName(WALLPAPER_INSTALL_DIR
"/");
97 if (strcmp(
"xdgconf-menu", type) == 0)
98 return QFile::decodeName(SYSCONF_INSTALL_DIR
"/xdg/menus/");
99 if (strcmp(
"xdgdata-apps", type) == 0)
100 return QFile::decodeName(XDG_APPS_INSTALL_DIR
"/");
101 if (strcmp(
"xdgdata-dirs", type) == 0)
102 return QFile::decodeName(XDG_DIRECTORY_INSTALL_DIR
"/");
static QString installPath(const char *type)
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.