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

qint32 QApt::Package::currentInstalledSize (  )  const

Member function that returns the amount of hard drive space that the currently-installed version of this package takes up. 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 498 of file package.cpp.

    pkgCache::VerIterator ver = d->packageIter->CurrentVer();

    if (!ver.end()) {
        return qint32(ver->InstalledSize);
    } else {
        return qint32(-1);

Generated by  Doxygen 1.6.0   Back to index