36 Profile::Profile(
const QString &rootProfilePath,
const QString &configurationName,
const bool convertPathsToProfileRelative)
38 if (rootProfilePath.isEmpty())
47 if (convertPathsToProfileRelative)
54 const bool convertPathsToProfileRelative)
116 const QString locationPath =
location(folder);
117 if (!locationPath.isEmpty() && !QDir().mkpath(locationPath))
118 qFatal(
"Could not create required directory '%s'", qUtf8Printable(locationPath));
std::unique_ptr< Private::Profile > m_profileImpl
std::unique_ptr< Private::PathConverter > m_pathConverterImpl
static Profile * m_instance
QString fromPortablePath(const QString &portablePath) const
QString toPortablePath(const QString &absolutePath) const
void ensureDirectoryExists(SpecialFolder folder) const
QString profileName() const
static void freeInstance()
QString location(SpecialFolder folder) const
QString configurationName() const
SettingsPtr applicationSettings(const QString &name) const
static void initInstance(const QString &rootProfilePath, const QString &configurationName, bool convertPathsToProfileRelative)
static const Profile * instance()
Profile(const QString &rootProfilePath, const QString &configurationName, bool convertPathsToProfileRelative)
QString specialFolderLocation(const SpecialFolder folder)
std::unique_ptr< QSettings > SettingsPtr