debsystem.h 1.1 KB

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