00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef PKGLIB_DEBSYSTEM_H
00011 #define PKGLIB_DEBSYSTEM_H
00012
00013 #include <apt-pkg/pkgsystem.h>
00014
00015 class debStatusIndex;
00016 class debSystem : public pkgSystem
00017 {
00018
00019 int LockFD;
00020 unsigned LockCount;
00021 bool CheckUpdates();
00022
00023 debStatusIndex *StatusFile;
00024
00025 public:
00026
00027 virtual bool Lock();
00028 virtual bool UnLock(bool NoErrors = false);
00029 virtual pkgPackageManager *CreatePM(pkgDepCache *Cache) const;
00030 virtual bool Initialize(Configuration &Cnf);
00031 virtual bool ArchiveSupported(const char *Type);
00032 virtual signed Score(Configuration const &Cnf);
00033 virtual bool AddStatusFiles(std::vector<pkgIndexFile *> &List);
00034 virtual bool FindIndex(pkgCache::PkgFileIterator File,
00035 pkgIndexFile *&Found) const;
00036
00037 debSystem();
00038 ~debSystem();
00039 };
00040
00041 extern debSystem debSys;
00042
00043 #endif