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

QStringList QApt::Package::providesList (  )  const

Member function that returns a list of the names of all the virtual packages that this package provides. I would like to see if I could figure out how to construct a Package from inside a Package and have this function return a Package::List

Returns:
A list of packages that this package provides as a QStringList

Definition at line 711 of file package.cpp.

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

    QStringList provides;

    for (pkgCache::PrvIterator Prv =
         State.CandidateVerIter(*d->depCache).ProvidesList(); Prv.end() != true;
         ++Prv) {
        provides.push_back(Prv.Name());
    }

   return provides;
}


Generated by  Doxygen 1.6.0   Back to index