]> git.saurik.com Git - apt-legacy.git/blob - cmdline/acqprogress.h
I am sick of that Package: error.
[apt-legacy.git] / cmdline / acqprogress.h
1 // -*- mode: cpp; mode: fold -*-
2 // Description /*{{{*/
3 // $Id: acqprogress.h,v 1.5 2003/02/02 22:24:11 jgg Exp $
4 /* ######################################################################
5
6 Acquire Progress - Command line progress meter
7
8 ##################################################################### */
9 /*}}}*/
10 #ifndef ACQPROGRESS_H
11 #define ACQPROGRESS_H
12
13 #include <apt-pkg/acquire.h>
14
15 class AcqTextStatus : public pkgAcquireStatus
16 {
17 unsigned int &ScreenWidth;
18 char BlankLine[1024];
19 unsigned long ID;
20 unsigned long Quiet;
21
22 public:
23
24 virtual bool MediaChange(string Media,string Drive);
25 virtual void IMSHit(pkgAcquire::ItemDesc &Itm);
26 virtual void Fetch(pkgAcquire::ItemDesc &Itm);
27 virtual void Done(pkgAcquire::ItemDesc &Itm);
28 virtual void Fail(pkgAcquire::ItemDesc &Itm);
29 virtual void Start();
30 virtual void Stop();
31
32 bool Pulse(pkgAcquire *Owner);
33
34 AcqTextStatus(unsigned int &ScreenWidth,unsigned int Quiet);
35 };
36
37 #endif