]>
git.saurik.com Git - apt.git/blob - apt-pkg/iprogress.h
14fc89bffa1878e952408d07d016861ebbff1b91
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
;
34 PackageManagerFancy();
35 virtual void Started();
36 virtual void Finished();
37 virtual void StatusChanged(std::string PackageName
,
38 unsigned int StepsDone
,
39 unsigned int TotalSteps
);
42 class PackageManagerText
: public PackageManager
45 int last_reported_progress
;
48 PackageManagerText() : last_reported_progress(0) {};
49 virtual void StatusChanged(std::string PackageName
,
50 unsigned int StepsDone
,
51 unsigned int TotalSteps
);
56 }; // namespace Progress