]> git.saurik.com Git - apt.git/blob - apt-private/acqprogress.h
drop empty line from fetch error
[apt.git] / apt-private / acqprogress.h
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>
13 #include <apt-pkg/macros.h>
14
15 #include <string>
16 #include <iostream>
17
18 class APT_PUBLIC AcqTextStatus : public pkgAcquireStatus
19 {
20 std::ostream &out;
21 unsigned int &ScreenWidth;
22 size_t LastLineLength;
23 unsigned long ID;
24 unsigned long Quiet;
25
26 APT_HIDDEN void clearLastLine();
27 APT_HIDDEN void AssignItemID(pkgAcquire::ItemDesc &Itm);
28
29 public:
30
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;
38
39 bool Pulse(pkgAcquire *Owner) APT_OVERRIDE;
40
41 AcqTextStatus(std::ostream &out, unsigned int &ScreenWidth,unsigned int const Quiet);
42 };
43
44 #endif