]> git.saurik.com Git - apt.git/blob - cmdline/acqprogress.h
ensure "--db" also works with the new srcpkgdb
[apt.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 #include <string>
16
17 class 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 Quiet);
37 };
38
39 #endif