apt  1.5
debsystem.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_DEBSYSTEM_H
00011 #define PKGLIB_DEBSYSTEM_H
00012 
00013 #include <apt-pkg/pkgsystem.h>
00014 #include <apt-pkg/pkgcache.h>
00015 
00016 class debSystemPrivate;
00017 class debStatusIndex;
00018 class pkgDepCache;
00019 
00020 class debSystem : public pkgSystem
00021 {
00022    // private d-pointer
00023    debSystemPrivate *d;
00024    bool CheckUpdates();
00025 
00026    public:
00027 
00028    virtual bool Lock();
00029    virtual bool UnLock(bool NoErrors = false);   
00030    virtual pkgPackageManager *CreatePM(pkgDepCache *Cache) const;
00031    virtual bool Initialize(Configuration &Cnf);
00032    virtual bool ArchiveSupported(const char *Type);
00033    virtual signed Score(Configuration const &Cnf);
00034    virtual bool AddStatusFiles(std::vector<pkgIndexFile *> &List);
00035    virtual bool FindIndex(pkgCache::PkgFileIterator File,
00036                           pkgIndexFile *&Found) const;
00037 
00038    debSystem();
00039    virtual ~debSystem();
00040 };
00041 
00042 extern debSystem debSys;
00043 
00044 #endif