ssu
Public Member Functions | Static Public Member Functions | List of all members
SsuRepoManager Class Reference
Inheritance diagram for SsuRepoManager:

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)
 
QStringList repos (bool rnd, int filter=Ssu::NoFilter)
 
QStringList repos (bool rnd, SsuDeviceInfo &deviceInfo, int filter=Ssu::NoFilter)
 
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())
 

Detailed Description

Definition at line 18 of file ssurepomanager.h.

Member Function Documentation

◆ add()

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.

◆ caCertificatePath()

QString SsuRepoManager::caCertificatePath ( const QString &  domain = QString())
static

Return the path to the CA certificate to be used for the given domain, or default domain, if omitted

Return values
0Success
-1Repository not added because device is in update mode
-2Repository not added because third party repositories are disabled

Definition at line 78 of file ssurepomanager.cpp.

◆ disable()

int SsuRepoManager::disable ( const QString &  repo)

Disable a repository

Return values
0Success
-1Request ignored because device is in update mode
-2Request ignored because 3rd party repositories are disabled

Definition at line 96 of file ssurepomanager.cpp.

◆ enable()

int SsuRepoManager::enable ( const QString &  repo)

Enable a repository, given it's not disabled by board configuration

Return values
0Success
-1Request ignored because device is in update mode
-2Request ignored because 3rd party repositories are disabled

Definition at line 113 of file ssurepomanager.cpp.

◆ remove()

int SsuRepoManager::remove ( const QString &  repo)

Remove a repository

Return values
0Success
-1Request ignored because device is in update mode
-2Request ignored because 3rd party repositories are disabled

Definition at line 136 of file ssurepomanager.cpp.

◆ repos() [1/3]

QStringList SsuRepoManager::repos ( bool  rnd,
int  filter = Ssu::NoFilter 
)

Collect the list of repositories from different submodules. This form allows overriding rnd mode setting.

Definition at line 181 of file ssurepomanager.cpp.

◆ repos() [2/3]

QStringList SsuRepoManager::repos ( bool  rnd,
SsuDeviceInfo deviceInfo,
int  filter = Ssu::NoFilter 
)

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 189 of file ssurepomanager.cpp.

◆ repos() [3/3]

QStringList SsuRepoManager::repos ( int  filter = Ssu::NoFilter)

Collect the list of repositories from different submodules

Definition at line 169 of file ssurepomanager.cpp.

◆ repoVariables()

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 377 of file ssurepomanager.cpp.

◆ update()

void SsuRepoManager::update ( )

Update the repository files on disk

Definition at line 268 of file ssurepomanager.cpp.

◆ url()

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

Returns
the repository URL on success, an empty string on error

Definition at line 424 of file ssurepomanager.cpp.


The documentation for this class was generated from the following files: