]>
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> |
c5d2d50f | 15 | |
b8f90d97 | 16 | class debSystemPrivate; |
af87ab54 | 17 | class debStatusIndex; |
472ff00e DK |
18 | class pkgDepCache; |
19 | ||
b2e465d6 AL |
20 | class debSystem : public pkgSystem |
21 | { | |
b8f90d97 MV |
22 | // private d-pointer |
23 | debSystemPrivate *d; | |
b2e465d6 | 24 | bool CheckUpdates(); |
b8f90d97 | 25 | |
b2e465d6 AL |
26 | public: |
27 | ||
28 | virtual bool Lock(); | |
29 | virtual bool UnLock(bool NoErrors = false); | |
30 | virtual pkgPackageManager *CreatePM(pkgDepCache *Cache) const; | |
31 | virtual bool Initialize(Configuration &Cnf); | |
32 | virtual bool ArchiveSupported(const char *Type); | |
33 | virtual signed Score(Configuration const &Cnf); | |
c5d2d50f | 34 | virtual bool AddStatusFiles(std::vector<pkgIndexFile *> &List); |
af87ab54 AL |
35 | virtual bool FindIndex(pkgCache::PkgFileIterator File, |
36 | pkgIndexFile *&Found) const; | |
b2e465d6 AL |
37 | |
38 | debSystem(); | |
43fb90dc | 39 | virtual ~debSystem(); |
b2e465d6 AL |
40 | }; |
41 | ||
42 | extern debSystem debSys; | |
43 | ||
44 | #endif |