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