AliasFinder Class
class QInstaller::AliasFinderCreates component alias objects from parsed alias source files, based on version and source priorities. More...
Header: | #include <AliasFinder> |
Public Functions
AliasFinder(PackageManagerCore *core) | |
~AliasFinder() | |
QList<ComponentAlias *> | aliases() const |
bool | run() |
void | setAliasSources(const QSet<AliasSource> &sources) |
Detailed Description
Member Function Documentation
AliasFinder::AliasFinder(PackageManagerCore *core)
Constructs a new alias finder with core as the package manager instance.
AliasFinder::~AliasFinder()
Destroys the finder and cleans unreleased results.
QList<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<AliasSource> &sources)
Sets the alias sources to look alias information from to sources.