10 #ifndef PKGLIB_DPKGPM_H
11 #define PKGLIB_DPKGPM_H
13 #include <apt-pkg/packagemanager.h>
18 #ifndef APT_8_CLEANER_HEADERS
43 void handleDisappearAction(std::string
const &pkgname);
58 std::map<std::string,std::vector<struct DpkgState> > PackageOps;
62 std::map<std::string,unsigned int> PackageOpsDone;
65 unsigned int PackagesDone;
66 unsigned int PackagesTotal;
70 enum Ops {Install, Configure, Remove, Purge, ConfigurePending, TriggersPending} Op;
74 File(File), Pkg(Pkg) {};
78 std::vector<Item> List;
81 bool RunScriptsWithPkgs(
const char *Cnf);
82 bool SendV2Pkgs(FILE *F);
83 void WriteHistoryTag(std::string
const &tag, std::string value);
86 void WriteApportReport(
const char *pkgpath,
const char *errormsg);
93 void DoStdin(
int master);
94 void DoTerminalPty(
int master);
95 void DoDpkgStatusFd(
int statusfd,
int OutStatusFd);
96 void ProcessDpkgStatusLine(
int OutStatusFd,
char *line);
99 virtual bool Install(
PkgIterator Pkg,std::string File);
101 virtual bool Remove(
PkgIterator Pkg,
bool Purge =
false);
102 virtual bool Go(
int StatusFd=-1);
103 virtual void Reset();
111 void SigINT(
int sig);