summaryrefslogtreecommitdiff
path: root/apt-private/private-progress.h
diff options
context:
space:
mode:
authorMichael Vogt <mvo@debian.org>2013-10-21 22:11:40 +0200
committerMichael Vogt <mvo@debian.org>2013-10-21 22:11:40 +0200
commitc7ea1ebaef0edebfe41353f93a81ee2ada5870a8 (patch)
treeaf40749886aa5bb4323fd52cee04f0c780a87b91 /apt-private/private-progress.h
parent3b1b0f2900347ef2836c7ee4cc3ee20c6cdcb621 (diff)
add APT::Status-deb822-Fd
Diffstat (limited to 'apt-private/private-progress.h')
-rw-r--r--apt-private/private-progress.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/apt-private/private-progress.h b/apt-private/private-progress.h
index 42fa89be4..9c31eac92 100644
--- a/apt-private/private-progress.h
+++ b/apt-private/private-progress.h
@@ -77,6 +77,34 @@ namespace Progress {
};
+ class PackageManagerProgressDeb822Fd : public PackageManager
+ {
+ protected:
+ int OutStatusFd;
+ int StepsDone;
+ int StepsTotal;
+ void WriteToStatusFd(std::string msg);
+
+ public:
+ PackageManagerProgressDeb822Fd(int progress_fd);
+
+ virtual void Start();
+ virtual void Stop();
+
+ virtual bool StatusChanged(std::string PackageName,
+ unsigned int StepsDone,
+ unsigned int TotalSteps,
+ std::string HumanReadableAction);
+ virtual void Error(std::string PackageName,
+ unsigned int StepsDone,
+ unsigned int TotalSteps,
+ std::string ErrorMessage);
+ virtual void ConffilePrompt(std::string PackageName,
+ unsigned int StepsDone,
+ unsigned int TotalSteps,
+ std::string ConfMessage);
+ };
+
class PackageManagerFancy : public PackageManager
{
protected: