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

PMYouPatch Class Reference

#include <PMYouPatch.h>

Inheritance diagram for PMYouPatch:

PMObject PMSolvable CountedRep Rep List of all members.

Public Types

enum  Kind {
  kind_invalid = 0, kind_yast = 1, kind_security = 2, kind_recommended = 4,
  kind_optional = 8, kind_document = 16, kind_patchlevel = 32, kind_all = 63
}

Public Member Functions

void setKind (Kind kind)
Kind kind () const
std::string kindLabel ()
void setShortDescription (const std::string &str)
std::string shortDescription () const
void setLongDescription (const std::string &str)
std::string longDescription () const
void setPreInformation (const std::string &str)
std::string preInformation () const
void setPostInformation (const std::string &str)
std::string postInformation () const
void setUpdateOnlyInstalled (bool v)
bool updateOnlyInstalled () const
void setUpdateOnlyNew (bool v)
bool updateOnlyNew () const
void setPreScript (const std::string &preScript)
std::string preScript () const
void setUpdateScript (const std::string &updateScript)
std::string updateScript () const
std::string fallbackScript () const
void setPostScript (const std::string &postScript)
std::string postScript () const
void setPackages (const std::list< PMPackagePtr > &p)
std::list< PMPackagePtr > packages () const
void addPackage (const PMPackagePtr &pkg)
void clearPackages ()
void setLocalFile (const Pathname &localFile)
Pathname localFile () const
void setPatchSize (const FSize &size)
FSize patchSize () const
std::string fullName () const
void setPackagesInstalled (bool installed)
bool packagesInstalled () const
bool installable () const
void setFiles (const std::list< PMYouFile > &files)
void addFile (const PMYouFile &file)
std::list< PMYouFilefiles () const
void setProduct (const PMYouProductPtr &)
PMYouProductPtr product () const
void setSkipped (bool s)
bool skipped () const
bool isSelected () const
void setFileName (const std::string &n)
std::string fileName () const
virtual std::string summary () const
virtual std::list< std::string > description () const
virtual std::list< std::string > insnotify () const
virtual std::list< std::string > delnotify () const
virtual FSize size () const
virtual bool providesSources () const
virtual std::string instSrcLabel () const
virtual Vendor instSrcVendor () const
virtual unsigned instSrcRank () const
 PMYouPatch (const PkgName &name_r, const PkgEdition &edition_r, const PkgArch &arch_r)
virtual ~PMYouPatch ()
virtual std::ostream & dumpOn (std::ostream &str) const

Static Public Member Functions

std::string kindLabel (Kind kind)

Private Member Functions

 REP_BODY (PMYouPatch)

Private Attributes

std::string _shortDescription
std::string _longDescription
std::string _preInformation
std::string _postInformation
Kind _kind
bool _updateOnlyInstalled
bool _updateOnlyNew
std::string _preScript
std::string _postScript
FSize _patchSize
std::list< PMPackagePtr > _packages
Pathname _localFile
std::string _fileName
bool _packagesInstalled
std::list< PMYouFile_files
PMYouProductPtr _product
bool _skipped

Detailed Description

This class represents a patch.


Member Enumeration Documentation

enum PMYouPatch::Kind
 

Definitions for the kind of the patch.

Enumeration values:
kind_invalid 
kind_yast 
kind_security 
kind_recommended 
kind_optional 
kind_document 
kind_patchlevel 
kind_all 


Constructor & Destructor Documentation

PMYouPatch::PMYouPatch const PkgName name_r,
const PkgEdition edition_r,
const PkgArch arch_r
 

PMYouPatch::~PMYouPatch  )  [virtual]
 


Member Function Documentation

void PMYouPatch::addFile const PMYouFile file  ) 
 

Add extra file to patch.

void PMYouPatch::addPackage const PMPackagePtr &  pkg  ) 
 

Add a package to this patch.

void PMYouPatch::clearPackages  ) 
 

Clear package list.

virtual std::list<std::string> PMYouPatch::delnotify  )  const [inline, virtual]
 

Implements PMObject.

list< string > PMYouPatch::description  )  const [virtual]
 

Implements PMObject.

ostream & PMYouPatch::dumpOn std::ostream &  str  )  const [virtual]
 

Used by ostream::operator<< to print some debug lines

Reimplemented from PMObject.

std::string PMYouPatch::fallbackScript  )  const
 

Return name of an alternative script which is executed if the updateScript fails

std::string PMYouPatch::fileName  )  const [inline]
 

Return name of patch file.

std::list<PMYouFile> PMYouPatch::files  )  const [inline]
 

Return list of YOU patch extra files.

string PMYouPatch::fullName  )  const
 

Return full name in the format "name-version-release".

list< string > PMYouPatch::insnotify  )  const [virtual]
 

Implements PMObject.

bool PMYouPatch::installable  )  const
 

Return, if patch is installable on current system.

virtual std::string PMYouPatch::instSrcLabel  )  const [inline, virtual]
 

Implements PMObject.

virtual unsigned PMYouPatch::instSrcRank  )  const [inline, virtual]
 

Implements PMObject.

virtual Vendor PMYouPatch::instSrcVendor  )  const [inline, virtual]
 

Implements PMObject.

bool PMYouPatch::isSelected  )  const
 

