]> git.saurik.com Git - apt.git/blob - apt-private/acqprogress.h
Merge branch 'debian/sid' into feature/more-fancy-progress
[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 #include <apt-pkg/macros.h>
14
15 #include <string>
16
17 class APT_PUBLIC AcqTextStatus : public pkgAcquireStatus
18 {
19 unsigned int &ScreenWidth;
20 char BlankLine[1024];
21 unsigned long ID;
22 unsigned long Quiet;
23
24 public:
25
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();
33
34 bool Pulse(pkgAcquire *Owner);
35
36 AcqTextStatus(unsigned int &ScreenWidth,unsigned int const Quiet);
37 };
38
39 #endif