edspsystem.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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. #include <apt-pkg/cacheiterators.h>
  12. #include <apt-pkg/pkgcache.h>
  13. #include <vector>
  14. class Configuration;
  15. class pkgDepCache;
  16. class pkgIndexFile;
  17. class pkgPackageManager;
  18. class edspIndex;
  19. class edspSystem : public pkgSystem
  20. {
  21. /** \brief dpointer placeholder (for later in case we need it) */
  22. void *d;
  23. edspIndex *StatusFile;
  24. public:
  25. virtual bool Lock() APT_CONST;
  26. virtual bool UnLock(bool NoErrors = false) APT_CONST;
  27. virtual pkgPackageManager *CreatePM(pkgDepCache *Cache) const APT_CONST;
  28. virtual bool Initialize(Configuration &Cnf);
  29. virtual bool ArchiveSupported(const char *Type) APT_CONST;
  30. virtual signed Score(Configuration const &Cnf);
  31. virtual bool AddStatusFiles(std::vector<pkgIndexFile *> &List);
  32. virtual bool FindIndex(pkgCache::PkgFileIterator File,
  33. pkgIndexFile *&Found) const;
  34. edspSystem();
  35. ~edspSystem();
  36. };
  37. extern edspSystem edspSys;
  38. #endif