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

#include <algorithms.h>

Inheritance diagram for pkgSimulate:
Collaboration diagram for pkgSimulate:

Classes

class  Policy
 

Public Types

enum  OrderResult {
  Completed,
  Failed,
  Incomplete
}
 

Public Member Functions

 pkgSimulate (pkgDepCache *Cache)
 
 ~pkgSimulate ()
 
OrderResult DoInstall (int statusFd=-1)
 
OrderResult DoInstallPostFork (int statusFd=-1)
 
OrderResult DoInstallPreFork ()
 
bool FixMissing ()
 
bool GetArchives (pkgAcquire *Owner, pkgSourceList *Sources, pkgRecords *Recs)
 
std::set< std::string > GetDisappearedPackages ()
 returns all packages dpkg let disappear More...
 

Static Public Attributes

static bool SigINTStop
 

Protected Types

typedef pkgCache::Dep Dep
 
typedef pkgCache::DepIterator DepIterator
 
typedef pkgCache::DescIterator DescIterator
 
typedef pkgCache::Description Description
 
typedef pkgCache::Flag Flag
 
typedef pkgCache::GrpIterator GrpIterator
 
typedef pkgCache::Header Header
 
typedef pkgCache::Package Package
 
typedef pkgCache::PkgFileIterator PkgFileIterator
 
typedef pkgCache::PkgIterator PkgIterator
 
typedef pkgCache::PrvIterator PrvIterator
 
typedef pkgCache::VerFileIterator VerFileIterator
 
typedef pkgCache::VerIterator VerIterator
 
typedef pkgCache::Version Version
 

Protected Member Functions

bool CheckRConflicts (PkgIterator Pkg, DepIterator Dep, const char *Ver)
 
virtual bool Configure (PkgIterator Pkg)
 
bool ConfigureAll ()
 
bool CreateOrderList ()
 
bool DepAlwaysTrue (DepIterator D)
 
bool EarlyRemove (PkgIterator Pkg)
 
virtual bool Go (int statusFd=-1)
 
void ImmediateAdd (PkgIterator P, bool UseInstallVer, unsigned const int &Depth=0)
 
virtual bool Install (PkgIterator Pkg, std::string File)
 
virtual OrderResult OrderInstall ()
 
virtual bool Remove (PkgIterator Pkg, bool Purge)
 
virtual void Reset ()
 
bool SmartConfigure (PkgIterator Pkg, int const Depth)
 
bool SmartRemove (PkgIterator Pkg)
 
bool SmartUnPack (PkgIterator Pkg)
 
bool SmartUnPack (PkgIterator Pkg, bool const Immediate, int const Depth)
 

Protected Attributes

pkgDepCacheCache
 
bool Debug
 
std::set< std::string > disappearedPkgs
 saves packages dpkg let disappear More...
 
std::string * FileNames
 
unsigned char * Flags
 
pkgDepCache::ActionGroup group
 
bool ImmConfigureAll
 
Policy iPolicy
 
pkgOrderListList
 
bool NoImmConfigure
 
OrderResult Res
 
pkgDepCache Sim
 

Private Member Functions

void Describe (PkgIterator iPkg, std::ostream &out, bool Current, bool Candidate)
 
void ShortBreaks ()
 

Member Typedef Documentation

Member Enumeration Documentation

Enumerator
Completed 
Failed 
Incomplete 

Constructor & Destructor Documentation

pkgSimulate::pkgSimulate ( pkgDepCache Cache)
pkgSimulate::~pkgSimulate ( )

Member Function Documentation

bool pkgPackageManager::CheckRConflicts ( PkgIterator  Pkg,
DepIterator  Dep,
const char *  Ver 
)
protectedinherited
virtual bool pkgSimulate::Configure ( PkgIterator  Pkg)
protectedvirtual

Reimplemented from pkgPackageManager.

bool pkgPackageManager::ConfigureAll ( )
protectedinherited
bool pkgPackageManager::CreateOrderList ( )
protectedinherited
bool pkgPackageManager::DepAlwaysTrue ( DepIterator  D)
protectedinherited
void pkgSimulate::Describe ( PkgIterator  iPkg,
std::ostream &  out,
bool  Current,
bool  Candidate 
)
private
OrderResult pkgPackageManager::DoInstall ( int  statusFd = -1)
inherited
OrderResult pkgPackageManager::DoInstallPostFork ( int  statusFd = -1)
inherited
OrderResult pkgPackageManager::DoInstallPreFork ( )
inlineinherited

References pkgPackageManager::OrderInstall(), and pkgPackageManager::Res.

Here is the call graph for this function:

bool pkgPackageManager::EarlyRemove ( PkgIterator  Pkg)
protectedinherited
bool pkgPackageManager::FixMissing ( )
inherited
bool pkgPackageManager::GetArchives ( pkgAcquire Owner,
pkgSourceList Sources,
pkgRecords Recs 
)
inherited
std::set<std::string> pkgPackageManager::GetDisappearedPackages ( )
inlineinherited

returns all packages dpkg let disappear

References pkgPackageManager::disappearedPkgs.

virtual bool pkgPackageManager::Go ( int  statusFd = -1)
inlineprotectedvirtualinherited

Reimplemented in pkgDPkgPM.

void pkgPackageManager::ImmediateAdd ( PkgIterator  P,
bool  UseInstallVer,
unsigned const int &  Depth = 0 
)
protectedinherited
virtual bool pkgSimulate::Install ( PkgIterator  Pkg,
std::string  File 
)
protectedvirtual

Reimplemented from pkgPackageManager.

virtual OrderResult pkgPackageManager::OrderInstall ( )
protectedvirtualinherited

Referenced by pkgPackageManager::DoInstallPreFork().

Here is the caller graph for this function:

virtual bool pkgSimulate::Remove ( PkgIterator  Pkg,
bool  Purge 
)
protectedvirtual

Reimplemented from pkgPackageManager.

virtual void pkgPackageManager::Reset ( )
inlineprotectedvirtualinherited

Reimplemented in pkgDPkgPM.

void pkgSimulate::ShortBreaks ( )
private
bool pkgPackageManager::SmartConfigure ( PkgIterator  Pkg,
int const  Depth 
)
protectedinherited
bool pkgPackageManager::SmartRemove ( PkgIterator  Pkg)
protectedinherited
bool pkgPackageManager::SmartUnPack ( PkgIterator  Pkg)
protectedinherited
bool pkgPackageManager::SmartUnPack ( PkgIterator  Pkg,
bool const  Immediate,
int const  Depth 
)
protectedinherited

Member Data Documentation

pkgDepCache& pkgPackageManager::Cache
protectedinherited
bool pkgPackageManager::Debug
protectedinherited
std::set<std::string> pkgPackageManager::disappearedPkgs
protectedinherited

saves packages dpkg let disappear

This way APT can retreat from trying to configure these packages later on and a frontend can choose to display a notice to inform the user about these disappears.

Referenced by pkgPackageManager::GetDisappearedPackages().

std::string* pkgPackageManager::FileNames
protectedinherited
unsigned char* pkgSimulate::Flags
protected
pkgDepCache::ActionGroup pkgSimulate::group
protected
bool pkgPackageManager::ImmConfigureAll
protectedinherited
Policy pkgSimulate::iPolicy
protected
pkgOrderList* pkgPackageManager::List
protectedinherited
bool pkgPackageManager::NoImmConfigure
protectedinherited
OrderResult pkgPackageManager::Res
protectedinherited
bool pkgPackageManager::SigINTStop
staticinherited
pkgDepCache pkgSimulate::Sim
protected

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