KDUpdater::UpdateFinder Class
class KDUpdater::UpdateFinderThe UpdaterFinder class finds updates applicable for installed packages. More...
Header: | #include <UpdateFinder> |
Inherits: | KDUpdater::Task |
Public Functions
UpdateFinder() | |
virtual | ~UpdateFinder() |
void | setLocalPackageHub(std::weak_ptr<KDUpdater::LocalPackageHub> hub) |
void | setPackageSources(const QSet<QInstaller::PackageSource> &sources) |
QList<KDUpdater::Update *> | updates() const |
Detailed Description
The KDUpdater::UpdateFinder class helps in searching for updates and installing them on the application. The class basically processes the application's KDUpdater::PackagesInfo and the UpdateXMLs it aggregates from all the update sources and populates a list of KDUpdater::Update objects.
Member Function Documentation
UpdateFinder::UpdateFinder()
Constructs an update finder.
[virtual noexcept]
UpdateFinder::~UpdateFinder()
Destructor
void UpdateFinder::setLocalPackageHub(std::weak_ptr<KDUpdater::LocalPackageHub> hub)
Sets the information about installed local packages hub.
void UpdateFinder::setPackageSources(const QSet<QInstaller::PackageSource> &sources)
Sets the package sources information when searching for applicable packages.
QList<KDUpdater::Update *> UpdateFinder::updates() const
Returns a list of KDUpdater::Update objects.
© 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.