]> git.saurik.com Git - apt.git/blob - apt-pkg/deb/debsystem.h
Alfredo's vendor stuff
[apt.git] / apt-pkg / deb / debsystem.h
1 // -*- mode: cpp; mode: fold -*-
2 // Description /*{{{*/
3 // $Id: debsystem.h,v 1.2 2001/02/20 07:03:17 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 #ifdef __GNUG__
14 #pragma interface "apt-pkg/debsystem.h"
15 #endif
16
17 #include <apt-pkg/pkgsystem.h>
18
19 class debSystem : public pkgSystem
20 {
21 // For locking support
22 int LockFD;
23 unsigned LockCount;
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(vector<pkgIndexFile *> &List);
35
36 debSystem();
37 };
38
39 extern debSystem debSys;
40
41 #endif