10 #ifndef PKGLIB_DPKGPM_H
11 #define PKGLIB_DPKGPM_H
13 #include <apt-pkg/packagemanager.h>
17 #include <apt-pkg/macros.h>
18 #include <apt-pkg/init.h>
20 #ifndef APT_8_CLEANER_HEADERS
46 void handleDisappearAction(std::string
const &pkgname);
61 std::map<std::string,std::vector<struct DpkgState> > PackageOps;
65 std::map<std::string,unsigned int> PackageOpsDone;
68 unsigned int PackagesDone;
69 unsigned int PackagesTotal;
73 enum Ops {Install, Configure, Remove, Purge, ConfigurePending, TriggersPending} Op;
77 File(File), Pkg(Pkg) {};
81 std::vector<Item> List;
84 bool RunScriptsWithPkgs(
const char *Cnf);
85 __deprecated
bool SendV2Pkgs(FILE *F);
86 bool SendPkgsInfo(FILE *
const F,
unsigned int const &
Version);
87 void WriteHistoryTag(std::string
const &tag, std::string value);
88 std::string ExpandShortPackageName(
pkgDepCache &Cache,
89 const std::string &short_pkgname);
92 void SendTerminalProgress(
float percentage);
95 void WriteApportReport(
const char *pkgpath,
const char *errormsg);
102 void BuildPackagesProgressMap();
103 void StartPtyMagic();
107 void DoStdin(
int master);
108 void DoTerminalPty(
int master);
109 void DoDpkgStatusFd(
int statusfd);
110 void ProcessDpkgStatusLine(
char *line);
111 #if (APT_PKG_MAJOR >= 4 && APT_PKG_MINOR < 13)
112 void DoDpkgStatusFd(
int statusfd,
int unused) {
113 DoDpkgStatusFd(statusfd);
115 void ProcessDpkgStatusLine(
int unused,
char *line) {
116 ProcessDpkgStatusLine(line);
122 virtual bool Install(PkgIterator Pkg,std::string File);
123 virtual bool Configure(PkgIterator Pkg);
124 virtual bool Remove(PkgIterator Pkg,
bool Purge =
false);
126 #if (APT_PKG_MAJOR >= 4 && APT_PKG_MINOR >= 13)
129 virtual bool Go(
int StatusFd=-1);
133 virtual void Reset();
141 void SigINT(
int sig);
Definition: cacheiterators.h:136
information for a single version of a package
Definition: pkgcache.h:501
Definition: packagemanager.h:47
Definition: install-progress.h:15
Definition: depcache.h:56