edspsystem.h 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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. edspIndex *StatusFile;
  15. public:
  16. virtual bool Lock();
  17. virtual bool UnLock(bool NoErrors = false);
  18. virtual pkgPackageManager *CreatePM(pkgDepCache *Cache) const;
  19. virtual bool Initialize(Configuration &Cnf);
  20. virtual bool ArchiveSupported(const char *Type);
  21. virtual signed Score(Configuration const &Cnf);
  22. virtual bool AddStatusFiles(std::vector<pkgIndexFile *> &List);
  23. virtual bool FindIndex(pkgCache::PkgFileIterator File,
  24. pkgIndexFile *&Found) const;
  25. edspSystem();
  26. ~edspSystem();
  27. };
  28. extern edspSystem edspSys;
  29. #endif