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.

© 2021 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. The Qt Company, Qt and their respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.