X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/8171c75b9939a13aa22a3f45d436a6305af561ff..fcffe89d8344e699267210badac53ff24dd41148:/apt-pkg/deb/debsystem.h?ds=sidebyside diff --git a/apt-pkg/deb/debsystem.h b/apt-pkg/deb/debsystem.h index 5f9995e5d..aed77520e 100644 --- a/apt-pkg/deb/debsystem.h +++ b/apt-pkg/deb/debsystem.h @@ -11,31 +11,40 @@ #define PKGLIB_DEBSYSTEM_H #include +#include +#include +#include +class Configuration; +class pkgIndexFile; +class pkgPackageManager; +class debSystemPrivate; +class pkgDepCache; + +#ifndef APT_10_CLEANER_HEADERS class debStatusIndex; +#endif + class debSystem : public pkgSystem { - // For locking support - int LockFD; - unsigned LockCount; - bool CheckUpdates(); - - debStatusIndex *StatusFile; - + // private d-pointer + debSystemPrivate * const d; + APT_HIDDEN bool CheckUpdates(); + public: - virtual bool Lock(); - virtual bool UnLock(bool NoErrors = false); - virtual pkgPackageManager *CreatePM(pkgDepCache *Cache) const; - virtual bool Initialize(Configuration &Cnf); - virtual bool ArchiveSupported(const char *Type); - virtual signed Score(Configuration const &Cnf); - virtual bool AddStatusFiles(std::vector &List); + virtual bool Lock() APT_OVERRIDE; + virtual bool UnLock(bool NoErrors = false) APT_OVERRIDE; + virtual pkgPackageManager *CreatePM(pkgDepCache *Cache) const APT_OVERRIDE; + virtual bool Initialize(Configuration &Cnf) APT_OVERRIDE; + virtual bool ArchiveSupported(const char *Type) APT_OVERRIDE; + virtual signed Score(Configuration const &Cnf) APT_OVERRIDE; + virtual bool AddStatusFiles(std::vector &List) APT_OVERRIDE; virtual bool FindIndex(pkgCache::PkgFileIterator File, - pkgIndexFile *&Found) const; + pkgIndexFile *&Found) const APT_OVERRIDE; debSystem(); - ~debSystem(); + virtual ~debSystem(); }; extern debSystem debSys;