apt: pkgAcquire::QItem Struct Reference

apt 2.7.10 commandline package manager

Public Types | Public Member Functions | Public Attributes | List of all members
pkgAcquire::QItem Struct Reference

A single item placed in this queue. More...

`#include <apt-pkg/acquire.h>`

Inheritance diagram for pkgAcquire::QItem:

## Public Types
typedef std::vector< Item * >::const_iterator | owner_iterator

## Public Member Functions
void | operator= (pkgAcquire::ItemDesc const &I)
| Assign the ItemDesc portion of this QItem from another ItemDesc.
HashStringList | GetExpectedHashes () const
unsigned long long | GetMaximumSize () const
void | SyncDestinationFiles () const
| get partial files in order
std::string | Custom600Headers () const
int APT_HIDDEN | GetPriority () const
time_point APT_HIDDEN | GetFetchAfter () const

## Public Attributes
QItem * | Next
| The next item in the queue.
pkgAcquire::Worker * | Worker
| The worker associated with this item, if any.
std::vector< Item * > | Owners
| The underlying items interested in the download.
unsigned long long | CurrentSize = 0
| How many bytes of the file have been downloaded. Zero if the current progress of the file cannot be determined.
unsigned long long | TotalSize = 0
| The total number of bytes to be downloaded. Zero if the total size of the final is unknown.
unsigned long long | ResumePoint = 0
| How much of the file was already downloaded prior to starting this worker.

## Detailed Description

A single item placed in this queue.

## Member Function Documentation

## ◆ Custom600Headers()

std::string Custom600Headers | ( |  | ) | const

Returns
  the custom headers to use for this item

## ◆ GetExpectedHashes()

HashStringList GetExpectedHashes | ( |  | ) | const

Returns
  the sum of all expected hashes by all owners

## ◆ GetFetchAfter()

time_point APT_HIDDEN GetFetchAfter | ( |  | ) | const

Returns
  the maximum time to fetch this item at

## ◆ GetMaximumSize()

unsigned long long GetMaximumSize | ( |  | ) | const

Returns
  smallest maximum size of all owners

## ◆ GetPriority()

int APT_HIDDEN GetPriority | ( |  | ) | const

Returns
  the maximum priority of this item

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

- apt-pkg/acquire.h