]> git.saurik.com Git - apt.git/blame - apt-private/acqprogress.h
show item ID in Hit, Ign and Err lines as well
[apt.git] / apt-private / acqprogress.h
CommitLineData
b9179170
MV
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>
63ff4208 13#include <apt-pkg/macros.h>
b9179170
MV
14
15#include <string>
dfad5bee 16#include <iostream>
b9179170 17
63ff4208 18class APT_PUBLIC AcqTextStatus : public pkgAcquireStatus
b9179170 19{
dfad5bee 20 std::ostream &out;
b9179170 21 unsigned int &ScreenWidth;
b8eba208 22 size_t LastLineLength;
b9179170
MV
23 unsigned long ID;
24 unsigned long Quiet;
63ff4208 25
1eb1836f
DK
26 APT_HIDDEN void clearLastLine();
27 APT_HIDDEN void AssignItemID(pkgAcquire::ItemDesc &Itm);
b8eba208 28
b9179170 29 public:
63ff4208 30
b9179170
MV
31 virtual bool MediaChange(std::string Media,std::string Drive);
32 virtual void IMSHit(pkgAcquire::ItemDesc &Itm);
33 virtual void Fetch(pkgAcquire::ItemDesc &Itm);
34 virtual void Done(pkgAcquire::ItemDesc &Itm);
35 virtual void Fail(pkgAcquire::ItemDesc &Itm);
36 virtual void Start();
37 virtual void Stop();
63ff4208 38
b9179170
MV
39 bool Pulse(pkgAcquire *Owner);
40
dfad5bee 41 AcqTextStatus(std::ostream &out, unsigned int &ScreenWidth,unsigned int const Quiet);
b9179170
MV
42};
43
44#endif