]>
git.saurik.com Git - apt.git/blob - apt-pkg/deb/dpkgpm.h
1 // -*- mode: cpp; mode: fold -*-
3 // $Id: dpkgpm.h,v 1.8 2001/05/07 05:05:13 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>
23 class pkgDPkgPM
: public pkgPackageManager
29 enum Ops
{Install
, Configure
, Remove
, Purge
} Op
;
32 Item(Ops Op
,PkgIterator Pkg
,string File
= "") : Op(Op
),
33 File(File
), Pkg(Pkg
) {};
40 bool RunScripts(const char *Cnf
);
41 bool RunScriptsWithPkgs(const char *Cnf
);
42 bool SendV2Pkgs(FILE *F
);
44 // The Actuall installation implementation
45 virtual bool Install(PkgIterator Pkg
,string File
);
46 virtual bool Configure(PkgIterator Pkg
);
47 virtual bool Remove(PkgIterator Pkg
,bool Purge
= false);
53 pkgDPkgPM(pkgDepCache
*Cache
);