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

QString QApt::Package::availableVersion (  )  const

Member function that returns the newest available version of the package if it is not installed. If this package is installed, this function will return a null QString

Returns:
The available version of the package as a QString

Definition at line 308 of file package.cpp.

Referenced by changelogUrl(), and QApt::Backend::commitChanges().

{
    pkgDepCache::StateCache & State = (*d->depCache)[*d->packageIter];
    if (State.CandidateVer == 0) {
        return QString();
    }

    QString availableVersion = QString::fromStdString(State.CandidateVerIter(*d->depCache).VerStr());
    return availableVersion;
}


Generated by  Doxygen 1.6.0   Back to index