]> git.saurik.com Git - apt.git/blob - apt-pkg/deb/debsystem.h
allow ':' in GetListOfFilesInDir
[apt.git] / apt-pkg / deb / debsystem.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_DEBSYSTEM_H
11 #define PKGLIB_DEBSYSTEM_H
12
13 #include <apt-pkg/pkgsystem.h>
14 #include <apt-pkg/pkgcache.h>
15
16 class debSystemPrivate;
17 class debStatusIndex;
18 class pkgDepCache;
19
20 class debSystem : public pkgSystem
21 {
22 // private d-pointer
23 debSystemPrivate *d;
24 bool CheckUpdates();
25
26 public:
27
28 virtual bool Lock();
29 virtual bool UnLock(bool NoErrors = false);
30 virtual pkgPackageManager *CreatePM(pkgDepCache *Cache) const;
31 virtual bool Initialize(Configuration &Cnf);
32 virtual bool ArchiveSupported(const char *Type);
33 virtual signed Score(Configuration const &Cnf);
34 virtual bool AddStatusFiles(std::vector<pkgIndexFile *> &List);
35 virtual bool FindIndex(pkgCache::PkgFileIterator File,
36 pkgIndexFile *&Found) const;
37
38 debSystem();
39 virtual ~debSystem();
40 };
41
42 extern debSystem debSys;
43
44 #endif