|
ssu
|
Public Member Functions | |
| int | add (const QString &repo, const QString &repoUrl=QString()) |
| int | disable (const QString &repo) |
| int | enable (const QString &repo) |
| int | remove (const QString &repo) |
| QStringList | repos (int filter=Ssu::NoFilter|Ssu::UserBlacklist) |
| QStringList | repos (bool rnd, int filter=Ssu::NoFilter|Ssu::UserBlacklist) |
| QStringList | repos (bool rnd, SsuDeviceInfo &deviceInfo, int filter=Ssu::NoFilter|Ssu::UserBlacklist) |
| QStringList | repoVariables (QHash< QString, QString > *storageHash, bool rnd=false) |
| void | update () |
| QString | url (const QString &repoName, bool rndRepo=false, QHash< QString, QString > repoParameters=QHash< QString, QString >(), QHash< QString, QString > parametersOverride=QHash< QString, QString >()) |
Static Public Member Functions | |
| static QString | caCertificatePath (const QString &domain=QString()) |
Definition at line 18 of file ssurepomanager.h.
| SsuRepoManager::SsuRepoManager | ( | ) |
Definition at line 44 of file ssurepomanager.cpp.
| int SsuRepoManager::add | ( | const QString & | repo, |
| const QString & | repoUrl = QString() ) |
Add a repository. Note: Repositories ending with -debuginfo receive special treatment. They'll get saved with the full name to make zypper and the user happy, but internally the -debuginfo will be stripped, and the debugSplit parameter set to debug instead.
If the device is in UpdateMode this function does nothing.
Definition at line 49 of file ssurepomanager.cpp.
|
static |
Return the path to the CA certificate to be used for the given domain, or default domain, if omitted
| 0 | Success |
| -1 | Repository not added because device is in update mode |
| -2 | Repository not added because third party repositories are disabled |
Definition at line 88 of file ssurepomanager.cpp.
| int SsuRepoManager::disable | ( | const QString & | repo | ) |
Disable a repository
| 0 | Success |
| -1 | Request ignored because device is in update mode |
| -2 | Request ignored because 3rd party repositories are disabled |
Definition at line 106 of file ssurepomanager.cpp.
| int SsuRepoManager::enable | ( | const QString & | repo | ) |
Enable a repository, given it's not disabled by board configuration
| 0 | Success |
| -1 | Request ignored because device is in update mode |
| -2 | Request ignored because 3rd party repositories are disabled |
Definition at line 123 of file ssurepomanager.cpp.
| int SsuRepoManager::remove | ( | const QString & | repo | ) |
Remove a repository
| 0 | Success |
| -1 | Request ignored because device is in update mode |
| -2 | Request ignored because 3rd party repositories are disabled |
Definition at line 146 of file ssurepomanager.cpp.
| QStringList SsuRepoManager::repos | ( | bool | rnd, |
| int | filter = Ssu::NoFilter | Ssu::UserBlacklist ) |
Collect the list of repositories from different submodules. This form allows overriding rnd mode setting.
Definition at line 199 of file ssurepomanager.cpp.
| QStringList SsuRepoManager::repos | ( | bool | rnd, |
| SsuDeviceInfo & | deviceInfo, | ||
| int | filter = Ssu::NoFilter | Ssu::UserBlacklist ) |
Collect the list of repositories from different submodules. This form takes a reference to a custom device info instance to allow overrides.
Definition at line 207 of file ssurepomanager.cpp.
| QStringList SsuRepoManager::repos | ( | int | filter = Ssu::NoFilter | Ssu::UserBlacklist | ) |
Collect the list of repositories from different submodules
Definition at line 187 of file ssurepomanager.cpp.
| QStringList SsuRepoManager::repoVariables | ( | QHash< QString, QString > * | storageHash, |
| bool | rnd = false ) |
Resolve repository specific variables, and store them in storageHash. Does not include adaptation specific variables, see SsuDeviceInfo::adaptationVariables
Returns a list of sections in the configuration file that might contain repository URLs
Definition at line 375 of file ssurepomanager.cpp.
| void SsuRepoManager::update | ( | ) |
Update the repository files on disk
Definition at line 266 of file ssurepomanager.cpp.
| QString SsuRepoManager::url | ( | const QString & | repoName, |
| bool | rndRepo = false, | ||
| QHash< QString, QString > | repoParameters = QHash<QString, QString>(), | ||
| QHash< QString, QString > | parametersOverride = QHash<QString, QString>() ) |
Resolve a repository url
Definition at line 424 of file ssurepomanager.cpp.