edspsystem.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. // -*- mode: cpp; mode: fold -*-
  2. // Description /*{{{*/
  3. // $Id: debsystem.h,v 1.4 2003/01/11 07:16:33 jgg Exp $
  4. /* ######################################################################
  5. System - Debian version of the System Class
  6. ##################################################################### */
  7. /*}}}*/
  8. #ifndef PKGLIB_EDSPSYSTEM_H
  9. #define PKGLIB_EDSPSYSTEM_H
  10. #include <apt-pkg/pkgsystem.h>
  11. class edspIndex;
  12. class edspSystem : public pkgSystem
  13. {
  14. /** \brief dpointer placeholder (for later in case we need it) */
  15. void *d;
  16. edspIndex *StatusFile;
  17. public:
  18. virtual bool Lock();
  19. virtual bool UnLock(bool NoErrors = false);
  20. virtual pkgPackageManager *CreatePM(pkgDepCache *Cache) const;
  21. virtual bool Initialize(Configuration &Cnf);
  22. virtual bool ArchiveSupported(const char *Type);
  23. virtual signed Score(Configuration const &Cnf);
  24. virtual bool AddStatusFiles(std::vector<pkgIndexFile *> &List);
  25. virtual bool FindIndex(pkgCache::PkgFileIterator File,
  26. pkgIndexFile *&Found) const;
  27. edspSystem();
  28. ~edspSystem();
  29. };
  30. extern edspSystem edspSys;
  31. #endif