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)  

PackageManagerProgressDeb822Fd Class Reference

#include <install-progress.h>

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

Public Member Functions

 PackageManagerProgressDeb822Fd (int progress_fd)
 
virtual ~PackageManagerProgressDeb822Fd ()
 
virtual void StartDpkg () APT_OVERRIDE
 
virtual void Stop () APT_OVERRIDE
 
virtual bool StatusChanged (std::string PackageName, unsigned int StepsDone, unsigned int TotalSteps, std::string HumanReadableAction) APT_OVERRIDE
 
virtual void Error (std::string PackageName, unsigned int StepsDone, unsigned int TotalSteps, std::string ErrorMessage) APT_OVERRIDE
 
virtual void ConffilePrompt (std::string PackageName, unsigned int StepsDone, unsigned int TotalSteps, std::string ConfMessage) APT_OVERRIDE
 
- Public Member Functions inherited from PackageManager
 PackageManager ()
 
virtual ~PackageManager ()
 
virtual void Start (int=-1)
 
virtual pid_t fork ()
 
virtual void Pulse ()
 
virtual long GetPulseInterval ()
 

Protected Member Functions

void WriteToStatusFd (std::string msg)
 

Protected Attributes

int OutStatusFd
 
int StepsDone
 
int StepsTotal
 
- Protected Attributes inherited from PackageManager
std::string progress_str
 
float percentage
 
int last_reported_progress
 

Private Attributes

void *const d
 

Detailed Description

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

Constructor & Destructor Documentation

◆ PackageManagerProgressDeb822Fd()

PackageManagerProgressDeb822Fd ( int  progress_fd)
explicit

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

References PackageManagerProgressDeb822Fd::OutStatusFd.

◆ ~PackageManagerProgressDeb822Fd()

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

Member Function Documentation

◆ ConffilePrompt()

void ConffilePrompt ( std::string  PackageName,
unsigned int  StepsDone,
unsigned int  TotalSteps,
std::string  ConfMessage 
)
virtual

◆ Error()

void Error ( std::string  PackageName,
unsigned int  StepsDone,
unsigned int  TotalSteps,
std::string  ErrorMessage 
)
virtual

◆ StartDpkg()

◆ StatusChanged()

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

◆ Stop()

void Stop ( )
virtual

Reimplemented from PackageManager.

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

◆ WriteToStatusFd()

Member Data Documentation

◆ d

void* const d
private

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

◆ OutStatusFd

◆ StepsDone

◆ StepsTotal

int StepsTotal
protected

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