]> git.saurik.com Git - apt.git/blob - apt-pkg/edsp/edspsystem.h
65e36d714945dc709094b8ab8b8e8d98071577d8
[apt.git] / apt-pkg / edsp / edspsystem.h
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 class Configuration;
20 class pkgDepCache;
21 class pkgIndexFile;
22 class pkgPackageManager;
23 class edspIndex;
24
25 class edspSystem : public pkgSystem
26 {
27 /** \brief dpointer placeholder (for later in case we need it) */
28 void *d;
29
30 edspIndex *StatusFile;
31
32 public:
33
34 virtual bool Lock() APT_CONST;
35 virtual bool UnLock(bool NoErrors = false) APT_CONST;
36 virtual pkgPackageManager *CreatePM(pkgDepCache *Cache) const APT_CONST;
37 virtual bool Initialize(Configuration &Cnf);
38 virtual bool ArchiveSupported(const char *Type) APT_CONST;
39 virtual signed Score(Configuration const &Cnf);
40 virtual bool AddStatusFiles(std::vector<pkgIndexFile *> &List);
41 virtual bool FindIndex(pkgCache::PkgFileIterator File,
42 pkgIndexFile *&Found) const;
43
44 edspSystem();
45 ~edspSystem();
46 };
47
48 extern edspSystem edspSys;
49
50 #endif