]>
git.saurik.com Git - apt.git/blob - apt-pkg/deb/debsystem.h
1 // -*- mode: cpp; mode: fold -*-
3 // $Id: debsystem.h,v 1.4 2003/01/11 07:16:33 jgg Exp $
4 /* ######################################################################
6 System - Debian version of the System Class
8 ##################################################################### */
10 #ifndef PKGLIB_DEBSYSTEM_H
11 #define PKGLIB_DEBSYSTEM_H
13 #include <apt-pkg/pkgsystem.h>
14 #include <apt-pkg/pkgcache.h>
15 #include <apt-pkg/cacheiterators.h>
20 class pkgPackageManager
;
21 class debSystemPrivate
;
24 #ifndef APT_10_CLEANER_HEADERS
28 class debSystem
: public pkgSystem
37 virtual bool UnLock(bool NoErrors
= false);
38 virtual pkgPackageManager
*CreatePM(pkgDepCache
*Cache
) const;
39 virtual bool Initialize(Configuration
&Cnf
);
40 virtual bool ArchiveSupported(const char *Type
);
41 virtual signed Score(Configuration
const &Cnf
);
42 virtual bool AddStatusFiles(std::vector
<pkgIndexFile
*> &List
);
43 virtual bool FindIndex(pkgCache::PkgFileIterator File
,
44 pkgIndexFile
*&Found
) const;
50 extern debSystem debSys
;