From c7ea1ebaef0edebfe41353f93a81ee2ada5870a8 Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Mon, 21 Oct 2013 22:11:40 +0200 Subject: add APT::Status-deb822-Fd --- apt-private/private-progress.h | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'apt-private/private-progress.h') 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: -- cgit v1.2.3-70-g09d2