apt @VERSION@
edspsystem.h
00001 // -*- mode: cpp; mode: fold -*-
00002 // Description                                                          /*{{{*/
00003 // $Id: debsystem.h,v 1.4 2003/01/11 07:16:33 jgg Exp $
00004 /* ######################################################################
00005 
00006    System - Debian version of the  System Class
00007 
00008    ##################################################################### */
00009                                                                         /*}}}*/
00010 #ifndef PKGLIB_EDSPSYSTEM_H
00011 #define PKGLIB_EDSPSYSTEM_H
00012 
00013 #include <apt-pkg/pkgsystem.h>
00014 
00015 class edspIndex;
00016 class edspSystem : public pkgSystem
00017 {
00019    void *d;
00020 
00021    edspIndex *StatusFile;
00022 
00023    public:
00024 
00025    virtual bool Lock();
00026    virtual bool UnLock(bool NoErrors = false);
00027    virtual pkgPackageManager *CreatePM(pkgDepCache *Cache) const;
00028    virtual bool Initialize(Configuration &Cnf);
00029    virtual bool ArchiveSupported(const char *Type);
00030    virtual signed Score(Configuration const &Cnf);
00031    virtual bool AddStatusFiles(std::vector<pkgIndexFile *> &List);
00032    virtual bool FindIndex(pkgCache::PkgFileIterator File,
00033                           pkgIndexFile *&Found) const;
00034 
00035    edspSystem();
00036    ~edspSystem();
00037 };
00038 
00039 extern edspSystem edspSys;
00040 
00041 #endif