libapt-pkg-dev  v0.9.7.5ubuntu5.4
Debian+Ubuntu APT Package Management
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
OpProgress Class Reference

#include <progress.h>

Inheritance diagram for OpProgress:
Collaboration diagram for OpProgress:

Public Member Functions

 OpProgress ()
 
virtual ~OpProgress ()
 
virtual void Done ()
 
void OverallProgress (unsigned long long Current, unsigned long long Total, unsigned long long Size, const std::string &Op)
 
void Progress (unsigned long long Current)
 
void SubProgress (unsigned long long SubTotal, const std::string &Op="", float const Percent=-1)
 

Protected Member Functions

bool CheckChange (float Interval=0.7)
 
virtual void Update ()
 

Protected Attributes

bool MajorChange
 
std::string Op
 
float Percent
 
std::string SubOp
 

Private Attributes

unsigned long long Current
 
std::string LastOp
 
float LastPercent
 
std::string LastSubOp
 
struct timeval LastTime
 
unsigned long long Size
 
unsigned long long SubTotal
 
unsigned long long Total
 

Constructor & Destructor Documentation

OpProgress::OpProgress ( )
virtual OpProgress::~OpProgress ( )
inlinevirtual

Member Function Documentation

bool OpProgress::CheckChange ( float  Interval = 0.7)
protected
virtual void OpProgress::Done ( )
inlinevirtual

Reimplemented in OpTextProgress.

void OpProgress::OverallProgress ( unsigned long long  Current,
unsigned long long  Total,
unsigned long long  Size,
const std::string &  Op 
)
void OpProgress::Progress ( unsigned long long  Current)
void OpProgress::SubProgress ( unsigned long long  SubTotal,
const std::string &  Op = "",
float const  Percent = -1 
)
virtual void OpProgress::Update ( )
inlineprotectedvirtual

Reimplemented in OpTextProgress.

Member Data Documentation

unsigned long long OpProgress::Current
private
std::string OpProgress::LastOp
private
float OpProgress::LastPercent
private
std::string OpProgress::LastSubOp
private
struct timeval OpProgress::LastTime
private
bool OpProgress::MajorChange
protected
std::string OpProgress::Op
protected
float OpProgress::Percent
protected
unsigned long long OpProgress::Size
private
std::string OpProgress::SubOp
protected
unsigned long long OpProgress::SubTotal
private
unsigned long long OpProgress::Total
private

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