AliasFinder Class

class QInstaller::AliasFinder

Creates component alias objects from parsed alias source files, based on version and source priorities. More...

Header: #include <AliasFinder>

Public Functions

AliasFinder(QInstaller::PackageManagerCore *core)
~AliasFinder()
QList<QInstaller::ComponentAlias *> aliases() const
bool run()
void setAliasSources(const QSet<QInstaller::AliasSource> &sources)

Detailed Description

Member Function Documentation

[explicit] AliasFinder::AliasFinder(QInstaller::PackageManagerCore *core)

Constructs a new alias finder with core as the package manager instance.

[noexcept] AliasFinder::~AliasFinder()

Destroys the finder and cleans unreleased results.

QList<QInstaller::ComponentAlias *> AliasFinder::aliases() const

Returns a list of the found aliases.

bool AliasFinder::run()

Runs the finder. Parses the alias source files and creates component alias objects based on the parsed data. Same alias may be declared in multiple source files, thus source priority and version information is used to decide which source is used for creating the alias object.

Any previous results are cleared when calling this.

Returns true if at least one alias was found, false otherwise.

void AliasFinder::setAliasSources(const QSet<QInstaller::AliasSource> &sources)

Sets the alias sources to look alias information from to sources.