]>
Commit | Line | Data |
---|---|---|
b2e465d6 AL |
1 | // -*- mode: cpp; mode: fold -*- |
2 | // Description /*{{{*/ | |
c5d2d50f | 3 | // $Id: debsystem.h,v 1.4 2003/01/11 07:16:33 jgg Exp $ |
b2e465d6 AL |
4 | /* ###################################################################### |
5 | ||
6 | System - Debian version of the System Class | |
7 | ||
8 | ##################################################################### */ | |
9 | /*}}}*/ | |
10 | #ifndef PKGLIB_DEBSYSTEM_H | |
11 | #define PKGLIB_DEBSYSTEM_H | |
12 | ||
b2e465d6 | 13 | #include <apt-pkg/pkgsystem.h> |
472ff00e | 14 | #include <apt-pkg/pkgcache.h> |
453b82a3 | 15 | #include <apt-pkg/cacheiterators.h> |
c5d2d50f | 16 | |
453b82a3 DK |
17 | #include <vector> |
18 | class Configuration; | |
19 | class pkgIndexFile; | |
20 | class pkgPackageManager; | |
b8f90d97 | 21 | class debSystemPrivate; |
472ff00e DK |
22 | class pkgDepCache; |
23 | ||
453b82a3 DK |
24 | #ifndef APT_10_CLEANER_HEADERS |
25 | class debStatusIndex; | |
26 | #endif | |
27 | ||
b2e465d6 AL |
28 | class debSystem : public pkgSystem |
29 | { | |
b8f90d97 MV |
30 | // private d-pointer |
31 | debSystemPrivate *d; | |
b2e465d6 | 32 | bool CheckUpdates(); |
b8f90d97 | 33 | |
b2e465d6 AL |
34 | public: |
35 | ||
36 | virtual bool Lock(); | |
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); | |
c5d2d50f | 42 | virtual bool AddStatusFiles(std::vector<pkgIndexFile *> &List); |
af87ab54 AL |
43 | virtual bool FindIndex(pkgCache::PkgFileIterator File, |
44 | pkgIndexFile *&Found) const; | |
b2e465d6 AL |
45 | |
46 | debSystem(); | |
43fb90dc | 47 | virtual ~debSystem(); |
b2e465d6 AL |
48 | }; |
49 | ||
50 | extern debSystem debSys; | |
51 | ||
52 | #endif |