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

QStringList QApt::Package::requiredByList (  )  const

Member function that returns a list of the names of all the packages that depend on this package. (Reverse dependencies) 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 depend on this package as a QStringList

Definition at line 700 of file package.cpp.

{
    QStringList reverseDependsList;

    for(pkgCache::DepIterator it = d->packageIter->RevDependsList(); it.end() != true; ++it) {
        reverseDependsList << QString::fromStdString(it.ParentPkg().Name());
    }

    return reverseDependsList;
}


Generated by  Doxygen 1.6.0   Back to index