]> git.saurik.com Git - apt.git/blame - apt-pkg/deb/debsystem.h
* merged from apt--mvo
[apt.git] / apt-pkg / deb / debsystem.h
CommitLineData
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
af87ab54 15class debStatusIndex;
b2e465d6
AL
16class debSystem : public pkgSystem
17{
18 // For locking support
19 int LockFD;
20 unsigned LockCount;
21 bool CheckUpdates();
22
af87ab54
AL
23 debStatusIndex *StatusFile;
24
b2e465d6
AL
25 public:
26
27 virtual bool Lock();
28 virtual bool UnLock(bool NoErrors = false);
29 virtual pkgPackageManager *CreatePM(pkgDepCache *Cache) const;
30 virtual bool Initialize(Configuration &Cnf);
31 virtual bool ArchiveSupported(const char *Type);
32 virtual signed Score(Configuration const &Cnf);
c5d2d50f 33 virtual bool AddStatusFiles(std::vector<pkgIndexFile *> &List);
af87ab54
AL
34 virtual bool FindIndex(pkgCache::PkgFileIterator File,
35 pkgIndexFile *&Found) const;
b2e465d6
AL
36
37 debSystem();
af87ab54 38 ~debSystem();
b2e465d6
AL
39};
40
41extern debSystem debSys;
42
43#endif