34 OUString aProfilePath)
35 : profileName(
std::move(aProfileName))
36 , profilePath(
std::move(aProfilePath))
70 sal_Int32
index=
static_cast<sal_Int32
>(product);
74 OUString profilesIni = regDir +
"profiles.ini";
78 for(
auto& rSection : rAllSection)
86 for(
auto& rValue : aSection->
vVector)
89 if ( aValue->
sName ==
"Name" )
91 profileName = aValue->
sValue;
93 else if ( aValue->
sName ==
"IsRelative" )
95 sIsRelative = aValue->
sValue;
97 else if ( aValue->
sName ==
"Path" )
99 profilePath = aValue->
sValue;
101 else if ( aValue->
sName ==
"Default" )
103 sIsDefault = aValue->
sValue;
106 if (!(profileName.isEmpty() && profilePath.isEmpty()))
108 sal_Int32 isRelative = 0;
109 if (!sIsRelative.isEmpty())
111 isRelative = sIsRelative.toInt32();
114 OUString fullProfilePath;
117 fullProfilePath = regDir + profilePath;
121 fullProfilePath = profilePath;
126 sal_Int32 isDefault = 0;
127 if (!sIsDefault.isEmpty())
129 isDefault = sIsDefault.toInt32();
141 if (profileName ==
"default-release")
151 sal_Int32
index=
static_cast<sal_Int32
>(product);
159 return rProduct.
mProfileList[profileName].getProfilePath();
164 sal_Int32
index=
static_cast<sal_Int32
>(product);
166 return static_cast< ::sal_Int32
>(rProduct.
mProfileList.size());
170 sal_Int32
index=
static_cast<sal_Int32
>(product);
172 list.realloc(
static_cast<sal_Int32
>(rProduct.
mProfileList.size()));
173 auto listRange = list.getArray();
182 return static_cast< ::sal_Int32
>(rProduct.
mProfileList.size());
187 sal_Int32
index=
static_cast<sal_Int32
>(product);
205 sal_Int32
index=
static_cast<sal_Int32
>(product);
OUString getRegistryDir(MozillaProductType product)
std::map< OUString, ini_Section > IniSectionMap
OUString mCurrentProfileName
::sal_Int32 getProfileCount(css::mozilla::MozillaProductType product)
::sal_Int32 getProfileList(css::mozilla::MozillaProductType product, css::uno::Sequence< OUString > &list)
OUString getProfilePath(css::mozilla::MozillaProductType product, const OUString &profileName)
void LoadXPToolkitProfiles(MozillaProductType product)
ProductStruct m_ProductProfileList[4]
OUString getDefaultProfile(css::mozilla::MozillaProductType product)
bool getProfileExists(css::mozilla::MozillaProductType product, const OUString &profileName)
const OUString & getProfilePath() const
const OUString & getProfileName() const