]> git.saurik.com Git - apt.git/blame_incremental - apt-pkg/edsp/edspsystem.h
just-in-time removal of broken essential packages
[apt.git] / apt-pkg / edsp / edspsystem.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_EDSPSYSTEM_H
11#define PKGLIB_EDSPSYSTEM_H
12
13#include <apt-pkg/pkgsystem.h>
14#include <apt-pkg/cacheiterators.h>
15#include <apt-pkg/pkgcache.h>
16
17#include <vector>
18
19#include <apt-pkg/macros.h>
20
21class Configuration;
22class pkgDepCache;
23class pkgIndexFile;
24class pkgPackageManager;
25class edspIndex;
26
27class APT_HIDDEN edspSystem : public pkgSystem
28{
29 /** \brief dpointer placeholder (for later in case we need it) */
30 void * const d;
31
32 edspIndex *StatusFile;
33
34 public:
35
36 virtual bool Lock() APT_OVERRIDE APT_CONST;
37 virtual bool UnLock(bool NoErrors = false) APT_OVERRIDE APT_CONST;
38 virtual pkgPackageManager *CreatePM(pkgDepCache *Cache) const APT_OVERRIDE APT_CONST;
39 virtual bool Initialize(Configuration &Cnf) APT_OVERRIDE;
40 virtual bool ArchiveSupported(const char *Type) APT_OVERRIDE APT_CONST;
41 virtual signed Score(Configuration const &Cnf) APT_OVERRIDE;
42 virtual bool AddStatusFiles(std::vector<pkgIndexFile *> &List) APT_OVERRIDE;
43 virtual bool FindIndex(pkgCache::PkgFileIterator File,
44 pkgIndexFile *&Found) const APT_OVERRIDE;
45
46 edspSystem();
47 virtual ~edspSystem();
48};
49
50#endif