summaryrefslogtreecommitdiffstats
path: root/installerbuilder/libinstaller/settings.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'installerbuilder/libinstaller/settings.cpp')
-rw-r--r--installerbuilder/libinstaller/settings.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/installerbuilder/libinstaller/settings.cpp b/installerbuilder/libinstaller/settings.cpp
index 2f6caeae7..33143e2a0 100644
--- a/installerbuilder/libinstaller/settings.cpp
+++ b/installerbuilder/libinstaller/settings.cpp
@@ -391,6 +391,12 @@ QSet<Repository> Settings::defaultRepositories() const
return variantListToSet<Repository>(d->m_data.values(scRepositories));
}
+void Settings::setDefaultRepositories(const QSet<Repository> &repositories)
+{
+ d->m_data.remove(scRepositories);
+ addDefaultRepositories(repositories);
+}
+
void Settings::addDefaultRepositories(const QSet<Repository> &repositories)
{
foreach (const Repository &repository, repositories)
@@ -404,6 +410,12 @@ QSet<Repository> Settings::temporaryRepositories() const
void Settings::setTemporaryRepositories(const QSet<Repository> &repositories, bool replace)
{
+ d->m_data.remove(scTmpRepositories);
+ addTemporaryRepositories(repositories, replace);
+}
+
+void Settings::addTemporaryRepositories(const QSet<Repository> &repositories, bool replace)
+{
d->m_replacementRepos = replace;
foreach (const Repository &repository, repositories)
d->m_data.insertMulti(scTmpRepositories, QVariant().fromValue(repository));
@@ -414,6 +426,12 @@ QSet<Repository> Settings::userRepositories() const
return variantListToSet<Repository>(d->m_data.values(scUserRepositories));
}
+void Settings::setUserRepositories(const QSet<Repository> &repositories)
+{
+ d->m_data.remove(scUserRepositories);
+ addUserRepositories(repositories);
+}
+
void Settings::addUserRepositories(const QSet<Repository> &repositories)
{
foreach (const Repository &repository, repositories)