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

qint32 QApt::Package::downloadSize (  )  const

Member function that returns the download size of the package archive in bytes. This is human-unreadable, so KDE applications may wish to run this through the KGlobal::locale()->formatByteSize() function to get a localized, human-readable number.

The installed size of the package as a qint32

Definition at line 518 of file package.cpp.

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

    return qint32(State.CandidateVerIter(*d->depCache)->Size);

Generated by  Doxygen 1.6.0   Back to index