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

qint32 QApt::Package::availableInstalledSize (  )  const

Member function that returns the amount of hard drive space that this package will take up once installed. 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.

Returns:
The installed size of the package as a qint32

Definition at line 509 of file package.cpp.

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


Generated by  Doxygen 1.6.0   Back to index