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_EDSPSYSTEM_H
11 #define PKGLIB_EDSPSYSTEM_H
13 #include <apt-pkg/pkgsystem.h>
14 #include <apt-pkg/cacheiterators.h>
15 #include <apt-pkg/pkgcache.h>
20 #include <apt-pkg/macros.h>
25 class pkgPackageManager
;
27 class APT_HIDDEN edspLikeSystem
: public pkgSystem
30 std::unique_ptr
<pkgIndexFile
> StatusFile
;
33 virtual bool Lock() APT_OVERRIDE APT_CONST
;
34 virtual bool UnLock(bool NoErrors
= false) APT_OVERRIDE APT_CONST
;
35 virtual pkgPackageManager
*CreatePM(pkgDepCache
*Cache
) const APT_OVERRIDE APT_CONST
;
36 virtual bool Initialize(Configuration
&Cnf
) APT_OVERRIDE
;
37 virtual bool ArchiveSupported(const char *Type
) APT_OVERRIDE APT_CONST
;
38 virtual signed Score(Configuration
const &Cnf
) APT_OVERRIDE
;
39 virtual bool FindIndex(pkgCache::PkgFileIterator File
,
40 pkgIndexFile
*&Found
) const APT_OVERRIDE
;
42 edspLikeSystem(char const * const Label
);
43 virtual ~edspLikeSystem();
46 class APT_HIDDEN edspSystem
: public edspLikeSystem
49 std::string tempStatesFile
;
50 std::string tempPrefsFile
;
53 virtual bool Initialize(Configuration
&Cnf
) APT_OVERRIDE
;
54 virtual bool AddStatusFiles(std::vector
<pkgIndexFile
*> &List
) APT_OVERRIDE
;
57 virtual ~edspSystem();