]>
Commit | Line | Data |
---|---|---|
6d38011b DK |
1 | // -*- mode: cpp; mode: fold -*- |
2 | // Description /*{{{*/ | |
3 | // $Id: debsystem.h,v 1.4 2003/01/11 07:16:33 jgg Exp $ | |
4 | /* ###################################################################### | |
5 | ||
6 | System - Debian version of the System Class | |
7 | ||
8 | ##################################################################### */ | |
9 | /*}}}*/ | |
10 | #ifndef PKGLIB_EDSPSYSTEM_H | |
11 | #define PKGLIB_EDSPSYSTEM_H | |
12 | ||
13 | #include <apt-pkg/pkgsystem.h> | |
453b82a3 DK |
14 | #include <apt-pkg/cacheiterators.h> |
15 | #include <apt-pkg/pkgcache.h> | |
6d38011b | 16 | |
453b82a3 DK |
17 | #include <vector> |
18 | ||
3b302846 DK |
19 | #include <apt-pkg/macros.h> |
20 | ||
453b82a3 DK |
21 | class Configuration; |
22 | class pkgDepCache; | |
23 | class pkgIndexFile; | |
24 | class pkgPackageManager; | |
6d38011b | 25 | class edspIndex; |
453b82a3 | 26 | |
188a6fcf | 27 | class edspSystemPrivate; |
dce45dbe | 28 | class APT_HIDDEN edspSystem : public pkgSystem |
6d38011b | 29 | { |
627e99b0 | 30 | /** \brief dpointer placeholder (for later in case we need it) */ |
188a6fcf | 31 | edspSystemPrivate * const d; |
627e99b0 | 32 | |
6d38011b DK |
33 | edspIndex *StatusFile; |
34 | ||
35 | public: | |
36 | ||
3b302846 DK |
37 | virtual bool Lock() APT_OVERRIDE APT_CONST; |
38 | virtual bool UnLock(bool NoErrors = false) APT_OVERRIDE APT_CONST; | |
39 | virtual pkgPackageManager *CreatePM(pkgDepCache *Cache) const APT_OVERRIDE APT_CONST; | |
40 | virtual bool Initialize(Configuration &Cnf) APT_OVERRIDE; | |
41 | virtual bool ArchiveSupported(const char *Type) APT_OVERRIDE APT_CONST; | |
42 | virtual signed Score(Configuration const &Cnf) APT_OVERRIDE; | |
43 | virtual bool AddStatusFiles(std::vector<pkgIndexFile *> &List) APT_OVERRIDE; | |
6d38011b | 44 | virtual bool FindIndex(pkgCache::PkgFileIterator File, |
3b302846 | 45 | pkgIndexFile *&Found) const APT_OVERRIDE; |
6d38011b DK |
46 | |
47 | edspSystem(); | |
c8a4ce6c | 48 | virtual ~edspSystem(); |
6d38011b DK |
49 | }; |
50 | ||
6d38011b | 51 | #endif |