LibPkg
Public Member Functions | Public Attributes | List of all members
pkg::update::progress Struct Reference

A structure for monitoring the progress of one source. More...

#include <update.h>

Public Member Functions

 progress ()
 Construct progress structure. More...
 

Public Attributes

size_type bytes_done
 The number of bytes downloaded. More...
 
size_type bytes_total
 The total number of bytes to download, or npos if not known. More...
 
size_type bytes_prev
 The total number of bytes when most recently downloaded, or npos if no previous total is available. More...
 

Detailed Description

A structure for monitoring the progress of one source.

Constructor & Destructor Documentation

◆ progress()

pkg::update::progress::progress ( )

Construct progress structure.

By default no bytes have been downloaded, the total to download is unknown, and there is no total from a previous download.

Member Data Documentation

◆ bytes_done

size_type pkg::update::progress::bytes_done

The number of bytes downloaded.

Referenced by pkg::update::poll().

◆ bytes_total

size_type pkg::update::progress::bytes_total

The total number of bytes to download, or npos if not known.

Referenced by pkg::update::poll().

◆ bytes_prev

size_type pkg::update::progress::bytes_prev

The total number of bytes when most recently downloaded, or npos if no previous total is available.


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

Reference Manual LibPkg Version 0.6.1 (28 Jan 2015)