debsystem.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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_DEBSYSTEM_H
  9. #define PKGLIB_DEBSYSTEM_H
  10. #include <apt-pkg/pkgsystem.h>
  11. #include <apt-pkg/pkgcache.h>
  12. class debSystemPrivate;
  13. class debStatusIndex;
  14. class pkgDepCache;
  15. class debSystem : public pkgSystem
  16. {
  17. // private d-pointer
  18. debSystemPrivate *d;
  19. bool CheckUpdates();
  20. public:
  21. virtual bool Lock();
  22. virtual bool UnLock(bool NoErrors = false);
  23. virtual pkgPackageManager *CreatePM(pkgDepCache *Cache) const;
  24. virtual bool Initialize(Configuration &Cnf);
  25. virtual bool ArchiveSupported(const char *Type);
  26. virtual signed Score(Configuration const &Cnf);
  27. virtual bool AddStatusFiles(std::vector<pkgIndexFile *> &List);
  28. virtual bool FindIndex(pkgCache::PkgFileIterator File,
  29. pkgIndexFile *&Found) const;
  30. debSystem();
  31. virtual ~debSystem();
  32. };
  33. extern debSystem debSys;
  34. #endif