Update Class

(KDUpdater::Update)

Represents a single update More...

Header: #include <Update>

Public Functions

QVariant data(const QString &name, const QVariant &defaultValue = QVariant()) const
int priority() const
QUrl sourceInfoUrl() const

Detailed Description

Represents a single update

The KDUpdater::Update class contains information about an update. It is created by KDUpdater::UpdateFinder corresponding to the update.

The constructor of the KDUpdater::Update class is made protected, because it can be instantiated only by KDUpdater::UpdateFinder (which is a friend class). The destructor however is public.

Member Function Documentation

QVariant Update::data(const QString &name, const QVariant &defaultValue = QVariant()) const

Returns the data specified by name, or an invalid defaultValue if the data does not exist.

int Update::priority() const

Returns the priority of the update.

QUrl Update::sourceInfoUrl() const

Returns the URL of the update source. An update source is a repository that contains an update for the application.

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