Return if the patch is selected for installation.

Kind PMYouPatch::kind  )  const [inline]
 

Return kind attribute.

string PMYouPatch::kindLabel Kind  kind  )  [static]
 

Return translated kind label.

std::string PMYouPatch::kindLabel  )  [inline]
 

Return translated kind label.

Pathname PMYouPatch::localFile  )  const [inline]
 

Return name of file where patch info is stored on local system.

std::string PMYouPatch::longDescription  )  const [inline]
 

Return short description attribute.

std::list<PMPackagePtr> PMYouPatch::packages  )  const [inline]
 

Return list of all packages belonging to this patch.

bool PMYouPatch::packagesInstalled  )  const [inline]
 

Return, if patch contains installed patches.

FSize PMYouPatch::patchSize  )  const
 

Return size of patch.

std::string PMYouPatch::postInformation  )  const [inline]
 

Return post information attribute.

std::string PMYouPatch::postScript  )  const [inline]
 

Return name of script which is executed after installation of patch.

std::string PMYouPatch::preInformation  )  const [inline]
 

Return pre information attribute.

std::string PMYouPatch::preScript  )  const [inline]
 

Return name of script which is executed before installation of patch.

PMYouProductPtr PMYouPatch::product  )  const
 

Return product this patch applies to.

virtual bool PMYouPatch::providesSources  )  const [inline, virtual]
 

Implements PMObject.

PMYouPatch::REP_BODY PMYouPatch   )  [private]
 

void PMYouPatch::setFileName const std::string &  n  )  [inline]
 

Set name of patch file.

void PMYouPatch::setFiles const std::list< PMYouFile > &  files  ) 
 

Set list of extra files.

void PMYouPatch::setKind Kind  kind  )  [inline]
 

Set kind attribute.

void PMYouPatch::setLocalFile const Pathname localFile  )  [inline]
 

Set name of file where patch info is stored on local system.

void PMYouPatch::setLongDescription const std::string &  str  )  [inline]
 

Set short description attribute.

void PMYouPatch::setPackages const std::list< PMPackagePtr > &  p  ) 
 

Set list of packages belonging to this patch.

void PMYouPatch::setPackagesInstalled bool  installed  )  [inline]
 

Set flag indicating, if the patch contains packages which are already installed in some version.

void PMYouPatch::setPatchSize const FSize size  ) 
 

Set size of patch.

void PMYouPatch::setPostInformation const std::string &  str  )  [inline]
 

Set post information attribute.

void PMYouPatch::setPostScript const std::string &  postScript  )  [inline]
 

Set name of script which is executed after installation of patch.

void PMYouPatch::setPreInformation const std::string &  str  )  [inline]
 

Set pre information attribute.

void PMYouPatch::setPreScript const std::string &  preScript  )  [inline]
 

Set name of script which is executed before installation of patch.

void PMYouPatch::setProduct const PMYouProductPtr &   ) 
 

Set product this patch applies to.

void PMYouPatch::setShortDescription const std::string &  str  )  [inline]
 

Set short description attribute.

void PMYouPatch::setSkipped bool  s  )  [inline]
 

Set if the patch has been skipped by the user.

void PMYouPatch::setUpdateOnlyInstalled bool  v  )  [inline]
 

Set if only installed packages should be updated.

void PMYouPatch::setUpdateOnlyNew bool  v  )  [inline]
 

Set if only new packages should be installed.

void PMYouPatch::setUpdateScript const std::string &  updateScript  ) 
 

Set name of script which is executed instead of installation of patch.

std::string PMYouPatch::shortDescription  )  const [inline]
 

Return short description attribute.

virtual FSize PMYouPatch::size  )  const [inline, virtual]
 

Implements PMObject.

bool PMYouPatch::skipped  )  const [inline]
 

Return if the patch has been skipped by the user.

virtual std::string PMYouPatch::summary  )  const [inline, virtual]
 

PMObject attributes that should be realized by each concrete Object.

See also:
PMObject

Implements PMObject.

bool PMYouPatch::updateOnlyInstalled  )  const [inline]
 

Return if only installed packages should be updated.

bool PMYouPatch::updateOnlyNew  )  const [inline]
 

Return if only new packages should be New.

std::string PMYouPatch::updateScript  )  const
 

Return name of script which is executed instead of installation of patch.


Member Data Documentation

std::string PMYouPatch::_fileName [private]
 

std::list<PMYouFile> PMYouPatch::_files [private]
 

Kind PMYouPatch::_kind [private]
 

Pathname PMYouPatch::_localFile [private]
 

std::string PMYouPatch::_longDescription [private]
 

std::list<PMPackagePtr> PMYouPatch::_packages [private]
 

bool PMYouPatch::_packagesInstalled [private]
 

FSize PMYouPatch::_patchSize [private]
 

std::string PMYouPatch::_postInformation [private]
 

std::string PMYouPatch::_postScript [private]
 

std::string PMYouPatch::_preInformation [private]
 

std::string PMYouPatch::_preScript [private]
 

PMYouProductPtr PMYouPatch::_product [private]
 

std::string PMYouPatch::_shortDescription [private]
 

bool PMYouPatch::_skipped [private]
 

bool PMYouPatch::_updateOnlyInstalled [private]
 

bool PMYouPatch::_updateOnlyNew [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