Logo Search packages:      
Sourcecode: qapt version File versions  Download package

PackageList QApt::Backend::upgradeablePackages (  )  const

Queries the backend for a list of all upgradeable packages

Returns:
A PackageList of all upgradeable packages in the Apt database

Definition at line 302 of file backend.cpp.

References package(), QApt::Package::state(), and QApt::Package::Upgradeable.

{
    Q_D(const Backend);

    PackageList upgradeablePackages;

    foreach (Package *package, d->packages) {
        if (package->state() & Package::Upgradeable) {
            upgradeablePackages << package;
        }
    }

    return upgradeablePackages;
}


Generated by  Doxygen 1.6.0   Back to index