X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/b2e465d6d32d2dc884f58b94acb7e35f671a87fe..2f958de6e883ba7b0c9895750d4dde35047f1e82:/apt-pkg/deb/debsystem.h diff --git a/apt-pkg/deb/debsystem.h b/apt-pkg/deb/debsystem.h index 4fd267f77..855123516 100644 --- a/apt-pkg/deb/debsystem.h +++ b/apt-pkg/deb/debsystem.h @@ -1,6 +1,6 @@ // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ -// $Id: debsystem.h,v 1.2 2001/02/20 07:03:17 jgg Exp $ +// $Id: debsystem.h,v 1.4 2003/01/11 07:16:33 jgg Exp $ /* ###################################################################### System - Debian version of the System Class @@ -10,19 +10,19 @@ #ifndef PKGLIB_DEBSYSTEM_H #define PKGLIB_DEBSYSTEM_H -#ifdef __GNUG__ -#pragma interface "apt-pkg/debsystem.h" -#endif - #include - +#include + +class debSystemPrivate; +class debStatusIndex; +class pkgDepCache; + class debSystem : public pkgSystem { - // For locking support - int LockFD; - unsigned LockCount; + // private d-pointer + debSystemPrivate *d; bool CheckUpdates(); - + public: virtual bool Lock(); @@ -31,9 +31,12 @@ class debSystem : public pkgSystem virtual bool Initialize(Configuration &Cnf); virtual bool ArchiveSupported(const char *Type); virtual signed Score(Configuration const &Cnf); - virtual bool AddStatusFiles(vector &List); + virtual bool AddStatusFiles(std::vector &List); + virtual bool FindIndex(pkgCache::PkgFileIterator File, + pkgIndexFile *&Found) const; debSystem(); + virtual ~debSystem(); }; extern debSystem debSys;