]>
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
;
26 APT_HIDDEN
void clearLastLine();
27 APT_HIDDEN
void AssignItemID(pkgAcquire::ItemDesc
&Itm
);
31 virtual bool MediaChange(std::string Media
,std::string Drive
) APT_OVERRIDE
;
32 virtual void IMSHit(pkgAcquire::ItemDesc
&Itm
) APT_OVERRIDE
;
33 virtual void Fetch(pkgAcquire::ItemDesc
&Itm
) APT_OVERRIDE
;
34 virtual void Done(pkgAcquire::ItemDesc
&Itm
) APT_OVERRIDE
;
35 virtual void Fail(pkgAcquire::ItemDesc
&Itm
) APT_OVERRIDE
;
36 virtual void Start() APT_OVERRIDE
;
37 virtual void Stop() APT_OVERRIDE
;
39 bool Pulse(pkgAcquire
*Owner
) APT_OVERRIDE
;
41 AcqTextStatus(std::ostream
&out
, unsigned int &ScreenWidth
,unsigned int const Quiet
);