]>
Commit | Line | Data |
---|---|---|
b9179170 MV |
1 | // -*- mode: cpp; mode: fold -*- |
2 | // Description /*{{{*/ | |
3 | /* ###################################################################### | |
4 | ||
5 | Acquire Progress - Command line progress meter | |
6 | ||
7 | ##################################################################### */ | |
8 | /*}}}*/ | |
9 | #ifndef ACQPROGRESS_H | |
10 | #define ACQPROGRESS_H | |
11 | ||
12 | #include <apt-pkg/acquire.h> | |
63ff4208 | 13 | #include <apt-pkg/macros.h> |
b9179170 MV |
14 | |
15 | #include <string> | |
dfad5bee | 16 | #include <iostream> |
b9179170 | 17 | |
63ff4208 | 18 | class APT_PUBLIC AcqTextStatus : public pkgAcquireStatus |
b9179170 | 19 | { |
dfad5bee | 20 | std::ostream &out; |
b9179170 | 21 | unsigned int &ScreenWidth; |
b8eba208 | 22 | size_t LastLineLength; |
b9179170 MV |
23 | unsigned long ID; |
24 | unsigned long Quiet; | |
63ff4208 | 25 | |
b8eba208 DK |
26 | void clearLastLine(); |
27 | ||
b9179170 | 28 | public: |
63ff4208 | 29 | |
b9179170 MV |
30 | virtual bool MediaChange(std::string Media,std::string Drive); |
31 | virtual void IMSHit(pkgAcquire::ItemDesc &Itm); | |
32 | virtual void Fetch(pkgAcquire::ItemDesc &Itm); | |
33 | virtual void Done(pkgAcquire::ItemDesc &Itm); | |
34 | virtual void Fail(pkgAcquire::ItemDesc &Itm); | |
35 | virtual void Start(); | |
36 | virtual void Stop(); | |
63ff4208 | 37 | |
b9179170 MV |
38 | bool Pulse(pkgAcquire *Owner); |
39 | ||
dfad5bee | 40 | AcqTextStatus(std::ostream &out, unsigned int &ScreenWidth,unsigned int const Quiet); |
b9179170 MV |
41 | }; |
42 | ||
43 | #endif |