]> git.saurik.com Git - apt.git/blame - cmdline/acqprogress.h
refactor
[apt.git] / cmdline / acqprogress.h
CommitLineData
0919e3f9
AL
1// -*- mode: cpp; mode: fold -*-
2// Description /*{{{*/
3b77265b 3// $Id: acqprogress.h,v 1.5 2003/02/02 22:24:11 jgg Exp $
0919e3f9
AL
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
472ff00e
DK
15#include <string>
16
0919e3f9
AL
17class AcqTextStatus : public pkgAcquireStatus
18{
d7827aca 19 unsigned int &ScreenWidth;
3b77265b 20 char BlankLine[1024];
0919e3f9
AL
21 unsigned long ID;
22 unsigned long Quiet;
23
24 public:
25
472ff00e 26 virtual bool MediaChange(std::string Media,std::string Drive);
0919e3f9
AL
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
024d1123 34 bool Pulse(pkgAcquire *Owner);
0919e3f9 35
d7827aca 36 AcqTextStatus(unsigned int &ScreenWidth,unsigned int Quiet);
0919e3f9
AL
37};
38
39#endif