10 #ifndef PKGLIB_DPKGPM_H
11 #define PKGLIB_DPKGPM_H
13 #include <apt-pkg/packagemanager.h>
17 #include <apt-pkg/macros.h>
19 #ifndef APT_8_CLEANER_HEADERS
44 void handleDisappearAction(std::string
const &pkgname);
59 std::map<std::string,std::vector<struct DpkgState> > PackageOps;
63 std::map<std::string,unsigned int> PackageOpsDone;
66 unsigned int PackagesDone;
67 unsigned int PackagesTotal;
71 enum Ops {Install, Configure, Remove, Purge, ConfigurePending, TriggersPending} Op;
75 File(File), Pkg(Pkg) {};
79 std::vector<Item> List;
82 bool RunScriptsWithPkgs(
const char *Cnf);
83 __deprecated
bool SendV2Pkgs(FILE *F);
84 bool SendPkgsInfo(FILE *
const F,
unsigned int const &
Version);
85 void WriteHistoryTag(std::string
const &tag, std::string value);
87 void SendTerminalProgress(
float percentage);
90 void WriteApportReport(
const char *pkgpath,
const char *errormsg);
97 void DoStdin(
int master);
98 void DoTerminalPty(
int master);
99 void DoDpkgStatusFd(
int statusfd,
int OutStatusFd);
100 void ProcessDpkgStatusLine(
int OutStatusFd,
char *line);
103 virtual bool Install(
PkgIterator Pkg,std::string File);
105 virtual bool Remove(
PkgIterator Pkg,
bool Purge =
false);
106 virtual bool Go(
int StatusFd=-1);
107 virtual void Reset();
115 void SigINT(
int sig);