]>
git.saurik.com Git - apt.git/blob - apt-private/acqprogress.h
1 // -*- mode: cpp; mode: fold -*-
3 /* ######################################################################
5 Acquire Progress - Command line progress meter
7 ##################################################################### */
12 #include <apt-pkg/acquire.h>
13 #include <apt-pkg/macros.h>
18 class APT_PUBLIC AcqTextStatus
: public pkgAcquireStatus
21 unsigned int &ScreenWidth
;
22 size_t LastLineLength
;
30 virtual bool MediaChange(std::string Media
,std::string Drive
);
31 virtual void IMSHit(pkgAcquire::ItemDesc
&Itm
);
32 virtual void Fetch(pkgAcquire::ItemDesc
&Itm
);
33 virtual void Done(pkgAcquire::ItemDesc
&Itm
);
34 virtual void Fail(pkgAcquire::ItemDesc
&Itm
);
38 bool Pulse(pkgAcquire
*Owner
);
40 AcqTextStatus(std::ostream
&out
, unsigned int &ScreenWidth
,unsigned int const Quiet
);