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
pkgAcquire::MethodConfig Struct Reference

Information about the properties of a single acquire method. More...

#include <acquire.h>

Collaboration diagram for pkgAcquire::MethodConfig:

Public Member Functions

 MethodConfig ()
 Set up the default method parameters. More...
 
virtual ~MethodConfig ()
 

Public Attributes

std::string Access
 The name of this acquire method (e.g., http). More...
 
void * d
 dpointer placeholder (for later in case we need it) More...
 
bool LocalOnly
 If true, this fetch method does not require network access; all files are to be acquired from the local disk. More...
 
bool NeedsCleanup
 If true, the subprocess has to carry out some cleanup actions before shutting down. More...
 
MethodConfigNext
 The next link on the acquire method list. More...
 
bool Pipeline
 If true, this method supports pipelined downloading. More...
 
bool Removable
 If true, this fetch method acquires files from removable media. More...
 
bool SendConfig
 If true, the worker process should send the entire APT configuration tree to the fetch subprocess when it starts up. More...
 
bool SingleInstance
 If true, only one download queue should be created for this method. More...
 
std::string Version
 The implementation version of this acquire method. More...
 

Detailed Description

Information about the properties of a single acquire method.

{{{

Constructor & Destructor Documentation

pkgAcquire::MethodConfig::MethodConfig ( )

Set up the default method parameters.

All fields are initialized to NULL, "", or false as appropriate.

virtual pkgAcquire::MethodConfig::~MethodConfig ( )
inlinevirtual

Member Data Documentation

std::string pkgAcquire::MethodConfig::Access

The name of this acquire method (e.g., http).

void* pkgAcquire::MethodConfig::d

dpointer placeholder (for later in case we need it)

bool pkgAcquire::MethodConfig::LocalOnly

If true, this fetch method does not require network access; all files are to be acquired from the local disk.

bool pkgAcquire::MethodConfig::NeedsCleanup

If true, the subprocess has to carry out some cleanup actions before shutting down.

For instance, the cdrom method needs to unmount the CD after it finishes.

MethodConfig* pkgAcquire::MethodConfig::Next

The next link on the acquire method list.

Todo:
Why not an STL container?
bool pkgAcquire::MethodConfig::Pipeline

If true, this method supports pipelined downloading.

bool pkgAcquire::MethodConfig::Removable

If true, this fetch method acquires files from removable media.

bool pkgAcquire::MethodConfig::SendConfig

If true, the worker process should send the entire APT configuration tree to the fetch subprocess when it starts up.

bool pkgAcquire::MethodConfig::SingleInstance

If true, only one download queue should be created for this method.

std::string pkgAcquire::MethodConfig::Version

The implementation version of this acquire method.


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