apt @VERSION@
|
Public Member Functions | |
CacheSetHelper (bool const &ShowError=true, GlobalError::MsgType ErrorType=GlobalError::ERROR) | |
virtual void | showTaskSelection (PackageSet const &pkgset, string const &pattern) |
virtual void | showRegExSelection (PackageSet const &pkgset, string const &pattern) |
virtual void | showSelectedVersion (pkgCache::PkgIterator const &Pkg, pkgCache::VerIterator const Ver, string const &ver, bool const &verIsRel) |
virtual pkgCache::PkgIterator | canNotFindPkgName (pkgCacheFile &Cache, std::string const &str) |
virtual PackageSet | canNotFindTask (pkgCacheFile &Cache, std::string pattern) |
virtual PackageSet | canNotFindRegEx (pkgCacheFile &Cache, std::string pattern) |
virtual PackageSet | canNotFindPackage (pkgCacheFile &Cache, std::string const &str) |
virtual VersionSet | canNotFindAllVer (pkgCacheFile &Cache, pkgCache::PkgIterator const &Pkg) |
virtual VersionSet | canNotFindInstCandVer (pkgCacheFile &Cache, pkgCache::PkgIterator const &Pkg) |
virtual VersionSet | canNotFindCandInstVer (pkgCacheFile &Cache, pkgCache::PkgIterator const &Pkg) |
virtual pkgCache::VerIterator | canNotFindNewestVer (pkgCacheFile &Cache, pkgCache::PkgIterator const &Pkg) |
virtual pkgCache::VerIterator | canNotFindCandidateVer (pkgCacheFile &Cache, pkgCache::PkgIterator const &Pkg) |
virtual pkgCache::VerIterator | canNotFindInstalledVer (pkgCacheFile &Cache, pkgCache::PkgIterator const &Pkg) |
bool | showErrors () const |
bool | showErrors (bool const &newValue) |
GlobalError::MsgType | errorType () const |
GlobalError::MsgType | errorType (GlobalError::MsgType const &newValue) |
Protected Attributes | |
bool | ShowError |
GlobalError::MsgType | ErrorType |
Simple base class with a lot of virtual methods which can be overridden to alter the behavior or the output of the CacheSets.
This helper is passed around by the static methods in the CacheSets and used every time they hit an error condition or something could be printed out.