]>
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> | |
16 | ||
63ff4208 | 17 | class APT_PUBLIC AcqTextStatus : public pkgAcquireStatus |
b9179170 MV |
18 | { |
19 | unsigned int &ScreenWidth; | |
20 | char BlankLine[1024]; | |
21 | unsigned long ID; | |
22 | unsigned long Quiet; | |
63ff4208 | 23 | |
b9179170 | 24 | public: |
63ff4208 | 25 | |
b9179170 MV |
26 | virtual bool MediaChange(std::string Media,std::string Drive); |
27 | virtual void IMSHit(pkgAcquire::ItemDesc &Itm); | |
28 | virtual void Fetch(pkgAcquire::ItemDesc &Itm); | |
29 | virtual void Done(pkgAcquire::ItemDesc &Itm); | |
30 | virtual void Fail(pkgAcquire::ItemDesc &Itm); | |
31 | virtual void Start(); | |
32 | virtual void Stop(); | |
63ff4208 | 33 | |
b9179170 MV |
34 | bool Pulse(pkgAcquire *Owner); |
35 | ||
5543218a | 36 | AcqTextStatus(unsigned int &ScreenWidth,unsigned int const Quiet); |
b9179170 MV |
37 | }; |
38 | ||
39 | #endif |