]> git.saurik.com Git - apt.git/blame_incremental - apt-pkg/deb/debsystem.h
extend FileFd test behond basic permission tests
[apt.git] / apt-pkg / deb / debsystem.h
... / ...
CommitLineData
1// -*- mode: cpp; mode: fold -*-
2// Description /*{{{*/
3// $Id: debsystem.h,v 1.4 2003/01/11 07:16:33 jgg Exp $
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#include <apt-pkg/pkgsystem.h>
14#include <apt-pkg/pkgcache.h>
15#include <apt-pkg/cacheiterators.h>
16
17#include <vector>
18class Configuration;
19class pkgIndexFile;
20class pkgPackageManager;
21class debSystemPrivate;
22class pkgDepCache;
23
24#ifndef APT_10_CLEANER_HEADERS
25class debStatusIndex;
26#endif
27
28class debSystem : public pkgSystem
29{
30 // private d-pointer
31 debSystemPrivate *d;
32 bool CheckUpdates();
33
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);
42 virtual bool AddStatusFiles(std::vector<pkgIndexFile *> &List);
43 virtual bool FindIndex(pkgCache::PkgFileIterator File,
44 pkgIndexFile *&Found) const;
45
46 debSystem();
47 virtual ~debSystem();
48};
49
50extern debSystem debSys;
51
52#endif