38 static const size_type
npos=
static_cast<size_type
>(-1);
73 std::set<string> _sources_to_download;
76 std::set<string> _sources_to_build;
80 std::set<binary_control_table::key_type> _packages_written;
86 size_type _bytes_done;
89 size_type _bytes_total;
98 std::map<string,progress> _progress_table;
121 {
return _bytes_done; }
127 {
return _bytes_total; }
156 void update_progress();
The state in which the update operation failed.
Definition: update.h:57
state_type
An enumeration for describing the state of the update operation.
Definition: update.h:41
A class for updating the package database.
Definition: update.h:30
void log_to(log *use_log)
Set the log to add to.
Definition: update.cc:272
virtual ~update()
Destroy update operation.
Definition: update.cc:28
The namespace used to hold the package management library.
Definition: auto_dir.cc:12
unsigned long long size_type
A type for representing byte counts.
Definition: update.h:35
size_type bytes_done
The number of bytes downloaded.
Definition: update.h:163
The state in which local packages are incorporated into the available list.
Definition: update.h:52
The state in which the package indexes are being downloaded.
Definition: update.h:46
size_type bytes_prev
The total number of bytes when most recently downloaded, or npos if no previous total is available...
Definition: update.h:168
A mixin class to represent a cooperative thread.
Definition: thread.h:12
Class to log actions that occur in LibPkg.
Definition: log.h:215
state_type state() const
Get current state.
Definition: update.h:114
A class for representing the collection of package database tables.
Definition: pkgbase.h:24
The state in which the sources list is being read.
Definition: update.h:44
A structure for monitoring the progress of one source.
Definition: update.h:160
size_type bytes_done() const
Get number of bytes downloaded.
Definition: update.h:120
A class for downloading a file from a URL.
Definition: download.h:26
size_type bytes_total() const
Get total number of bytes to download.
Definition: update.h:126
string message() const
Get error message.
Definition: update.h:134
The state in which remote sources are incorporated into the available list.
Definition: update.h:49
static const size_type npos
A null value for use in place of a byte count.
Definition: update.h:38
size_type bytes_total
The total number of bytes to download, or npos if not known.
Definition: update.h:165
void poll()
Poll this thread.
Definition: update.cc:31
The state in which the update operation has been successfully completed.
Definition: update.h:55
update(pkgbase &pb)
Construct update operation.
Definition: update.cc:18