apt  2.2.4
About: Apt (Advanced Package Tool) is a management system for software packages (Debian/Ubuntu). Release series 2.2.
  Fossies Dox: apt-2.2.4.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

acqprogress.h
Go to the documentation of this file.
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 <iostream>
16 #include <string>
17 
19 {
20  std::ostream &out;
21  unsigned int &ScreenWidth;
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 ReleaseInfoChanges(metaIndex const * const LastRelease, metaIndex const * const CurrentRelease, std::vector<ReleaseInfoChange> &&Changes) APT_OVERRIDE;
32  virtual bool MediaChange(std::string Media,std::string Drive) APT_OVERRIDE;
33  virtual void IMSHit(pkgAcquire::ItemDesc &Itm) APT_OVERRIDE;
34  virtual void Fetch(pkgAcquire::ItemDesc &Itm) APT_OVERRIDE;
35  virtual void Done(pkgAcquire::ItemDesc &Itm) APT_OVERRIDE;
36  virtual void Fail(pkgAcquire::ItemDesc &Itm) APT_OVERRIDE;
37  virtual void Start() APT_OVERRIDE;
38  virtual void Stop() APT_OVERRIDE;
39 
40  bool Pulse(pkgAcquire *Owner) APT_OVERRIDE;
41 
42  AcqTextStatus(std::ostream &out, unsigned int &ScreenWidth,unsigned int const Quiet);
43 };
44 
45 #endif
unsigned Quiet
unsigned int & ScreenWidth
Definition: acqprogress.h:21
unsigned long Quiet
Definition: acqprogress.h:24
unsigned long ID
Definition: acqprogress.h:23
size_t LastLineLength
Definition: acqprogress.h:22
std::ostream & out
Definition: acqprogress.h:20
A monitor object for downloads controlled by the pkgAcquire class. {{{.
Definition: acquire.h:696
virtual void Start()
Invoked when the Acquire process starts running.
Definition: acquire.cc:1436
virtual void IMSHit(pkgAcquire::ItemDesc &)
Invoked when an item is confirmed to be up-to-date.
Definition: acquire.h:829
virtual void Fail(pkgAcquire::ItemDesc &)
Invoked when the process of fetching an item encounters a fatal error.
Definition: acquire.h:840
virtual void Done(pkgAcquire::ItemDesc &)
Invoked when an item is successfully and completely fetched.
Definition: acquire.h:835
virtual bool MediaChange(std::string Media, std::string Drive)=0
Invoked when the user should be prompted to change the inserted removable media.
virtual void Fetch(pkgAcquire::ItemDesc &)
Invoked when some of an item's data is fetched.
Definition: acquire.h:832
virtual bool ReleaseInfoChanges(metaIndex const *const LastRelease, metaIndex const *const CurrentRelease, std::vector< ReleaseInfoChange > &&Changes)
ask the user for confirmation of changes to infos about a repository
Definition: acquire.cc:1478
Represents the process by which a pkgAcquire object should retrieve a file or a collection of files.
Definition: acquire-item.h:59
#define APT_OVERRIDE
Definition: macros.h:111
#define APT_PUBLIC
Definition: macros.h:77
#define APT_HIDDEN
Definition: macros.h:78
unsigned int ScreenWidth