debsystem.h 1.3 KB

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