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

QString QApt::Package::origin (  )  const

Member function that returns the origin of the package. (Usually Ubuntu or Debian)

The origin of the package as a QString

Definition at line 359 of file package.cpp.

Referenced by isSupported().

    pkgCache::VerIterator Ver = (*d->depCache)[*d->packageIter].CandidateVerIter(*d->depCache);

    if(!Ver.end()) {
         pkgCache::VerFileIterator VF = Ver.FileList();
         return VF.File().Origin();

   return QString();

Generated by  Doxygen 1.6.0   Back to index