edspsystem.h 1.5 KB

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