Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members

PMYouProduct Class Reference

#include <PMYouProduct.h>

Inheritance diagram for PMYouProduct:

CountedRep Rep List of all members.

Public Member Functions

 PMYouProduct (const constInstSrcDescrPtr &, PMYouSettings &)
 PMYouProduct (const string &product, const string &version, const string &baseArch, PMYouSettings &)
 ~PMYouProduct ()
void init (const std::string &product, const std::string &version, const std::string &baseArch, const std::string &youUrl, const std::string &path)
void init (const std::string &product, const std::string &version, const std::string &baseArch)
void setPatchPath (const Pathname &)
Pathname patchPath ()
Pathname rpmPath (const PMPackagePtr &pkg, bool patchRpm=false)
Pathname scriptPath (const std::string &scriptName)
Pathname localScriptPath (const std::string &scriptName)
std::string product ()
std::string distProduct ()
std::string version ()
PkgArch baseArch ()
void setArchs (const std::list< PkgArch > &)
std::list< PkgArcharchs ()
PkgArch arch ()
bool businessProduct ()
bool noYou ()
std::string youUrl ()
void setPatchFiles (const std::list< std::string > &patchFiles)
std::list< std::string > patchFiles () const

Protected Member Functions

void init (const std::string &path)

Private Member Functions

 REP_BODY (PMYouProduct)

Private Attributes

constInstSrcDescrPtr _productDescr
PMYouSettings_settings
Pathname _patchPath
Pathname _rpmPath
Pathname _scriptPath
std::string _product
std::string _version
PkgArch _baseArch
std::string _distProduct
std::list< PkgArch_archs
PkgArch _arch
std::string _youUrl
bool _businessProduct
bool _noYou
std::list< std::string > _patchFiles

Detailed Description

This class provides product-specific information for the online update.


Constructor & Destructor Documentation

PMYouProduct::PMYouProduct const constInstSrcDescrPtr &  ,
PMYouSettings
 

Constructor.

PMYouProduct::PMYouProduct const string &  product,
const string &  version,
const string &  baseArch,
PMYouSettings
 

PMYouProduct::~PMYouProduct  ) 
 

Destructor


Member Function Documentation

PkgArch PMYouProduct::arch  ) 
 

Return architecture.

list< PkgArch > PMYouProduct::archs  ) 
 

Return list of compatible architectures.

PkgArch PMYouProduct::baseArch  ) 
 

Return base architecture.

bool PMYouProduct::businessProduct  ) 
 

Return whether the product is a business product or not. Business products require authentification on the server.

string PMYouProduct::distProduct  ) 
 

Return name of distribution.

void PMYouProduct::init const std::string &  path  )  [protected]
 

void PMYouProduct::init const std::string &  product,
const std::string &  version,
const std::string &  baseArch
 

Init object with given product, version and baseArch values.

void PMYouProduct::init const std::string &  product,
const std::string &  version,
const std::string &  baseArch,
const std::string &  youUrl,
const std::string &  path
 

Init object.

Parameters:
product Product name
version Product version
baseArch Base architecture of product
youUrl URL used to get YOU server list
path Path on server to directory containing patches, rpms and scripts directories

Pathname PMYouProduct::localScriptPath const std::string &  scriptName  ) 
 

Return path of script at download location.

Parameters:
scriptName Name of script

bool PMYouProduct::noYou  ) 
 

Return whether the product should be ignored by YOU or not.

list< string > PMYouProduct::patchFiles  )  const
 

Return patch files associated with this product.

Pathname PMYouProduct::patchPath  ) 
 

Return path to patches on server.

string PMYouProduct::product  ) 
 

Return name of product.

PMYouProduct::REP_BODY PMYouProduct   )  [private]
 

Pathname PMYouProduct::rpmPath const PMPackagePtr &  pkg,
bool  patchRpm = false
 

Return path to RPM for base architecture.

Parameters:
pkg Pointer to package
patchRpm If true, return path to patch RPM, if false, return path to full RPM.

Pathname PMYouProduct::scriptPath const std::string &  scriptName  ) 
 

Return path of script.

Parameters:
scriptName Name of script

void PMYouProduct::setArchs const std::list< PkgArch > &   ) 
 

Set list of compatible architectures.

void PMYouProduct::setPatchFiles const std::list< std::string > &  patchFiles  ) 
 

Set patch files associated with this product.

void PMYouProduct::setPatchPath const Pathname  ) 
 

Set path on server to directory containing the "patches", "rpms" and "scripts" directories. This path depends on the product.

string PMYouProduct::version  ) 
 

Return version of product.

string PMYouProduct::youUrl  ) 
 

Return base URL where list of YOU servers is read from.

Return default URL, if the information can't be read from the product information.


Member Data Documentation

PkgArch PMYouProduct::_arch [private]
 

std::list<PkgArch> PMYouProduct::_archs [private]
 

PkgArch PMYouProduct::_baseArch [private]
 

bool PMYouProduct::_businessProduct [private]
 

std::string PMYouProduct::_distProduct [private]
 

bool PMYouProduct::_noYou [private]
 

std::list<std::string> PMYouProduct::_patchFiles [private]
 

Pathname PMYouProduct::_patchPath [private]
 

std::string PMYouProduct::_product [private]
 

constInstSrcDescrPtr PMYouProduct::_productDescr [private]
 

Pathname PMYouProduct::_rpmPath [private]
 

Pathname PMYouProduct::_scriptPath [private]
 

PMYouSettings& PMYouProduct::_settings [private]
 

std::string PMYouProduct::_version [private]
 

std::string PMYouProduct::_youUrl [private]
 


The documentation for this class was generated from the following files:
Generated on Fri Nov 9 14:30:33 2007 for yast2-packagemanager by doxygen 1.3.6