PackageSource Struct

struct QInstaller::PackageSource

The PackageSource class specifies a single package source. More...

Header: #include <PackageSource>

Public Functions

PackageSource(const QUrl &u, int p)
PackageSource()

Public Variables

int priority
QUrl url

Detailed Description

An package source represents a link to an repository that contains packages applicable by the installer or package maintenance application. This structure describes a single package source in terms of url and priority. While different repositories can host the same packages, packages coming from a higher priority source take precedence over lower priority packages during applicable package computation.

Member Function Documentation

PackageSource::PackageSource(const QUrl &u, int p)

Constructs a package source info object. The object's url is set to u, while the priority is set to p.

PackageSource::PackageSource()

Constructs an empty package source info object. The object's priority is set to -1. The url is initialized using a default-constructed value.

Member Variable Documentation

int PackageSource::priority

This variable holds the priority of the package source.

QUrl PackageSource::url

This variable holds the URL of the package source.

© 2018 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.