debsystem.h 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. // -*- mode: cpp; mode: fold -*-
  2. // Description /*{{{*/
  3. // $Id: debsystem.h,v 1.2 2001/02/20 07:03:17 jgg Exp $
  4. /* ######################################################################
  5. System - Debian version of the System Class
  6. ##################################################################### */
  7. /*}}}*/
  8. #ifndef PKGLIB_DEBSYSTEM_H
  9. #define PKGLIB_DEBSYSTEM_H
  10. #ifdef __GNUG__
  11. #pragma interface "apt-pkg/debsystem.h"
  12. #endif
  13. #include <apt-pkg/pkgsystem.h>
  14. class debSystem : public pkgSystem
  15. {
  16. // For locking support
  17. int LockFD;
  18. unsigned LockCount;
  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(vector<pkgIndexFile *> &List);
  28. debSystem();
  29. };
  30. extern debSystem debSys;
  31. #endif