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
pkgAcqMethod Class Reference

#include <acquire-method.h>

Collaboration diagram for pkgAcqMethod:

Classes

struct  FetchItem
 
struct  FetchResult
 

Public Types

enum  CnfFlags {
  SingleInstance = (1<<0),
  Pipeline = (1<<1),
  SendConfig = (1<<2),
  LocalOnly = (1<<3),
  NeedsCleanup = (1<<4),
  Removable = (1<<5)
}
 

Public Member Functions

 pkgAcqMethod (const char *Ver, unsigned long Flags=0)
 
virtual ~pkgAcqMethod ()
 
void Log (const char *Format,...)
 
void Redirect (const std::string &NewURI)
 
int Run (bool Single=false)
 
void SetFailReason (std::string Msg)
 
void SetIP (std::string aIP)
 
void Status (const char *Format,...)
 

Protected Member Functions

virtual bool Configuration (std::string Message)
 
virtual void Exit ()
 
void Fail (bool Transient=false)
 
void Fail (const char *Why, bool Transient=false)
 
virtual void Fail (std::string Why, bool Transient=false)
 
virtual bool Fetch (FetchItem *)
 
bool MediaFail (std::string Required, std::string Drive)
 
void PrintStatus (char const *const header, const char *Format, va_list &args) const
 
virtual void URIDone (FetchResult &Res, FetchResult *Alt=0)
 
virtual void URIStart (FetchResult &Res)
 

Protected Attributes

std::string FailReason
 
std::string IP
 
std::vector< std::string > Messages
 
FetchItemQueue
 
FetchItemQueueBack
 
std::string UsedMirror
 

Private Member Functions

void Dequeue ()
 

Member Enumeration Documentation

Enumerator
SingleInstance 
Pipeline 
SendConfig 
LocalOnly 
NeedsCleanup 
Removable 

Constructor & Destructor Documentation

pkgAcqMethod::pkgAcqMethod ( const char *  Ver,
unsigned long  Flags = 0 
)
virtual pkgAcqMethod::~pkgAcqMethod ( )
inlinevirtual

Member Function Documentation

virtual bool pkgAcqMethod::Configuration ( std::string  Message)
protectedvirtual
void pkgAcqMethod::Dequeue ( )
private
virtual void pkgAcqMethod::Exit ( )
inlineprotectedvirtual
void pkgAcqMethod::Fail ( bool  Transient = false)
protected
void pkgAcqMethod::Fail ( const char *  Why,
bool  Transient = false 
)
inlineprotected

References Fail().

Referenced by Fail().

Here is the call graph for this function:

Here is the caller graph for this function:

virtual void pkgAcqMethod::Fail ( std::string  Why,
bool  Transient = false 
)
protectedvirtual
virtual bool pkgAcqMethod::Fetch ( FetchItem )
inlineprotectedvirtual
void pkgAcqMethod::Log ( const char *  Format,
  ... 
)
bool pkgAcqMethod::MediaFail ( std::string  Required,
std::string  Drive 
)
protected
void pkgAcqMethod::PrintStatus ( char const *const  header,
const char *  Format,
va_list &  args 
) const
protected
void pkgAcqMethod::Redirect ( const std::string &  NewURI)
int pkgAcqMethod::Run ( bool  Single = false)
void pkgAcqMethod::SetFailReason ( std::string  Msg)
inline

References FailReason.

void pkgAcqMethod::SetIP ( std::string  aIP)
inline

References IP.

void pkgAcqMethod::Status ( const char *  Format,
  ... 
)
virtual void pkgAcqMethod::URIDone ( FetchResult Res,
FetchResult Alt = 0 
)
protectedvirtual
virtual void pkgAcqMethod::URIStart ( FetchResult Res)
protectedvirtual

Member Data Documentation

std::string pkgAcqMethod::FailReason
protected

Referenced by SetFailReason().

std::string pkgAcqMethod::IP
protected

Referenced by SetIP().

std::vector<std::string> pkgAcqMethod::Messages
protected
FetchItem* pkgAcqMethod::Queue
protected
FetchItem* pkgAcqMethod::QueueBack
protected
std::string pkgAcqMethod::UsedMirror
protected

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