debsystem.h 1.1 KB

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