]>
Commit | Line | Data |
---|---|---|
b2e465d6 AL |
1 | // -*- mode: cpp; mode: fold -*- |
2 | // Description /*{{{*/ | |
af87ab54 | 3 | // $Id: debsystem.h,v 1.3 2001/04/29 05:13:51 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 | ||
13 | #ifdef __GNUG__ | |
14 | #pragma interface "apt-pkg/debsystem.h" | |
15 | #endif | |
16 | ||
17 | #include <apt-pkg/pkgsystem.h> | |
18 | ||
af87ab54 | 19 | class debStatusIndex; |
b2e465d6 AL |
20 | class debSystem : public pkgSystem |
21 | { | |
22 | // For locking support | |
23 | int LockFD; | |
24 | unsigned LockCount; | |
25 | bool CheckUpdates(); | |
26 | ||
af87ab54 AL |
27 | debStatusIndex *StatusFile; |
28 | ||
b2e465d6 AL |
29 | public: |
30 | ||
31 | virtual bool Lock(); | |
32 | virtual bool UnLock(bool NoErrors = false); | |
33 | virtual pkgPackageManager *CreatePM(pkgDepCache *Cache) const; | |
34 | virtual bool Initialize(Configuration &Cnf); | |
35 | virtual bool ArchiveSupported(const char *Type); | |
36 | virtual signed Score(Configuration const &Cnf); | |
37 | virtual bool AddStatusFiles(vector<pkgIndexFile *> &List); | |
af87ab54 AL |
38 | virtual bool FindIndex(pkgCache::PkgFileIterator File, |
39 | pkgIndexFile *&Found) const; | |
b2e465d6 AL |
40 | |
41 | debSystem(); | |
af87ab54 | 42 | ~debSystem(); |
b2e465d6 AL |
43 | }; |
44 | ||
45 | extern debSystem debSys; | |
46 | ||
47 | #endif |