]>
git.saurik.com Git - apt.git/blob - apt-pkg/deb/dpkgpm.h
1 // -*- mode: cpp; mode: fold -*-
3 // $Id: dpkgpm.h,v 1.3 1999/01/31 08:49:39 jgg Exp $
4 /* ######################################################################
6 DPKG Package Manager - Provide an interface to dpkg
8 ##################################################################### */
10 #ifndef PKGLIB_DPKGPM_H
11 #define PKGLIB_DPKGPM_H
14 #pragma interface "apt-pkg/dpkgpm.h"
17 #include <apt-pkg/packagemanager.h>
20 class pkgDPkgPM
: public pkgPackageManager
26 enum Ops
{Install
, Configure
, Remove
} Op
;
29 Item(Ops Op
,PkgIterator Pkg
,string File
= "") : Op(Op
),
30 File(File
), Pkg(Pkg
) {};
37 bool RunScripts(const char *Cnf
);
39 // The Actuall installation implementation
40 virtual bool Install(PkgIterator Pkg
,string File
);
41 virtual bool Configure(PkgIterator Pkg
);
42 virtual bool Remove(PkgIterator Pkg
);
47 pkgDPkgPM(pkgDepCache
&Cache
);