Improve Profile handling

Add Profile::rootPath and Profile::configurationName properties.
This commit is contained in:
Vladimir Golovnev (Glassez)
2021-09-11 15:48:29 +03:00
parent dabba89682
commit 046b741700
4 changed files with 68 additions and 22 deletions

View File

@@ -45,7 +45,7 @@ Profile::Profile(const QString &rootProfilePath, const QString &configurationNam
ensureDirectoryExists(SpecialFolder::Data);
if (convertPathsToProfileRelative)
m_pathConverterImpl = std::make_unique<Private::Converter>(m_profileImpl->baseDirectory());
m_pathConverterImpl = std::make_unique<Private::Converter>(m_profileImpl->basePath());
else
m_pathConverterImpl = std::make_unique<Private::NoConvertConverter>();
}
@@ -93,6 +93,16 @@ QString Profile::location(const SpecialFolder folder) const
return result;
}
QString Profile::rootPath() const
{
return m_profileImpl->rootPath();
}
QString Profile::configurationName() const
{
return m_profileImpl->configurationName();
}
QString Profile::profileName() const
{
return m_profileImpl->profileName();