]>
git.saurik.com Git - apt.git/blob - apt-pkg/iprogress.h
5f1655ab970c524c1b2b4e129c1a9cdfad08e4ac
1 #ifndef PKGLIB_IPROGRESS_H
2 #define PKGLIB_IPROGRSS_H
5 #include <apt-pkg/packagemanager.h>
14 /** \brief dpointer placeholder */
18 std::string progress_str
;
20 int last_reported_progress
;
23 PackageManager() : percentage(0.0), last_reported_progress(0) {};
24 virtual ~PackageManager() {};
26 virtual void Started() {};
27 virtual void Finished() {};
29 virtual bool StatusChanged(std::string PackageName
,
30 unsigned int StepsDone
,
31 unsigned int TotalSteps
);
34 class PackageManagerFancy
: public PackageManager
38 void SetupTerminalScrollArea(int nr_rows
);
41 PackageManagerFancy();
42 virtual void Started();
43 virtual void Finished();
44 virtual bool StatusChanged(std::string PackageName
,
45 unsigned int StepsDone
,
46 unsigned int TotalSteps
);
49 class PackageManagerText
: public PackageManager
52 virtual bool StatusChanged(std::string PackageName
,
53 unsigned int StepsDone
,
54 unsigned int TotalSteps
);
59 }; // namespace Progress