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)  

PackageManager Class Reference

#include <install-progress.h>

Inheritance diagram for PackageManager:
[legend]
Collaboration diagram for PackageManager:
[legend]

Public Member Functions

 PackageManager ()
 
virtual ~PackageManager ()
 
virtual void Start (int=-1)
 
virtual void Stop ()
 
virtual void StartDpkg ()
 
virtual pid_t fork ()
 
virtual void Pulse ()
 
virtual long GetPulseInterval ()
 
virtual bool StatusChanged (std::string PackageName, unsigned int StepsDone, unsigned int TotalSteps, std::string HumanReadableAction)
 
virtual void Error (std::string, unsigned int, unsigned int, std::string)
 
virtual void ConffilePrompt (std::string, unsigned int, unsigned int, std::string)
 

Protected Attributes

std::string progress_str
 
float percentage
 
int last_reported_progress
 

Private Attributes

void *const d
 dpointer placeholder More...
 

Detailed Description

Definition at line 17 of file install-progress.h.

Constructor & Destructor Documentation

◆ PackageManager()

Definition at line 24 of file install-progress.cc.

◆ ~PackageManager()

~PackageManager ( )
virtual

Definition at line 25 of file install-progress.cc.

Member Function Documentation

◆ ConffilePrompt()

virtual void ConffilePrompt ( std::string  ,
unsigned int  ,
unsigned int  ,
std::string   
)
inlinevirtual

Reimplemented in PackageManagerProgressFd, and PackageManagerProgressDeb822Fd.

Definition at line 56 of file install-progress.h.

Referenced by pkgDPkgPM::ProcessDpkgStatusLine().

◆ Error()

virtual void Error ( std::string  ,
unsigned int  ,
unsigned int  ,
std::string   
)
inlinevirtual

◆ fork()

virtual pid_t fork ( )
inlinevirtual

Definition at line 41 of file install-progress.h.

◆ GetPulseInterval()

virtual long GetPulseInterval ( )
inlinevirtual

Definition at line 44 of file install-progress.h.

Referenced by pkgDPkgPM::Go().

◆ Pulse()

virtual void Pulse ( )
inlinevirtual

Definition at line 43 of file install-progress.h.

Referenced by pkgDPkgPM::Go().

◆ Start()

virtual void Start ( int  = -1)
inlinevirtual

Reimplemented in PackageManagerFancy.

Definition at line 33 of file install-progress.h.

Referenced by pkgDPkgPM::Go().

◆ StartDpkg()

virtual void StartDpkg ( )
inlinevirtual

Reimplemented in PackageManagerProgressFd, and PackageManagerProgressDeb822Fd.

Definition at line 39 of file install-progress.h.

Referenced by pkgDPkgPM::Go().

◆ StatusChanged()

bool StatusChanged ( std::string  PackageName,
unsigned int  StepsDone,
unsigned int  TotalSteps,
std::string  HumanReadableAction 
)
virtual

◆ Stop()

virtual void Stop ( )
inlinevirtual

Reimplemented in PackageManagerProgressFd, PackageManagerProgressDeb822Fd, and PackageManagerFancy.

Definition at line 34 of file install-progress.h.

Referenced by pkgDPkgPM::Go().

Member Data Documentation

◆ d

void* const d
private

dpointer placeholder

Definition at line 21 of file install-progress.h.

◆ last_reported_progress

int last_reported_progress
protected

◆ percentage

float percentage
protected

◆ progress_str

std::string progress_str
protected

The documentation for this class was generated from the following files: