]> git.saurik.com Git - apt.git/blob - apt-private/acqprogress.h
Merge pull request #3 from cbaines/debian/sid
[apt.git] / apt-private / acqprogress.h
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>
13
14 #include <string>
15
16 class AcqTextStatus : public pkgAcquireStatus
17 {
18 unsigned int &ScreenWidth;
19 char BlankLine[1024];
20 unsigned long ID;
21 unsigned long Quiet;
22
23 public:
24
25 virtual bool MediaChange(std::string Media,std::string Drive);
26 virtual void IMSHit(pkgAcquire::ItemDesc &Itm);
27 virtual void Fetch(pkgAcquire::ItemDesc &Itm);
28 virtual void Done(pkgAcquire::ItemDesc &Itm);
29 virtual void Fail(pkgAcquire::ItemDesc &Itm);
30 virtual void Start();
31 virtual void Stop();
32
33 bool Pulse(pkgAcquire *Owner);
34
35 AcqTextStatus(unsigned int &ScreenWidth,unsigned int Quiet);
36 };
37
38 #endif