24 std::string progress_str;
26 int last_reported_progress;
33 virtual void Start(
int =-1) {};
34 virtual void Stop() {};
39 virtual void StartDpkg() {};
41 virtual pid_t fork() {return ::fork(); };
43 virtual void Pulse() {};
44 virtual long GetPulseInterval() {
48 virtual bool StatusChanged(std::string PackageName,
49 unsigned int StepsDone,
50 unsigned int TotalSteps,
51 std::string HumanReadableAction);
52 virtual void Error(std::string ,
56 virtual void ConffilePrompt(std::string ,
69 void WriteToStatusFd(std::string msg);
75 void StartDpkg()
override;
78 bool StatusChanged(std::string PackageName,
79 unsigned int StepsDone,
80 unsigned int TotalSteps,
81 std::string HumanReadableAction)
override;
82 void Error(std::string PackageName,
83 unsigned int StepsDone,
84 unsigned int TotalSteps,
85 std::string ErrorMessage)
override;
86 void ConffilePrompt(std::string PackageName,
87 unsigned int StepsDone,
88 unsigned int TotalSteps,
89 std::string ConfMessage)
override;
99 void WriteToStatusFd(std::string msg);
105 void StartDpkg()
override;
106 void Stop()
override;
108 bool StatusChanged(std::string PackageName,
109 unsigned int StepsDone,
110 unsigned int TotalSteps,
111 std::string HumanReadableAction)
override;
112 void Error(std::string PackageName,
113 unsigned int StepsDone,
114 unsigned int TotalSteps,
115 std::string ErrorMessage)
override;
116 void ConffilePrompt(std::string PackageName,
117 unsigned int StepsDone,
118 unsigned int TotalSteps,
119 std::string ConfMessage)
override;
126 APT_HIDDEN
static void staticSIGWINCH(
int);
127 static std::vector<PackageManagerFancy*> instances;
128 static sighandler_t SIGWINCH_orig;
129 static volatile sig_atomic_t SIGWINCH_flag;
130 APT_HIDDEN
void CheckSIGWINCH();
131 APT_HIDDEN
bool DrawStatusLine();
134 void SetupTerminalScrollArea(
int nr_rows);
135 void HandleSIGWINCH(
int);
143 sighandler_t old_SIGWINCH;
149 void Pulse()
override;
150 void Start(
int child_pty = -1)
override;
151 void Stop()
override;
152 bool StatusChanged(std::string PackageName,
153 unsigned int StepsDone,
154 unsigned int TotalSteps,
155 std::string HumanReadableAction)
override;
159 static std::string GetTextProgressStr(
float percent,
int OutputSize);
Definition install-progress.h:163