Commit d402afe8 authored by Aard's avatar Aard

Add a variant of SsuRepoManager::repos() reading rndmode from configuration

parent ffc891ef
......@@ -123,6 +123,17 @@ int SsuRepoManager::remove(QString repo){
return 0;
}
QStringList SsuRepoManager::repos(int filter){
SsuDeviceInfo deviceInfo;
SsuCoreConfig *ssuSettings = SsuCoreConfig::instance();
bool rnd = false;
if ((ssuSettings->deviceMode() & Ssu::RndMode) == Ssu::RndMode)
rnd = true;
return repos(rnd, deviceInfo, filter);
}
QStringList SsuRepoManager::repos(bool rnd, int filter){
SsuDeviceInfo deviceInfo;
......
......@@ -65,6 +65,11 @@ class SsuRepoManager: public QObject {
/**
* Collect the list of repositories from different submodules
*/
QStringList repos(int filter=Ssu::NoFilter);
/**
* Collect the list of repositories from different submodules.
* This form allows overriding rnd mode setting.
*/
QStringList repos(bool rnd, int filter=Ssu::NoFilter);
/**
* Collect the list of repositories from different submodules.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment