]> git.saurik.com Git - apt.git/blame - apt-private/acqprogress.h
__deprecated is already defined by sys/cdefs.h :/.
[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
3b302846
DK
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;
b9179170 40
dfad5bee 41 AcqTextStatus(std::ostream &out, unsigned int &ScreenWidth,unsigned int const Quiet);
b9179170
MV
42};
43
44#endif