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