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)  

PackageManagerFancy Class Reference

#include <install-progress.h>

Inheritance diagram for PackageManagerFancy:
Collaboration diagram for PackageManagerFancy:


struct  TermSize

Public Member Functions

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

Static Public Member Functions

static std::string GetTextProgressStr (float percent, int OutputSize)

Protected Member Functions

void SetupTerminalScrollArea (int nr_rows)
void HandleSIGWINCH (int)
TermSize GetTerminalSize ()

Protected Attributes

sighandler_t old_SIGWINCH
int child_pty
- Protected Attributes inherited from PackageManager
std::string progress_str
float percentage
int last_reported_progress

Private Member Functions

APT_HIDDEN bool DrawStatusLine ()

Static Private Member Functions

static APT_HIDDEN void staticSIGWINCH (int)

Private Attributes

void *const d

Static Private Attributes

static std::vector< PackageManagerFancy * > instances

Detailed Description

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

Constructor & Destructor Documentation

◆ PackageManagerFancy()

◆ ~PackageManagerFancy()

Member Function Documentation

◆ DrawStatusLine()

◆ GetTerminalSize()

◆ GetTextProgressStr()

std::string GetTextProgressStr ( float  percent,
int  OutputSize 

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

Referenced by PackageManagerFancy::DrawStatusLine().

◆ HandleSIGWINCH()

◆ SetupTerminalScrollArea()

void SetupTerminalScrollArea ( int  nr_rows)

◆ Start()

◆ staticSIGWINCH()

void staticSIGWINCH ( int  signum)

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

References I, and PackageManagerFancy::instances.

Referenced by PackageManagerFancy::PackageManagerFancy().

◆ StatusChanged()

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

Reimplemented from PackageManager.

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

References PackageManagerFancy::DrawStatusLine(), and PackageManager::StatusChanged().

◆ Stop()

Member Data Documentation

◆ child_pty

◆ d

void* const d

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

◆ instances


sighandler_t old_SIGWINCH

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