]>
git.saurik.com Git - apt.git/blob - apt-pkg/iprogress.h
f097e09432b271d9daa79f35d72e2ab4f8184ff5
1 #ifndef PKGLIB_IPROGRESS_H
2 #define PKGLIB_IPROGRSS_H
5 #include <apt-pkg/packagemanager.h>
14 /** \brief dpointer placeholder */
18 virtual ~PackageManager() {};
20 virtual void Started() {};
21 virtual void Finished() {};
23 virtual void StatusChanged(std::string PackageName
,
24 unsigned int StepsDone
,
25 unsigned int TotalSteps
) {};
28 class PackageManagerFancy
: public PackageManager
31 int last_reported_progress
;
33 void SetupTerminalScrollArea(int nr_rows
);
36 PackageManagerFancy();
37 virtual void Started();
38 virtual void Finished();
39 virtual void StatusChanged(std::string PackageName
,
40 unsigned int StepsDone
,
41 unsigned int TotalSteps
);
44 class PackageManagerText
: public PackageManager
47 int last_reported_progress
;
50 PackageManagerText() : last_reported_progress(0) {};
51 virtual void StatusChanged(std::string PackageName
,
52 unsigned int StepsDone
,
53 unsigned int TotalSteps
);
58 }; // namespace Progress